ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.

2015-08-27  Richard Biener  <rguenther@suse.de>

	* ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.

From-SVN: r227252
This commit is contained in:
Richard Biener 2015-08-27 08:02:57 +00:00 committed by Richard Biener
parent d26d508afa
commit 3f2dd8cdb9
2 changed files with 5 additions and 0 deletions

View 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

View file

@ -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)