aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2009-03-08 08:24:32 +0100
committerUros Bizjak <uros@gcc.gnu.org>2009-03-08 08:24:32 +0100
commit09f8a8d312320b1b1a90d763f178fa02eac43ff5 (patch)
treeb776f0eec75e64c39498770f56ad9436028f20ef
parent3bb3cf2509e4af47a223f41307f319fd9163b432 (diff)
downloadgcc-09f8a8d312320b1b1a90d763f178fa02eac43ff5.zip
gcc-09f8a8d312320b1b1a90d763f178fa02eac43ff5.tar.gz
gcc-09f8a8d312320b1b1a90d763f178fa02eac43ff5.tar.bz2
i386.c (ix86_maybe_switch_abi): Use named constants instead of magic numbers.
* config/i386/i386.c (ix86_maybe_switch_abi): Use named constants instead of magic numbers. From-SVN: r144706
-rw-r--r--gcc/ChangeLog1
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6aeb8a4..ac3f3fb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -61,6 +61,7 @@
* config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
(x86_64_ms_abi_int_parameter_registers): Ditto.
(x86_64_int_return_registers): Ditto.
+ (ix86_maybe_switch_abi): Ditto.
(ix86_expand_call): Ditto for clobbered_registers array.
(ix86_hard_regno_mode_ok): Ditto.
(x86_extended_QIreg_mentioned_p): Ditto.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 4f7f943..e7dd5be 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -4618,7 +4618,7 @@ static void
ix86_maybe_switch_abi (void)
{
if (TARGET_64BIT &&
- call_used_regs[4 /*RSI*/] == (cfun->machine->call_abi == MS_ABI))
+ call_used_regs[SI_REG] == (cfun->machine->call_abi == MS_ABI))
reinit_regs ();
}