This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lto and gold




I guess this is some configure flag missing, does anybody have a clue?

Yes, you must build with --enable-gold --enable-plugins :-)



Is that for gcc or for binutils (neither documents this in ./configure --help) ?


I used it for both, but only get this to work with binutils CVS, is that correct ?

Now, however, I get the following error:

gfortran -flto -use-linker-plugin main.f90 test1.f90 test2.f90
collect2: ld terminated with signal 6 [Aborted]
ld: /data03/vondele/gcc_lto/gcc/lto-plugin/lto-plugin.c:142: parse_table_entry: Assertion `t <= 4' failed.


with

==> main.f90 <==
CALL S1
CALL S2
END

==> test1.f90 <==
SUBROUTINE S1
END SUBROUTINE

==> test2.f90 <==
SUBROUTINE S2
END SUBROUTINE S2

and similar for C based sources.

Thanks,

Joost


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]