This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH, rs6000: fix PR 31635


This patch corrects PR 31635.  The problem was that -mvrsave and
-mno-vrsave were introduced to replace the deprecated -mvrsave=yes/no
option, but seemingly no code was added to rs6000_handle_option to
process them!

Bootstrapped and regtested.  OK for the trunk, pending stage 1?

Ben


2009-03-27  Ben Elliston  <bje@au.ibm.com>

        PR target/31635
        * config/rs6000/rs6000.c (rs6000_handle_option): Process
        OPT_mvrsave as well as OPT_mvrsave_.

Index: rs6000.c
===================================================================
--- rs6000.c    (revision 145097)
+++ rs6000.c    (working copy)
@@ -2326,6 +2326,11 @@
       rs6000_explicit_options.aix_struct_ret = true;
       break;
 
+    case OPT_mvrsave:
+      rs6000_explicit_options.vrsave = true;
+      TARGET_ALTIVEC_VRSAVE = value;
+      break;
+
     case OPT_mvrsave_:
       rs6000_explicit_options.vrsave = true;
       rs6000_parse_yes_no_option ("vrsave", arg, &(TARGET_ALTIVEC_VRSAVE));



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]