This is the mail archive of the
mailing list for the GCC project.
Re: Bad code for ia64 with function pointer
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Jim Wilson <wilson at redhat dot com>
- Cc: Henri-Pierre CHARLES <Henri-Pierre dot Charles at prism dot uvsq dot fr>,gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Fri, 9 Aug 2002 22:09:21 +0100
- Subject: Re: Bad code for ia64 with function pointer
- References: <20020809144941.C917@vlaminck.prism.uvsq.fr> <email@example.com>
Jim Wilson wrote:-
> On IA-64, and some other targets, function pointers are represented
> differently than pointers to objects. On IA-64, a function pointer is a double
> word descriptor that holds the function address and the function GP value.
> Thus you can't get a valid function pointer by casting a char * pointer to a
> function pointer type.
What is GP? I see it written everywhere, but only as "GP".