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



  In message <9808261614.AA32650@marc.watson.ibm.com>you write:
  > >>>>> Jeffrey A Law writes:
  > 
  > Jeff> We should select a callee saved register and reserve it for PIC.
  > 
  > 	What does the SVR4 PPC ABI say about r2 which AIX uses for its
  > addressibility TOC register?  I thought that it was "reserved" or
  > something.  It's fixed throughout the PowerPC port -- both AIX and
  > SVR4/eABI.  IF not that one then you run into conflicts with argument
  > registers or saved registers.
It says:

  Register r2 is reserved for system use and should not be changed by
  application code.

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

jeff


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