------- Comment #20 from rguenther at suse dot de 2010-01-17 15:48 ------- Subject: Re: LTO configuration should detect if the target is ELF
On Sun, 17 Jan 2010, davek at gcc dot gnu dot org wrote: > ------- Comment #19 from davek at gcc dot gnu dot org 2010-01-17 15:08 > ------- > Created an attachment (id=19635) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19635&action=view) > --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19635&action=view) > lto for cygwin, and probably other coff targets > > FTR. Well, that turned out to be quite easy. Needs some support in binutils > to allow us to override the default section alignment for object files, but > that's trivial, and I'll send it to the binutils list shortly. > > Sigh, most of this is almost-safe-enough-for-stage-3. Oh well. Well. I suppose we can backport stuff for 4.5.1 if it is LTO specific but I don't want to have it before 4.5.0. > Should I reopen this bug, assign it to myself, retarget it to 4.6 and add the > words "or COFF" to the summary? Please open an new bugreport for LTO on non-ELF platforms. Thanks. > Results from this patch: > > Running /gnu/gcc/gcc/gcc/testsuite/gcc.dg/lto/lto.exp ... > FAIL: gcc.dg/lto/20081222 c_lto_20081222_1.o assemble, -O0 -fwhopr > FAIL: gcc.dg/lto/20081222 c_lto_20081222_1.o assemble, -O2 -fwhopr > FAIL: gcc.dg/lto/20081222 c_lto_20081222_1.o assemble, -O0 -flto > FAIL: gcc.dg/lto/20081222 c_lto_20081222_1.o assemble, -O2 -flto > FAIL: gcc.dg/lto/20090914-2 c_lto_20090914-2_0.o assemble, -O0 -fwhopr > FAIL: gcc.dg/lto/20090914-2 c_lto_20090914-2_0.o assemble, -O2 -fwhopr > FAIL: gcc.dg/lto/20090914-2 c_lto_20090914-2_0.o assemble, -O0 -flto > FAIL: gcc.dg/lto/20090914-2 c_lto_20090914-2_0.o assemble, -O2 -flto > > === gcc Summary === > > # of expected passes 462 > # of unexpected failures 8 > # of unresolved testcases 16 > # of unsupported tests 2 > /gnu/gcc/obj-lto/gcc/xgcc version 4.5.0 20100116 (experimental) (GCC) > > ... i.e. the only tests that still fail are one that uses visibility and one > that has an ELF-specific .section directive in an asm, all the rest work and > in > particular the "gcc.dg/lto/20081201-2 > c_lto_20081201-2_0.o-c_lto_20081201-2_1.o > execute -O3 -fwhopr" test succeeds which indicates real LTO is taking place > :-) > > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41529