http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47577
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX --- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-01 22:47:35 UTC --- Yep. If you play such tricks build the modules with -fno-lto. LTO also might not support things like asm(".section foo"); void foo(); with -flto -fno-toplevel-reorder. Toplevel asms are hacks - with LTO they get quite unmanagable.