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: Patch for PIC mode on IA64 (fixes libgomp failures on HP-UX)


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


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