This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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))]


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]