aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-01-03 21:13:49 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-01-03 21:13:49 +0000
commit70a6dbe7e37e6920eb65a289f8725ae2fa60b28f (patch)
tree14cf22d769adfe965b499acfa3a4857ebe0b1e60 /gcc/config
parent549a66a54dde40e643b26a8291efa041b165409f (diff)
downloadgcc-70a6dbe7e37e6920eb65a289f8725ae2fa60b28f.zip
gcc-70a6dbe7e37e6920eb65a289f8725ae2fa60b28f.tar.gz
gcc-70a6dbe7e37e6920eb65a289f8725ae2fa60b28f.tar.bz2
invoke.texi (SPARC options): Document -mlra as the default.
* doc/invoke.texi (SPARC options): Document -mlra as the default. * config/sparc/sparc.c (sparc_option_override): Force LRA unless -mlra/-mno-lra was passed to the compiler. From-SVN: r244034
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/sparc/sparc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index ae0d0f6..b9213c3 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -1523,6 +1523,10 @@ sparc_option_override (void)
if (TARGET_ARCH32)
target_flags &= ~MASK_STACK_BIAS;
+ /* Use LRA instead of reload, unless otherwise instructed. */
+ if (!(target_flags_explicit & MASK_LRA))
+ target_flags |= MASK_LRA;
+
/* Supply a default value for align_functions. */
if (align_functions == 0
&& (sparc_cpu == PROCESSOR_ULTRASPARC