rs6000.c (rs6000_handle_option): Don't fall through from -mfpu= handling.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 5 May 2011 19:35:12 +0000 (20:35 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 5 May 2011 19:35:12 +0000 (20:35 +0100)
* 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
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.opt

index 642f85f0bfb0333cf75efd701257e86616f4e351..93409300f43e9f6324e227a7ab1fde0f1edcc152 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-05  Joseph Myers  <joseph@codesourcery.com>
+
+       * 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  <bernds@codesourcery.com>
 
        * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
index a4a0eb6306274471d359b2795117f73b6273fe52..d7b00888451ada6bbe7eefa053b08e818afd1786 100644 (file)
@@ -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";
index 8a83a5ad6bd795c92b4d90cc369c211450aee213..131cec9cc8f5b13db03885a80cfd9edc62e864fa 100644 (file)
@@ -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