From 9eaff65375cda9e13fe4503404cbe1d91a00d26d Mon Sep 17 00:00:00 2001 From: Gunther Nikl Date: Fri, 26 Oct 2012 17:29:06 +0000 Subject: [PATCH] Author: Gunther Nikl * 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 | 5 +++++ gcc/common/config/m68k/m68k-common.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db8c3520563c..a356e97fbfb8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-10-26 Gunther Nikl + + * 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 * ree.c (add_removable_extension): Remove unnecessary diff --git a/gcc/common/config/m68k/m68k-common.c b/gcc/common/config/m68k/m68k-common.c index 3a81b678a243..a48529adc7e8 100644 --- a/gcc/common/config/m68k/m68k-common.c +++ b/gcc/common/config/m68k/m68k-common.c @@ -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_: