This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libtarget.a?
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, Alan Modra <amodra at bigpond dot net dot au>, Mark Mitchell <mark at codesourcery dot com>, Jeffrey Law <law at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Feb 2002 19:10:07 -0500
- Subject: Re: libtarget.a?
>>>>> Richard Henderson writes:
Richard> On Mon, Feb 18, 2002 at 10:25:39AM +1030, Alan Modra wrote:
>> A nop isn't emitted, so the linker can't patch in the r2 restore.
Richard> Ah, so relevant to ppc64, but not ppc32, which is what dje
Richard> was intimating.
Because those routines do not use the TOC, I guess the linker
could recognize them and not substitute the TOC.
BUT, this is relevant to ppc32. Again, the System V Application
Binary Interface PowerPC Processor Supplement (ppc32) EXPLICITLY states:
"The retister saving and retoring functions described in this section use
non-standard calling conventions which require them to be statically
linked into any executable or shared object modules in which they are
used." The FPR functions may happen to be safe, but the ABI does not
guarantee that.
David