Richard Henderson <r...@redhat.com> writes: > On 11/22/2011 04:15 AM, Rainer Orth wrote: >> This patch broke bootstrap on Solaris 8 and 9/x86 with Sun as which >> doesn't support .hidden: linking the stage2 lto-plugin fails like this: >> >> ld: fatal: relocation error: R_386_GOTOFF: file >> /var/gcc/regression/trunk/8-gcc/build/./prev-gcc/crtbegin.o: symbol >> __TMC_END__: relocation must bind locally >> collect2: error: ld returned 1 exit status >> make[4]: *** [liblto_plugin.la] Error 1 > > Blah, of course it does. > > The first of these patches should fix this. The second... well, I > don't recall why we use -fno-inline atm. It works for i386-linux, > of course, to eliminate it. But this is a twisty maze...
While the first patch allows Solaris 8/9 x86 bootstraps to finish (testsuite still running), I happened to run a Solaris 10/SPARC bootstrap that broke configuring stage 2 libgomp: even trivial executables die with a SEGV in _init. It turns out (still verifying with a fresh bootstrap) that the -fno-inline removal is the culprit. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University