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)


On Fri, 2008-08-01 at 23:16 +0200, Paolo Bonzini wrote:
> > Since HP and Intel both default to the dynamic thread model, I can't
> > imagine the performance hit is too bad.
> 
> I don't know; as I said it is on x86 (so much that glibc has special 
> tricks so that it can use the static thread model despite being a shared 
> library).

HP-UX doesn't have a static libc, just a shared one so this isn't an
issue there.  Linux does have a full set of system static libs though.

> > How could f call a different version of g if there is a g in the same
> > compilation unit?
> 
> Functions in a shared library can always be overridden by the executable.

Huh, learn something new every day.  Apparently HP wrote in some fine
print in it's HP-UX specific IA64 runtime standard saying it is OK to do
inlining and local symbol resolution in a shared library in order to get
around this optimization problem.

Changing libtool to use -fpic/-fPIC is starting to look like a better
option.

Steve Ellcey
sje@cup.hp.com


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