re PR bootstrap/48337 (options.c doesn't compile on SPARC)

2011-03-30  Joseph Myers  <joseph@codesourcery.com>
	    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR bootstrap/48337
	* config/sparc/sparc.opt (sparc_cpu_and_features): Add
	Init(PROCESSOR_V7).
	(sparc_cpu): Likewise.
	* config/sparc/sparc.c (sparc_option_override): Replace 0 by
	PROCESSOR_V7.

Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

From-SVN: r171717
This commit is contained in:
Joseph Myers 2011-03-30 11:01:13 +01:00 committed by Rainer Orth
parent 5453bbef09
commit 023592aa3b
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2011-03-30 Joseph Myers <joseph@codesourcery.com>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR bootstrap/48337
* config/sparc/sparc.opt (sparc_cpu_and_features): Add
Init(PROCESSOR_V7).
(sparc_cpu): Likewise.
* config/sparc/sparc.c (sparc_option_override): Replace 0 by
PROCESSOR_V7.
2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
PR target/48336

View File

@ -695,7 +695,7 @@ sparc_option_override (void)
{ TARGET_CPU_ultrasparc3, PROCESSOR_ULTRASPARC3 },
{ TARGET_CPU_niagara, PROCESSOR_NIAGARA },
{ TARGET_CPU_niagara2, PROCESSOR_NIAGARA2 },
{ -1, 0 }
{ -1, PROCESSOR_V7 }
};
const struct cpu_default *def;
/* Table of values for -m{cpu,tune}=. This must match the order of

View File

@ -86,11 +86,11 @@ Target
Optimize tail call instructions in assembler and linker
mcpu=
Target RejectNegative Joined Var(sparc_cpu_and_features) Enum(sparc_processor_type)
Target RejectNegative Joined Var(sparc_cpu_and_features) Enum(sparc_processor_type) Init(PROCESSOR_V7)
Use features of and schedule code for given CPU
mtune=
Target RejectNegative Joined Var(sparc_cpu) Enum(sparc_processor_type)
Target RejectNegative Joined Var(sparc_cpu) Enum(sparc_processor_type) Init(PROCESSOR_V7)
Schedule code for given CPU
Enum