]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Author: Gunther Nikl <gnikl@users.sourceforge.net>
authorGunther Nikl <gnikl@users.sourceforge.net>
Fri, 26 Oct 2012 17:29:06 +0000 (17:29 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Fri, 26 Oct 2012 17:29:06 +0000 (17:29 +0000)
* common/config/m68k/m68k-common.c (m68k_handle_option): Set
gcc_options fields of opts_set for -m68020-40 and -m68020-60.

From-SVN: r192851

gcc/ChangeLog
gcc/common/config/m68k/m68k-common.c

index db8c3520563c71246ab63ac0a230917a03222ad7..a356e97fbfb8cb76fef8f8eca75575d35e25ad38 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-26  Gunther Nikl  <gnikl@users.sourceforge.net>
+
+       * common/config/m68k/m68k-common.c (m68k_handle_option): Set
+       gcc_options fields of opts_set for -m68020-40 and -m68020-60.
+
 2012-10-26  Teresa Johnson  <tejohnson@google.com>
 
        * ree.c (add_removable_extension): Remove unnecessary
index 3a81b678a24394cad1c1786fb8b2fb2474697a83..a48529adc7e80bb58b3801031c93678d889d57e5 100644 (file)
@@ -33,7 +33,7 @@ along with GCC; see the file COPYING3.  If not see
 
 static bool
 m68k_handle_option (struct gcc_options *opts,
-                   struct gcc_options *opts_set ATTRIBUTE_UNUSED,
+                   struct gcc_options *opts_set,
                    const struct cl_decoded_option *decoded,
                    location_t loc)
 {
@@ -45,12 +45,16 @@ m68k_handle_option (struct gcc_options *opts,
     {
     case OPT_m68020_40:
       opts->x_m68k_tune_option = u68020_40;
+      opts_set->x_m68k_tune_option = (uarch_type) 1;
       opts->x_m68k_cpu_option = m68020;
+      opts_set->x_m68k_cpu_option = (target_device) 1;
       return true;
 
     case OPT_m68020_60:
       opts->x_m68k_tune_option = u68020_60;
+      opts_set->x_m68k_tune_option = (uarch_type) 1;
       opts->x_m68k_cpu_option = m68020;
+      opts_set->x_m68k_cpu_option = (target_device) 1;
       return true;
 
     case OPT_mshared_library_id_: