This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: two PPC gcc issues in 2.95.3 ->
- From: "Mark Douglas" <mdouglas at metrowerks dot com>
- To: "Eric Christopher" <echristo at redhat dot com>, "Michael Meissner" <gcc-mail at the-meissners dot org>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 23 Jun 2003 16:09:24 -0500
- Subject: RE: two PPC gcc issues in 2.95.3 ->
Michael and Eric:
nice to here from you guys...
sounds like it's not fixed for 32 but sounds like a workaround exists through the use of function pointers w/ the longcall attribute. can you confirm?
Thanks!
Mark
-----Original Message-----
From: Eric Christopher [mailto:echristo@redhat.com]
Sent: Monday, June 23, 2003 11:55 AM
To: Michael Meissner
Cc: gcc@gcc.gnu.org; Mark Douglas
Subject: Re: two PPC gcc issues in 2.95.3 ->
>
> REL24 means pc-relative calls and jumps must be within 2**24 bytes. This is
> due to the instruction layout. You can direct the compiler to call functions
> through a pointer with either the longcall attribute, or with the -mlongcall
> switch which affects all function calls. You might check whether newer
> releases of the linker will insert some code that is linked near the call, and
> then loads up the long address and jumps to it.
>
ppc64 will. 32 will not.
-eric
--
Eric Christopher <echristo@redhat.com>