Commit 70a6dbe7 by Eric Botcazou Committed by Eric Botcazou

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
parent 549a66a5
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> 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
PR rtl-optimization/65618 PR rtl-optimization/65618
......
...@@ -1523,6 +1523,10 @@ sparc_option_override (void) ...@@ -1523,6 +1523,10 @@ sparc_option_override (void)
if (TARGET_ARCH32) if (TARGET_ARCH32)
target_flags &= ~MASK_STACK_BIAS; 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. */ /* Supply a default value for align_functions. */
if (align_functions == 0 if (align_functions == 0
&& (sparc_cpu == PROCESSOR_ULTRASPARC && (sparc_cpu == PROCESSOR_ULTRASPARC
......
...@@ -23271,8 +23271,8 @@ in 64-bit mode. ...@@ -23271,8 +23271,8 @@ in 64-bit mode.
@itemx -mno-lra @itemx -mno-lra
@opindex mlra @opindex mlra
@opindex mno-lra @opindex mno-lra
Enable Local Register Allocation. This is experimental for SPARC, so by Enable Local Register Allocation. This is the default for SPARC since GCC 7
default the compiler uses standard reload (i.e. @option{-mno-lra}). so @option{-mno-lra} needs to be passed to get old Reload.
@item -mcpu=@var{cpu_type} @item -mcpu=@var{cpu_type}
@opindex mcpu @opindex mcpu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment