From 757bc6744ec2682648872419ecef77f9264f3916 Mon Sep 17 00:00:00 2001 From: jiwang Date: Fri, 16 Jan 2015 13:11:53 +0000 Subject: [PATCH] [AArch64] Remove -mlra/-mno-lra option for Aarch64 2015-01-16 Matthew Wahab gcc/ 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219734 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 ++++++++ gcc/config/aarch64/aarch64.c | 10 +--------- gcc/config/aarch64/aarch64.opt | 4 ---- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62871b51c69..efab15707c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2015-01-16 Matthew Wahab + + 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. + 2015-01-16 Ilya Enkovich PR target/64363 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f3cf6ed0643..fdb0116048a 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -156,7 +156,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, @@ -7810,13 +7809,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 @@ -11332,7 +11324,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 44c63503bd4..f2ef124e98f 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): -- 2.11.4.GIT