aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorGunther Nikl <gnikl@users.sourceforge.net>2012-10-26 17:29:06 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2012-10-26 17:29:06 +0000
commit9eaff65375cda9e13fe4503404cbe1d91a00d26d (patch)
treea6c8734fa41a65fc7621a92607a6d27dfe09fb51 /gcc/common
parentca3f371f1246db1bf2b71abfdf844a08e0f5dc31 (diff)
downloadgcc-9eaff65375cda9e13fe4503404cbe1d91a00d26d.zip
gcc-9eaff65375cda9e13fe4503404cbe1d91a00d26d.tar.gz
gcc-9eaff65375cda9e13fe4503404cbe1d91a00d26d.tar.bz2
Author: 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. From-SVN: r192851
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/m68k/m68k-common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/common/config/m68k/m68k-common.c b/gcc/common/config/m68k/m68k-common.c
index 3a81b67..a48529a 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_: