diff options
author | Ollie Wild <aaw@google.com> | 2008-04-16 19:26:13 +0000 |
---|---|---|
committer | Ollie Wild <aaw@google.com> | 2008-04-16 19:26:13 +0000 |
commit | 5b41a27843bbfc66444d6f0e9963b53a092f3c2e (patch) | |
tree | 97dc5517a55653002daf75f128e98eee6a3c9fec | |
parent | 69cc9b858e5c4f720de4167a56f3a0e4cd3c7a85 (diff) |
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
-rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
-rw-r--r-- | 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,5 +1,10 @@ 2008-04-16 Ollie Wild <aaw@google.com> + * lto.c (lto_materialize_function): Use DECL_ASSEMBLER_NAME to compute + section name + +2008-04-16 Ollie Wild <aaw@google.com> + * lto.c (lto_read_compile_unit_DIE): Add DW_LANG_C_plus_plus to the list of supported languages. 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; |