Commit 2ff8644d by H.J. Lu Committed by H.J. Lu

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
parent b45890a4
2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
CX_REG.
2008-03-23 Zuxy Meng <zuxy.meng@gmail.com> 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
* doc/extend.texi (Function Attributes): Add missing comma in the * doc/extend.texi (Function Attributes): Add missing comma in the
......
...@@ -1234,7 +1234,7 @@ do { \ ...@@ -1234,7 +1234,7 @@ do { \
/* Register in which static-chain is passed to a function. /* Register in which static-chain is passed to a function.
We do use ECX as static chain register for 32 bit ABI. On the 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. */ 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 /* Register to hold the addressing base for position independent
code access to data items. We don't use PIC pointer for 64bit code access to data items. We don't use PIC pointer for 64bit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment