mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
* 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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-08-24 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* 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 <mark@codesourcery.com>
|
2004-08-18 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* configure.in (arm*-*-symbianelf*): New target.
|
* configure.in (arm*-*-symbianelf*): New target.
|
||||||
|
7
gas/as.c
7
gas/as.c
@ -385,7 +385,7 @@ parse_args (int * pargc, char *** pargv)
|
|||||||
/* -K is not meaningful if .word is not being hacked. */
|
/* -K is not meaningful if .word is not being hacked. */
|
||||||
'K',
|
'K',
|
||||||
#endif
|
#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
|
#ifndef VMS
|
||||||
/* -v takes an argument on VMS, so we don't make it a generic
|
/* -v takes an argument on VMS, so we don't make it a generic
|
||||||
option. */
|
option. */
|
||||||
@ -671,11 +671,10 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'g':
|
case 'g':
|
||||||
/* Some backends, eg Alpha, use the -g switch for their own
|
/* Some backends, eg Alpha and Mips, use the -g switch for their
|
||||||
purposes. So we check here for an explicit -g and allow
|
own purposes. So we check here for an explicit -g and allow
|
||||||
the backend to decide if it wants to process it. */
|
the backend to decide if it wants to process it. */
|
||||||
if ( old_argv[optind - 1][1] == 'g'
|
if ( old_argv[optind - 1][1] == 'g'
|
||||||
&& old_argv[optind - 1][2] == 0
|
|
||||||
&& md_parse_option (optc, optarg))
|
&& md_parse_option (optc, optarg))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user