aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-03-18 08:01:21 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-03-18 08:01:21 +0000
commit2d6eb6c6b647c9c1b45a8f8d1823dc9f874ffc23 (patch)
tree023ab2252a499130187f7f23bed9d55ed7473191 /gcc/opts.c
parent1a0d99a8f6685972eb231797ef5c7eb4bdcbbd35 (diff)
downloadgcc-2d6eb6c6b647c9c1b45a8f8d1823dc9f874ffc23.zip
gcc-2d6eb6c6b647c9c1b45a8f8d1823dc9f874ffc23.tar.gz
gcc-2d6eb6c6b647c9c1b45a8f8d1823dc9f874ffc23.tar.bz2
common.opt (m): Remove.
* common.opt (m): Remove. * opts.c (handle_option): Pass 'm' options to set_target_switch if table lookup fails. (common_handle_option): Remove OPT_m case. From-SVN: r96650
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 3361c9f..3befb1d 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -294,7 +294,16 @@ handle_option (const char **argv, unsigned int lang_mask)
}
if (opt_index == cl_options_count)
- goto done;
+ {
+#if defined (TARGET_OPTIONS) || defined (TARGET_SWITCHES)
+ if (opt[1] == 'm')
+ {
+ set_target_switch (argv[0] + 2);
+ result = 1;
+ }
+#endif
+ goto done;
+ }
option = &cl_options[opt_index];
@@ -1016,10 +1025,6 @@ common_handle_option (size_t scode, const char *arg, int value)
set_debug_level (XCOFF_DEBUG, code == OPT_gxcoff_, arg);
break;
- case OPT_m:
- set_target_switch (arg);
- break;
-
case OPT_o:
asm_file_name = arg;
break;