From f1a6a84bed44cf8c68ebf796cc8a4905dfdc1751 Mon Sep 17 00:00:00 2001 From: rsandifo Date: Fri, 18 Mar 2005 08:01:21 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96650 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/common.opt | 3 --- gcc/opts.c | 15 ++++++++++----- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1354ae7c1770..089bf5215728 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-03-18 Richard Sandiford + + * 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 * builtins.c (fold_builtin_bitop): Take decomposed arguments diff --git a/gcc/common.opt b/gcc/common.opt index 1fc2289db233..d4cd60cd12d4 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -999,9 +999,6 @@ gxcoff+ Common JoinedOrMissing Generate debug information in extended XCOFF format -m -Common Joined - o Common Joined Separate -o Place output into diff --git a/gcc/opts.c b/gcc/opts.c index 3361c9fe7247..3befb1d4d437 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; -- 2.47.3