https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Concerning comment #11, if you have toplevel asms you need to disable LTO for that unit, as there is no way to tell for gcc what the asm statement is doing. Perhaps attribute would be better way to do this? What is status of this bug in general? I must admit I thought we have issues long solved here :(