[Bug c++/56287] __do_global_ctors_aux() crashing when LTO enabled with flto-partition=none
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 11 16:11:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56287
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-11 16:10:40 UTC ---
Yeah, they shouldn't have any .gnu.lto_* sections because we don't handle
constraints on .ctors/.dtors sections properly.
Which means you somehow ended up compiling them with -flto - don't.
Honza, I suppose there is no good way to ensure linker-command-line ordering
of decls with used attribute? (__CTOR_END__ also seems to lack that attribute)
Supposedly CRTSTUFF_T_CFLAGS unconditionally should get -fno-lto (not sure
if anybody builds with CFLAGS_FOR_TARGET=-flto or CFLAGS=-flto).
I believe the fact that it works without -flto-partition=none is by luck
and not by design.
More information about the Gcc-bugs
mailing list