* config/i386/i386.c (ix86_maybe_switch_abi): Use named
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Mar 2009 07:24:32 +0000 (07:24 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Mar 2009 07:24:32 +0000 (07:24 +0000)
constants instead of magic numbers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144706 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 6aeb8a4..ac3f3fb 100644 (file)
@@ -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.
index 4f7f943..e7dd5be 100644 (file)
@@ -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 ();
 }