From: Joseph Myers Date: Thu, 5 May 2011 19:35:12 +0000 (+0100) Subject: rs6000.c (rs6000_handle_option): Don't fall through from -mfpu= handling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=013c0411847e7dccb9c2732dab70e14fcad4ebe4;p=gcc.git 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 --- 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