From 023592aa3be2da79c9194fcf60a2ac395fede455 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 30 Mar 2011 11:01:13 +0100 Subject: [PATCH] re PR bootstrap/48337 (options.c doesn't compile on SPARC) 2011-03-30 Joseph Myers Rainer Orth 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 From-SVN: r171717 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/sparc/sparc.c | 2 +- gcc/config/sparc/sparc.opt | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 689f2916faa..cd95c4a9070 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2011-03-30 Joseph Myers + Rainer Orth + + 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 PR target/48336 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index a90cdb324f5..1e7ce535654 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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 diff --git a/gcc/config/sparc/sparc.opt b/gcc/config/sparc/sparc.opt index 9d8e26b7542..b7fac0946e6 100644 --- a/gcc/config/sparc/sparc.opt +++ b/gcc/config/sparc/sparc.opt @@ -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 -- 2.30.2