reserve register 2 for system use on Linux/PowerPC

The SYSV ABI specifies that it be reserved.  In practice, it is used
for thread-local storage.
This commit is contained in:
Joel Dice 2011-02-28 16:48:58 -07:00
parent 25f1a9f1e8
commit 7ad59731c0

View File

@ -2096,6 +2096,10 @@ class MyArchitecture: public Assembler::Architecture {
case 0: // r0 has special meaning in addi and other instructions
case StackRegister:
case ThreadRegister:
#ifndef __APPLE__
// r2 is reserved for system uses on SYSV
case 2:
#endif
return true;
default: