This is the mail archive of the gcc-patches@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: Re-merge crtstuff.c from the trans-mem branch


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...

I can do several things: (1) leave things alone, let the "inline"
function continue to be out-of-line, (2) rewrite the code block
using a macro, (3) probably break something with the second patch.  ;-)

Thoughts?


r~

Attachment: z1
Description: Text document

Attachment: z2
Description: Text document


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