This is the mail archive of the
mailing list for the GCC project.
Re: Bad code for ia64 with function pointer
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Henri-Pierre CHARLES <Henri-Pierre dot Charles at prism dot uvsq dot fr>
- Cc: Jim Wilson <wilson at redhat dot com>, gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Aug 2002 12:31:27 -0400
- Subject: Re: Bad code for ia64 with function pointer
>>>>> Henri-Pierre CHARLES writes:
H-P> So, it's impossible to do this kind of indirect call with C ?
An IA-64 function pointer is just a special multi-word object.
One can create that multi-word object in C and then use that object as a
pointer. This means that data pointers and function pointers are not
interchangeable. As Jim says, the real question is *why* you want to do
this, not how to do this.