2010/9/12 JonY <[email protected]>
> --enable-lto enables the lto backend, but gcc doesn't build itself with lto
> enabled.
Exactly, I would like to build gcc itself with lto (to get a faster
compiler).
--with-build-configuration=bootstrap-lto
>>
> never seen this option is it important ?
>
Neither have I.
>
It is (or rather should be equivalent to my
CFLAGS/LFLAGS/enable-stage1-languages magic, but was broken and a patch was
made to make it work for gold (linker plugin) supported targets.
Ruben, can you post your errors?
>
The errors I got were (I think) these:
Creating library file: ./shlib/libgcc_s.a.tmp
> lto1.exe: internal compiler error: bytecode stream: trying to read 0 bytes
> after the end of the input buffer
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> lto-wrapper: M:\Development\msys\home\Ruben\mingw64\build\gcc\gcc\xgcc.exe
> returned 1 exit status
> collect2: lto-wrapper returned 1 exit status
> make[3]: *** [libgcc_s.dll] Error 1
>
That was with the CFLAGS/... switches. I am now trying with only
CFLAGS="-mtune=core2" LFLAGS="-whopr=3" and I think it has gotten further
than ever. I will rerun my lto build to get you the exact error message (I
did some wrongful experimenting with --enable-gold that obviously didn't
work, as mingw is not supported by gold)
Also see
http://sourceforge.net/mailarchive/forum.php?thread_name=4C8BCBE7.1020003%40tdragon.net&forum_name=mingw-w64-publicfor
my initial discussion, I thought that stage1 lto was worth a different
topic vs my messing up the build process :)
Ruben
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public