diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-18 14:52:28 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-18 14:52:28 +0000 |
commit | 4aa80500cdf200ba3f124e52beb65ab74bd75d83 (patch) | |
tree | 694d462aa57db797413f77ebb85ec9d11fc12051 /gcc/cgraph.c | |
parent | 63cd2c39df0f0a3305ad0386b82f05161fbb2984 (diff) | |
download | gcc-4aa80500cdf200ba3f124e52beb65ab74bd75d83.tar.gz |
* cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73703 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index fa6ec7de63b..43e58186506 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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) |