[Bug lto/42776] LTO doesn't work on non-ELF platforms.
d dot g dot gorbachev at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 3 10:15:00 GMT 2010
------- Comment #14 from d dot g dot gorbachev at gmail dot com 2010-02-03 10:15 -------
There is a portability issue in is_elf_or_coff: fopen should be called with
"rb" instead of "r". Otherwise, fread fails when a COFF file has 26 sections,
because it is interpreted as a text, and 26 means "end of file".
(In reply to comment #13)
> Are you able to run the testsuite in the configuration you're building? (i.e.
> msys or cross-compile?) If so, would you paste the output from running "make
> check-gcc-c RUNTESTFLAGS=lto.exp" in the top level of your build dir please?
Not tried. GCC and Binutils can be built with -flto under MSYS, and they seem
to work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776
More information about the Gcc-bugs
mailing list