IPA C++ refactoring fix.

* cgraphunit.c (compile): Correct function used.
        * rs6000.c (rs6000_xcoff_declare_function_name): Correct symtab_node funtion used.
        (rs6000_xcoff_declare_object_name): Likewise.

From-SVN: r212993
This commit is contained in:
Martin Liska 2014-07-24 15:54:06 +02:00 committed by Martin Liska
parent 52d8a590f5
commit dacd445e14
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2014-07-24 Martin Liska <mliska@suse.cz>
* rs6000.c (rs6000_xcoff_declare_function_name): Correct symtab_node
funtion used.
(rs6000_xcoff_declare_object_name): Likewise.
2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
* mt-nios2-elf: New file.

View File

@ -1,3 +1,7 @@
2014-07-24 Martin Liska <mliska@suse.cz>
* cgraphunit.c (compile): Correct function used.
2014-07-24 Jan Hubicka <hubicka@ucw.cz>
* lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL

View File

@ -2246,7 +2246,7 @@ compile (void)
(DECL_ASSEMBLER_NAME (node->decl)) = 1;
TREE_CHAIN (DECL_ASSEMBLER_NAME (node->decl))
= (node->alias_target ? node->alias_target
: DECL_ASSEMBLER_NAME (symtab_alias_target (node)->decl));
: DECL_ASSEMBLER_NAME (node->get_alias_target ()->decl));
}
#endif

View File

@ -29595,7 +29595,7 @@ rs6000_xcoff_declare_function_name (FILE *file, const char *name, tree decl)
fputs (TARGET_32BIT ? "[DS]\n" : "[DS],3\n", file);
RS6000_OUTPUT_BASENAME (file, buffer);
fputs (":\n", file);
symtab_for_node_and_aliases (symtab_get_node (decl), rs6000_declare_alias, &data, true);
symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true);
fputs (TARGET_32BIT ? "\t.long ." : "\t.llong .", file);
RS6000_OUTPUT_BASENAME (file, buffer);
fputs (", TOC[tc0], 0\n", file);
@ -29605,7 +29605,7 @@ rs6000_xcoff_declare_function_name (FILE *file, const char *name, tree decl)
RS6000_OUTPUT_BASENAME (file, buffer);
fputs (":\n", file);
data.function_descriptor = true;
symtab_for_node_and_aliases (symtab_get_node (decl), rs6000_declare_alias, &data, true);
symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true);
if (write_symbols != NO_DEBUG && !DECL_IGNORED_P (decl))
xcoffout_declare_function (file, decl, buffer);
return;
@ -29621,7 +29621,7 @@ rs6000_xcoff_declare_object_name (FILE *file, const char *name, tree decl)
struct declare_alias_data data = {file, false};
RS6000_OUTPUT_BASENAME (file, name);
fputs (":\n", file);
symtab_for_node_and_aliases (symtab_get_node (decl), rs6000_declare_alias, &data, true);
symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true);
}
#ifdef HAVE_AS_TLS