From 5b41a27843bbfc66444d6f0e9963b53a092f3c2e Mon Sep 17 00:00:00 2001 From: Ollie Wild Date: Wed, 16 Apr 2008 19:26:13 +0000 Subject: gcc/lto/ * lto.c (lto_materialize_function): Use DECL_ASSEMBLER_NAME to compute section name. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@134361 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/lto/ChangeLog | 5 +++++ gcc/lto/lto.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 2ee0f028ddd..9ef871ce1b2 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2008-04-16 Ollie Wild + + * lto.c (lto_materialize_function): Use DECL_ASSEMBLER_NAME to compute + section name + 2008-04-16 Ollie Wild * lto.c (lto_read_compile_unit_DIE): Add DW_LANG_C_plus_plus to the diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index c882a9a943e..9e6205982a2 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -2438,11 +2438,11 @@ lto_materialize_function (struct cgraph_node *node) { tree decl = node->decl; struct lto_file_decl_data *file_data = node->local.lto_file_data; - const char *data = lto_get_section_data (file_data, - LTO_section_function_body, - IDENTIFIER_POINTER (DECL_NAME (decl))); + const char *data; tree step; + data = lto_get_section_data (file_data, LTO_section_function_body, + IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl))); if (data) { struct function *fn; -- cgit v1.2.3