* cgraph.c (change_decl_assembler_name): Avoid bogus warnings.

From-SVN: r73703
This commit is contained in:
Jan Hubicka 2003-11-18 15:52:28 +01:00 committed by Jan Hubicka
parent 457ef7975c
commit df964a183f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-11-18 Jan Hubicka <jh@suse.cz>
* cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
2003-11-18 Marc Espie <espie@openbsd.org>
* config/rs6000/sysv4.h: OpenBSD hooks.

View File

@ -458,7 +458,8 @@ change_decl_assembler_name (tree decl, tree name)
if (name == DECL_ASSEMBLER_NAME (decl))
return;
if (TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
if (TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))
&& DECL_RTL_SET_P (decl))
warning ("%D renamed after being referenced in assembly", decl);
if (TREE_CODE (decl) == FUNCTION_DECL && cgraph_hash)