i386.c (ix86_maybe_switch_abi): Use named constants instead of magic numbers.
authorUros Bizjak <ubizjak@gmail.com>
Sun, 8 Mar 2009 07:24:32 +0000 (08:24 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 8 Mar 2009 07:24:32 +0000 (08:24 +0100)
* config/i386/i386.c (ix86_maybe_switch_abi): Use named
constants instead of magic numbers.

From-SVN: r144706

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

index 6aeb8a40890ae00ab15010022e1ef7bac4de4614..ac3f3fb3af05dcebc21ea53c3ca7cd3d6e3f7410 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 4f7f943819de4b7ff5d146ef6461845c0695e8e2..e7dd5bebaec72f31d44a005548956e386b3833ca 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 ();
 }