aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sparc/sparc.c4
-rw-r--r--gcc/doc/invoke.texi4
3 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b31f16..281a4a4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
+
+ * 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.
+
2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
PR rtl-optimization/65618
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
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index a8f8efe..f1794bc 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -23271,8 +23271,8 @@ in 64-bit mode.
@itemx -mno-lra
@opindex mlra
@opindex mno-lra
-Enable Local Register Allocation. This is experimental for SPARC, so by
-default the compiler uses standard reload (i.e. @option{-mno-lra}).
+Enable Local Register Allocation. This is the default for SPARC since GCC 7
+so @option{-mno-lra} needs to be passed to get old Reload.
@item -mcpu=@var{cpu_type}
@opindex mcpu