This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]