* cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
From-SVN: r73703
This commit is contained in:
parent
457ef7975c
commit
df964a183f
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user