Use hook_bool_void_true for TARGET_LRA_P
authorRichard Henderson <rth@redhat.com>
Fri, 9 Nov 2012 17:20:12 +0000 (09:20 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 9 Nov 2012 17:20:12 +0000 (09:20 -0800)
From-SVN: r193370

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

index 37049f9..a72d5a9 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-09  Richard Henderson  <rth@redhat.com>
+
+       * config/i386/i386.c (ix86_lra_p): Remove.
+       (TARGET_LRA_P): Use hook_bool_void_true.
+
 2012-11-09  Jason Merrill  <jason@redhat.com>
 
        * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
index 3a6f494..60a39b8 100644 (file)
@@ -32856,13 +32856,6 @@ ix86_free_from_memory (enum machine_mode mode)
     }
 }
 
-/* Return true if we use LRA instead of reload pass.  */
-static bool
-ix86_lra_p (void)
-{
-  return true;
-}
-
 /* Return a register priority for hard reg REGNO.  */
 static int
 ix86_register_priority (int hard_regno)
@@ -42119,7 +42112,7 @@ ix86_memmodel_check (unsigned HOST_WIDE_INT val)
 #define TARGET_LEGITIMATE_ADDRESS_P ix86_legitimate_address_p
 
 #undef TARGET_LRA_P
-#define TARGET_LRA_P ix86_lra_p
+#define TARGET_LRA_P hook_bool_void_true
 
 #undef TARGET_REGISTER_PRIORITY
 #define TARGET_REGISTER_PRIORITY ix86_register_priority