Commit d377a5fb by David S. Miller Committed by David S. Miller

Fix sol2 sparc -mv8 regression.

	* config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
	cpu adjustment.
	* config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
	append -mcpu=v9 when -mv8plus is given.

From-SVN: r180362
parent b7190f2f
2011-10-23 David S. Miller <davem@davemloft.net> 2011-10-23 David S. Miller <davem@davemloft.net>
* config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
cpu adjustment.
* config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
append -mcpu=v9 when -mv8plus is given.
* config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
between float and non-float regs when VIS3. between float and non-float regs when VIS3.
* config/sparc/sparc.c (eligible_for_restore_insn): We can't * config/sparc/sparc.c (eligible_for_restore_insn): We can't
...@@ -166,6 +166,8 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); ...@@ -166,6 +166,8 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
%{m32:%{m64:%emay not use both -m32 and -m64}} \ %{m32:%{m64:%emay not use both -m32 and -m64}} \
%{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ %{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \
%{!mcpu*:-mcpu=cypress}} \ %{!mcpu*:-mcpu=cypress}} \
%{mv8plus:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \
%{!mcpu*:-mcpu=v9}} \
%{!m32:%{!mcpu*:-mcpu=ultrasparc}} \ %{!m32:%{!mcpu*:-mcpu=ultrasparc}} \
%{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \ %{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \
" "
......
...@@ -1029,10 +1029,6 @@ sparc_option_override (void) ...@@ -1029,10 +1029,6 @@ sparc_option_override (void)
sparc_cpu_and_features = def->processor; sparc_cpu_and_features = def->processor;
} }
if ((target_flags & MASK_V8PLUS)
&& sparc_cpu_and_features < PROCESSOR_V9)
sparc_cpu_and_features = PROCESSOR_V9;
if (!global_options_set.x_sparc_cpu) if (!global_options_set.x_sparc_cpu)
sparc_cpu = sparc_cpu_and_features; sparc_cpu = sparc_cpu_and_features;
......
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