[Bug lto/52159] ICE when building qemu with GCC 4.7 trunk: cannot read LTO decls
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 4 14:20:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52159
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Steffen Hau from comment #3)
>
> The same happens with LD BFD. Only workaround is to disable LTO. GCC 4.9.2
> doesn't show this error and compiles the code. I was able to break down the
> Object List to three files which reproduce the error reliably. I compiled
> the files with the "--save-temps" switch, but I'm not able, to reproduce the
> error with the resulting .i files because of other compiler errors like
> "'abc' does not name a type" or "error: 'xyz' was not declared in this
> scope".
This happens because you use gcc for compiling and g++ for linking in your
build script.
More information about the Gcc-bugs
mailing list