ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
authorRichard Biener <rguenther@suse.de>
Thu, 27 Aug 2015 08:02:57 +0000 (08:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Aug 2015 08:02:57 +0000 (08:02 +0000)
2015-08-27  Richard Biener  <rguenther@suse.de>

* ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.

From-SVN: r227252

gcc/ChangeLog
gcc/ipa.c

index e8884c0..cbc5c46 100644 (file)
@@ -1,3 +1,7 @@
+2015-08-27  Richard Biener  <rguenther@suse.de>
+
+       * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
+
 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
 
        * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
index 75e367f..6847305 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -917,6 +917,7 @@ cgraph_build_static_cdtor_1 (char which, tree body, int priority, bool final)
   TREE_STATIC (decl) = 1;
   TREE_USED (decl) = 1;
   DECL_ARTIFICIAL (decl) = 1;
+  DECL_IGNORED_P (decl) = 1;
   DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (decl) = 1;
   DECL_SAVED_TREE (decl) = body;
   if (!targetm.have_ctors_dtors && final)