This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR target/16304: AIX 4.x forward reference proble
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org, china at thewrittenword dot com, dje at gcc dot gnu dot org
- Date: Sun, 31 Oct 2004 13:25:01 -0500 (EST)
- Subject: Re: [PATCH] Fix PR target/16304: AIX 4.x forward reference proble
> > Do we actually need the thunk alias stuff for AIX? AFAIK, things worked
> > fine without that for a long time; I believe it was added for GNU/Linux
> > magic. Can we just diable thunk aliases for AIX?
>
> I believe that can be done.
This is probably best done using the TARGET_USE_LOCAL_THUNK_ALIAS_P
macro that Danny Smith added to the main branch on 2004-04-08. This
change could be back ported to 3.4.
Using a thunk alias avoids in some situations the linker adding a
stub between the thunk and thunk function. Having a direct jump
from thunk to thunk function is necessary under HP-UX. Thus, this
magic is important for systems other than GNU/Linux.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)