This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PPC32 local checks in 3.2 (was: Re: [libffi] closures for sparc)
On Tue, Jan 21, 2003 at 12:34:17AM +0100, Franz Sirl wrote:
> > /* { dg-do link } */
> > /* { dg-options "-O2 -fpic" } */
> > static char foo [128];
> > void bar (void)
> > {
> > ((void (*)(void))foo)();
> > }
> > int main ()
> > {
> > }
> >
> > results in:
> > ...
> > bl foo@plt
> > ...
> > .lcomm foo,128,4
> >
> > Note @plt used for local symbol.
>
> Yeah, I have a patch for that. I simply backported the gllobal gcc-3.3
Thanks.
> binds_local_p routine to a local one in rs6000.c. Works like a charm here, no
> regressions and it works for glibc, qt, KDE-3.1, kernel just fine.
>
> OK to commit to gcc-3_2-branch?
3.2 branch has no __attribute__((visibility)) stuff...
Only gcc-3_2-rhl8-branch has, but its implementation is slightly different
from 3.3/3.4 stuff.
Jakub