diff options
author | Nick Clifton <nickc@redhat.com> | 2004-08-24 11:58:27 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-08-24 11:58:27 +0000 |
commit | 8f94ae4da35d549beb11b77c7c19adf0f52bf008 (patch) | |
tree | e6d2273f7f08144196c4f44cd6e02c0f5b886511 /gas/as.c | |
parent | 5069eab2fd44ef7ed28c6217dc4ebe5654da8063 (diff) | |
download | gdb-8f94ae4da35d549beb11b77c7c19adf0f52bf008.zip gdb-8f94ae4da35d549beb11b77c7c19adf0f52bf008.tar.gz gdb-8f94ae4da35d549beb11b77c7c19adf0f52bf008.tar.bz2 |
* 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.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; |