Hello,
The LRA register is enabled by default for the Aarch64 backend and
-mno-lra should no longer be used. This patch removes the -mlra/-mno-lra
option for AArch64.
Tested aarch64-none-linux-gnu with gcc-check.
Matthew
2015-01-08 Matthew Wahab <matthew.wa...@arm.com>
PR target/64149
* config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
variable.
* config/aarch64/aarch64.c (TARGET_LRA_P): Set to
hook_bool_void_true.
(aarch64_lra_p): Remove.
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 5100532..fc0bbad 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -146,7 +146,6 @@ enum aarch64_code_model aarch64_cmodel;
#define TARGET_HAVE_TLS 1
#endif
-static bool aarch64_lra_p (void);
static bool aarch64_composite_type_p (const_tree, machine_mode);
static bool aarch64_vfp_is_call_or_return_candidate (machine_mode,
const_tree,
@@ -7732,13 +7731,6 @@ aapcs_vfp_sub_candidate (const_tree type, machine_mode *modep)
return -1;
}
-/* Return true if we use LRA instead of reload pass. */
-static bool
-aarch64_lra_p (void)
-{
- return aarch64_lra_flag;
-}
-
/* Return TRUE if the type, as described by TYPE and MODE, is a composite
type as described in AAPCS64 \S 4.3. This includes aggregate, union and
array types. The C99 floating-point complex types are also considered
@@ -11053,7 +11045,7 @@ aarch64_gen_adjusted_ldpstp (rtx *operands, bool load,
#define TARGET_LIBGCC_CMP_RETURN_MODE aarch64_libgcc_cmp_return_mode
#undef TARGET_LRA_P
-#define TARGET_LRA_P aarch64_lra_p
+#define TARGET_LRA_P hook_bool_void_true
#undef TARGET_MANGLE_TYPE
#define TARGET_MANGLE_TYPE aarch64_mangle_type
diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt
index 44c6350..f2ef124 100644
--- a/gcc/config/aarch64/aarch64.opt
+++ b/gcc/config/aarch64/aarch64.opt
@@ -107,10 +107,6 @@ mabi=
Target RejectNegative Joined Enum(aarch64_abi) Var(aarch64_abi) Init(AARCH64_ABI_DEFAULT)
-mabi=ABI Generate code that conforms to the specified ABI
-mlra
-Target Report Var(aarch64_lra_flag) Init(1) Save
-Use LRA instead of reload (transitional)
-
Enum
Name(aarch64_abi) Type(int)
Known AArch64 ABIs (for use with the -mabi= option):