[PATCH] Fix PR target/16304: AIX 4.x forward reference proble

John David Anglin dave@hiauly1.hia.nrc.ca
Sun Oct 31 20:11:00 GMT 2004


> > 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)



More information about the Gcc-patches mailing list