]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-08-27 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Aug 2015 08:02:57 +0000 (08:02 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Aug 2015 08:02:57 +0000 (08:02 +0000)
* ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227252 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa.c

index e8884c00ceeebddc8b5cc64df2b45d1cdc2e4947..cbc5c46684c6e5af168d8ccdbe4ab32ccdf3a785 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 75e367f01156182eff81a2fcd21190948064f45b..6847305536c2534f525d5ab0f23192d894cd7b4f 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)