This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/70306] [5/6 Regression] wrong code at -O2 and -O3 in 32-bit and 64-bit mode on x86_64-linux-gnu [related to __attribute__((destructor)) and __attribute__((constructor))]
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Mar 2016 10:11:00 +0000
- Subject: [Bug ipa/70306] [5/6 Regression] wrong code at -O2 and -O3 in 32-bit and 64-bit mode on x86_64-linux-gnu [related to __attribute__((destructor)) and __attribute__((constructor))]
- Auto-submitted: auto-generated
- References: <bug-70306-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70306
--- Comment #4 from Martin LiÅka <marxin at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Started with r216305. As expected, -fno-ipa-icf fixes this.
> For GCC 5.x and maybe even for GCC 6.x, best would be probably just to
> disable ICF for functions with constructor/destructor argument, and for
> stage1 add wrappers for these.
Sure, will fix that in the suggested manner.
Martin