[parisc-linux] [PATCH] gcc/config/pa/ftpr.c fixes for new TRAMPOLINE_TEMPLATE in hppa's glibc.

Matthias Klose doko at cs.tu-berlin.de
Tue Feb 3 16:37:17 MST 2004


Carlos O'Donell writes:
> The patch below *can* still go into gcc, and will speedup __cffc when running
> with the new glibc.
> 
> The above changes are added into the latest glibc patches at:
> http://www.parisc-linux.org/~carlos/glibc-hppa-patches-latest.tar.gz
> 
> 
> > 2004-01-31  Carlos O'Donell  <carlos at baldric.uwo.ca>
> > 
> > 	* gcc/config/pa/fptr.c (__canonicalize_funcptr_for_compare): Add
> > 	extra offset check for new glibc TRAMPOLINE_TEMPLATE.
> > 
> > Index: gcc/config/pa/fptr.c
> > ===================================================================
> > RCS file: /cvs/gcc/gcc/gcc/config/pa/fptr.c,v
> > retrieving revision 1.2
> > diff -u -p -r1.2 fptr.c
> > --- gcc/config/pa/fptr.c	9 Dec 2002 19:16:14 -0000	1.2
> > +++ gcc/config/pa/fptr.c	31 Jan 2004 22:18:27 -0000
> > @@ -35,7 +35,7 @@ Boston, MA 02111-1307, USA.  */
> >     the template should it be necessary to change the current branch
> >     position.  */
> >  #define NOFFSETS 2
                     ^^^ ?
> > -static int fixup_branch_offset[NOFFSETS] = { 32, -4 };
> > +static int fixup_branch_offset[NOFFSETS] = { 36, 32, -4 };


More information about the parisc-linux mailing list