From: H.J. Lu Date: Mon, 8 Aug 2005 03:05:44 +0000 (+0000) Subject: 2005-08-07 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a14ab234b3f8fbfb9c69b2300960e8c4e7e2eaa;p=binutils-gdb.git 2005-08-07 H.J. Lu PR gas/1118 * as.c (parse_args): Handle -al=. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 0ac17573692..fac097e5f9b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-08-07 H.J. Lu + + PR gas/1118 + * as.c (parse_args): Handle -al=. + 2005-08-07 Nick Clifton * read.c (s_app_line): Accept a line number of 0 for compatibility diff --git a/gas/as.c b/gas/as.c index 0d5b46cc3d4..d4b12800090 100644 --- a/gas/as.c +++ b/gas/as.c @@ -433,6 +433,7 @@ parse_args (int * pargc, char *** pargv) OPTION_EXECSTACK, OPTION_NOEXECSTACK, OPTION_ALTERNATE, + OPTION_AL, OPTION_HASH_TABLE_SIZE, OPTION_REDUCE_MEMORY_OVERHEADS, OPTION_WARN_FATAL @@ -451,6 +452,8 @@ parse_args (int * pargc, char *** pargv) necessary because -a= is a valid switch but getopt would normally reject it since --alternate does not take an argument. */ ,{"a", optional_argument, NULL, 'a'} + /* Handle -al=. */ + ,{"al", optional_argument, NULL, OPTION_AL} ,{"defsym", required_argument, NULL, OPTION_DEFSYM} ,{"dump-config", no_argument, NULL, OPTION_DUMPCONFIG} ,{"emulation", required_argument, NULL, OPTION_EMULATION} @@ -786,6 +789,12 @@ the GNU General Public License. This program has absolutely no warranty.\n")); flag_always_generate_output = 1; break; + case OPTION_AL: + listing |= LISTING_LISTING; + if (optarg) + listing_filename = xstrdup (optarg); + break; + case OPTION_ALTERNATE: optarg = old_argv [optind - 1]; while (* optarg == '-')