Steve,

> On Mon, 2011-08-15 at 19:53 +0200, Rainer Orth wrote:
>
>> * For IA64 HP-UX, there's a claim that -fPIC is necessary despite PIC
>>   code being the default.  I could find no hint in trunk that this is
>>   true any longer.
>
> Rainer,  If I recall correctly the issue for -fPIC on IA64 HP-UX is to
> turn on flag_shlib.  If you don't use -fPIC, flag_shlib is not set and
> function FOO in a shared library may get inlined into function BAR or
> function BAR may generate a direct call to FOO that cannot be
> overwritten by a definition of function FOO coming from outside the
> shared library.  Setting flag_shlib should be the only difference
> between using or not using -fPIC on IA64 HP-UX.

I see.  I've missed that because I only looked in gcc/config/ia64 for
uses of flag_pic.

Thanks.
        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to