aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2009-03-01 22:30:24 +0100
committerUros Bizjak <uros@gcc.gnu.org>2009-03-01 22:30:24 +0100
commit6b5629db5a50718cac6f09baccf5c78c08beafc2 (patch)
tree360bd7b6120330a69db7fdc485ebe4a002860464 /gcc/config/i386
parent14e5b28507bfb7b6e17ff390db4ca0cbaa6f78ee (diff)
downloadgcc-6b5629db5a50718cac6f09baccf5c78c08beafc2.zip
gcc-6b5629db5a50718cac6f09baccf5c78c08beafc2.tar.gz
gcc-6b5629db5a50718cac6f09baccf5c78c08beafc2.tar.bz2
i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i" variable.
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i" variable. From-SVN: r144532
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.h43
1 files changed, 17 insertions, 26 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 7600a45..aa46097 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -934,46 +934,37 @@ do { \
j = PIC_OFFSET_TABLE_REGNUM; \
if (j != INVALID_REGNUM) \
{ \
- fixed_regs[j] = 1; \
- call_used_regs[j] = 1; \
+ fixed_regs[j] = call_used_regs[j] = 1; \
} \
if (TARGET_64BIT \
- && ((cfun && cfun->machine->call_abi == MS_ABI) \
- || (!cfun && DEFAULT_ABI == MS_ABI))) \
+ && ((cfun && cfun->machine->call_abi == MS_ABI) \
+ || (!cfun && DEFAULT_ABI == MS_ABI))) \
{ \
- int i; \
- call_used_regs[4 /*RSI*/] = 0; \
- call_used_regs[5 /*RDI*/] = 0; \
+ call_used_regs[4 /*RSI*/] = 0; \
+ call_used_regs[5 /*RDI*/] = 0; \
for (i = 0; i < 8; i++) \
call_used_regs[45+i] = 0; \
- call_used_regs[27] = call_used_regs[28] = 0; \
+ call_used_regs[27 /*XMM6*/] = 0; \
+ call_used_regs[28 /*XMM7*/] = 0; \
} \
if (! TARGET_MMX) \
- { \
- int i; \
- for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
- if (TEST_HARD_REG_BIT (reg_class_contents[(int)MMX_REGS], i)) \
- fixed_regs[i] = call_used_regs[i] = 1, reg_names[i] = ""; \
- } \
+ for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
+ if (TEST_HARD_REG_BIT (reg_class_contents[(int)MMX_REGS], i)) \
+ fixed_regs[i] = call_used_regs[i] = 1, reg_names[i] = ""; \
if (! TARGET_SSE) \
+ for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
+ if (TEST_HARD_REG_BIT (reg_class_contents[(int)SSE_REGS], i)) \
+ fixed_regs[i] = call_used_regs[i] = 1, reg_names[i] = ""; \
+ if (! (TARGET_80387 || TARGET_FLOAT_RETURNS_IN_80387)) \
{ \
- int i; \
- for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
- if (TEST_HARD_REG_BIT (reg_class_contents[(int)SSE_REGS], i)) \
- fixed_regs[i] = call_used_regs[i] = 1, reg_names[i] = ""; \
- } \
- if (! TARGET_80387 && ! TARGET_FLOAT_RETURNS_IN_80387) \
- { \
- int i; \
HARD_REG_SET x; \
- COPY_HARD_REG_SET (x, reg_class_contents[(int)FLOAT_REGS]); \
- for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
- if (TEST_HARD_REG_BIT (x, i)) \
+ COPY_HARD_REG_SET (x, reg_class_contents[(int)FLOAT_REGS]); \
+ for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
+ if (TEST_HARD_REG_BIT (x, i)) \
fixed_regs[i] = call_used_regs[i] = 1, reg_names[i] = ""; \
} \
if (! TARGET_64BIT) \
{ \
- int i; \
for (i = FIRST_REX_INT_REG; i <= LAST_REX_INT_REG; i++) \
reg_names[i] = ""; \
for (i = FIRST_REX_SSE_REG; i <= LAST_REX_SSE_REG; i++) \