common.opt (m): Remove.
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 18 Mar 2005 08:01:21 +0000 (08:01 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 18 Mar 2005 08:01:21 +0000 (08:01 +0000)
* 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

gcc/ChangeLog
gcc/common.opt
gcc/opts.c

index 1354ae7c17707580cfffc3e66c409a5f4cd80e1b..089bf521572846be35e4fc5d82fb82ee9e558c31 100644 (file)
@@ -1,3 +1,10 @@
+2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
+
+       * 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.
+
 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
 
        * builtins.c (fold_builtin_bitop): Take decomposed arguments
index 1fc2289db23363e558b189df276c6662eff18cba..d4cd60cd12d4d59301757ede55e2378f7eb40a95 100644 (file)
@@ -999,9 +999,6 @@ gxcoff+
 Common JoinedOrMissing
 Generate debug information in extended XCOFF format
 
-m
-Common Joined
-
 o
 Common Joined Separate
 -o <file>      Place output into <file>
index 3361c9fe72471bd67d7053fe7e8a36dfdbb95760..3befb1d4d4376fb074c960a9d10fa72146898b95 100644 (file)
@@ -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;