[Bug lto/57703] Assembler function definition moved to a different ltrans then call

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 28 10:17:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703

--- Comment #10 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Bug 64420, which was marked as a duplicate, presents an example where there's
no diagnostics at build time (linking succeeds), but the resulting code is
wrong and will fail at runtime.

I believe the correct fix would be to disable LTO partitioning in a TU that
contains top-level asms (but in that TU only).  Is there something wrong with
such approach?



More information about the Gcc-bugs mailing list