From 013c0411847e7dccb9c2732dab70e14fcad4ebe4 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 5 May 2011 20:35:12 +0100 Subject: [PATCH] rs6000.c (rs6000_handle_option): Don't fall through from -mfpu= handling. * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall through from -mfpu= handling. * config/rs6000/rs6000.opt (mfpu=): Use Var and Init. From-SVN: r173448 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.c | 2 +- gcc/config/rs6000/rs6000.opt | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 642f85f0bfb..93409300f43 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-05 Joseph Myers + + * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall + through from -mfpu= handling. + * config/rs6000/rs6000.opt (mfpu=): Use Var and Init. + 2011-05-05 Bernd Schmidt * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a4a0eb63062..d7b00888451 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4480,7 +4480,7 @@ rs6000_handle_option (struct gcc_options *opts, struct gcc_options *opts_set, opts_set->x_target_flags |= MASK_SOFT_FLOAT; opts->x_rs6000_single_float = opts->x_rs6000_double_float = 0; } - /* Fall through. */ + break; case OPT_mrecip: opts->x_rs6000_recip_name = (value) ? "default" : "none"; diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt index 8a83a5ad6bd..131cec9cc8f 100644 --- a/gcc/config/rs6000/rs6000.opt +++ b/gcc/config/rs6000/rs6000.opt @@ -492,7 +492,7 @@ Target RejectNegative Var(rs6000_simple_fpu) Save Floating point unit does not support divide & sqrt mfpu= -Target RejectNegative Joined Enum(fpu_type_t) +Target RejectNegative Joined Enum(fpu_type_t) Var(rs6000_fpu_type) Init(FPU_NONE) -mfpu= Specify FP (sp, dp, sp-lite, dp-lite) (implies -mxilinx-fpu) Enum -- 2.30.2