This is the mail archive of the gcc@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]

Re: Painful problems with -fpic implementation on powerpc-sysv


>>>>> Jeffrey A Law writes:

Jeff> It says:
Jeff> Register r2 is reserved for system use and should not be changed by
Jeff> application code.

Jeff> I don't know if that gives us the leeway we need to claim it.

	Yeah, that's sort of what I remembered.  I have no idea what that
means though I would think that GOT addressibility comes under system use
and not application code.

	I would defer to Meissner as he has been involved with the PPC
eABI which is a variant of PPC SVR4, so he should know how the committee
intended r2 to be used.  If not r2, then I guess r30 would be the next
best choice as that is used for the AIX "minimal-TOC" alternate TOC
register which has similar requirements for an addressibility register
allocated by the compiler if the ABI intended "system use" to mean
something else.

David


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