This is the mail archive of the
mailing list for the GCC project.
Re: [RFC] use symbol_ref flags for rs6000
- From: Jakub Jelinek <jakub at redhat dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Janis Johnson <janis187 at us dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 May 2003 18:07:42 -0400
- Subject: Re: [RFC] use symbol_ref flags for rs6000
- References: <firstname.lastname@example.org> <200305012154.RAA27282@makai.watson.ibm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, May 01, 2003 at 05:54:11PM -0400, David Edelsohn wrote:
> >>>>> Richard Henderson writes:
> Richard> One problem with this:
> Richard> User code of the form
> Richard> static int thunk;
> Richard> ((void (*)(void))thunk) ();
> Richard> that generates a call to the data section. If the linker
> Richard> will handle this, fine, otherwise you need to return false
> Richard> so that the address gets loaded into a register.
> This is similar to an example in ffitest.c, where one needs to
> hide the data object from the compiler. The above example fails, but
> static int thunk;
> int * pthunk = thunk;
> asm ("" : "=g" (pthunk) : "0" (pthunk));
This line was added by me because of ppc64.
If ppc64 backend is fixed, it should be deleted again IMHO.