From 3f2dd8cdb9a8a9f4a9ff1b0a3bc05badd2ba936c Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 27 Aug 2015 08:02:57 +0000 Subject: [PATCH] ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P. 2015-08-27 Richard Biener * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P. From-SVN: r227252 --- gcc/ChangeLog | 4 ++++ gcc/ipa.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e8884c00cee..cbc5c46684c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-08-27 Richard Biener + + * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P. + 2015-08-27 Dominik Vogt * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after diff --git a/gcc/ipa.c b/gcc/ipa.c index 75e367f0115..6847305536c 100644 --- 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) -- 2.30.2