This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for PIC mode on IA64 (fixes libgomp failures on HP-UX)
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc-patches at gcc dot gnu dot org, wilson at tuliptree dot org
- Date: Thu, 31 Jul 2008 20:04:16 +0200
- Subject: Re: Patch for PIC mode on IA64 (fixes libgomp failures on HP-UX)
- References: <200807292022.m6TKMs423945@evrst7.cup.hp.com>
Hello Steve,
* Steve Ellcey wrote on Tue, Jul 29, 2008 at 10:22:54PM CEST:
> On IA64 HP-UX the shared libgomp was getting built with the static
> TLS model and causing test failures when used. The static TLS model was
> being used because libtool thought GCC on IA64 HP-UX was generating
> PIC code by default and thus didn't specify the -fpic flag when building
> objects for shared libraries. For some reason libtool does use -fpic
> when generating IA64 Linux objects for shared libraries.
I'm not quite sure I understand what your patch does, but are you saying
that Libtool should be changed in any way?
> Anyway, I think setting the pic flag (and shlib flag) by default
> on IA64 is the best solution for this issue since are supposed to be
> generating PIC code by default anyway. [...]
Thanks,
Ralf