aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2008-03-23 21:49:41 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2008-03-23 14:49:41 -0700
commit2ff8644d33a8b9f3ca7c7c870c011a07da852ab3 (patch)
treebf0b5855b1e471e2c81f52fc390f76434259cb7a /gcc/config
parentb45890a44539a840c0ba605e4dea699ca6f50763 (diff)
downloadgcc-2ff8644d33a8b9f3ca7c7c870c011a07da852ab3.zip
gcc-2ff8644d33a8b9f3ca7c7c870c011a07da852ab3.tar.gz
gcc-2ff8644d33a8b9f3ca7c7c870c011a07da852ab3.tar.bz2
i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
2008-03-23 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG. From-SVN: r133468
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 98cb72a..aa7f57a 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -1234,7 +1234,7 @@ do { \
/* Register in which static-chain is passed to a function.
We do use ECX as static chain register for 32 bit ABI. On the
64bit ABI, ECX is an argument register, so we use R10 instead. */
-#define STATIC_CHAIN_REGNUM (TARGET_64BIT ? FIRST_REX_INT_REG + 10 - 8 : 2)
+#define STATIC_CHAIN_REGNUM (TARGET_64BIT ? R10_REG : CX_REG)
/* Register to hold the addressing base for position independent
code access to data items. We don't use PIC pointer for 64bit