This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Use of -fPIC on Tru64
> -fPIC affects assumptions about how names bind.
Thanks. So -fPIC has indeed an effect on Tru64, and generates, I guess,
less efficient code.
> Without pic, it is assumed that
>
> void foo() { ... }
> void bar() { foo(); }
>
> bar calls the version of foo immediately above. With pic, this
> is not a valid assumption, because the name foo may bind from
> another library earlier in the search order.
But then, why does libgcc need to be compiled with -fPIC on Tru64 ?
Arno