summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-05-05 20:35:12 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2011-05-05 20:35:12 +0100
commit013c0411847e7dccb9c2732dab70e14fcad4ebe4 (patch)
tree7aa3659d8b5849e7531de7f2f04510915f0a5150
parenta0905f8bf4f33f259a484cf3399d5d418e33c4ad (diff)
downloadgcc-013c0411847e7dccb9c2732dab70e14fcad4ebe4.tar.gz
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.c2
-rw-r--r--gcc/config/rs6000/rs6000.opt2
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 <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
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