From 2ff8644d33a8b9f3ca7c7c870c011a07da852ab3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 23 Mar 2008 21:49:41 +0000 Subject: [PATCH] i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG. 2008-03-23 H.J. Lu * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG. From-SVN: r133468 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2f1b3515a7..b9f4ec26e76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-03-23 H.J. Lu + + * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and + CX_REG. + 2008-03-23 Zuxy Meng * doc/extend.texi (Function Attributes): Add missing comma in the diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 98cb72ac921..aa7f57a697b 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 -- 2.30.2