From: Nick Clifton Date: Tue, 24 Aug 2004 11:58:27 +0000 (+0000) Subject: * as.c (std_shortopts): Allow -g to take an optional argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f94ae4da35d549beb11b77c7c19adf0f52bf008;p=binutils-gdb.git * as.c (std_shortopts): Allow -g to take an optional argument. (parse_args): Pass any switch starting with -g on to the backend for parsing. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 27d72d597a1..4eec4a80288 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2004-08-24 Nick Clifton + + * as.c (std_shortopts): Allow -g to take an optional argument. + (parse_args): Pass any switch starting with -g on to the backend + for parsing. + 2004-08-18 Mark Mitchell * configure.in (arm*-*-symbianelf*): New target. diff --git a/gas/as.c b/gas/as.c index 7b95369eb4e..60647554231 100644 --- a/gas/as.c +++ b/gas/as.c @@ -385,7 +385,7 @@ parse_args (int * pargc, char *** pargv) /* -K is not meaningful if .word is not being hacked. */ 'K', #endif - 'L', 'M', 'R', 'W', 'Z', 'a', ':', ':', 'D', 'f', 'g', 'I', ':', 'o', ':', + 'L', 'M', 'R', 'W', 'Z', 'a', ':', ':', 'D', 'f', 'g', ':',':', 'I', ':', 'o', ':', #ifndef VMS /* -v takes an argument on VMS, so we don't make it a generic option. */ @@ -671,11 +671,10 @@ the GNU General Public License. This program has absolutely no warranty.\n")); break; case 'g': - /* Some backends, eg Alpha, use the -g switch for their own - purposes. So we check here for an explicit -g and allow + /* Some backends, eg Alpha and Mips, use the -g switch for their + own purposes. So we check here for an explicit -g and allow the backend to decide if it wants to process it. */ if ( old_argv[optind - 1][1] == 'g' - && old_argv[optind - 1][2] == 0 && md_parse_option (optc, optarg)) continue;