diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-08-08 03:05:44 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-08-08 03:05:44 +0000 |
commit | 5a14ab234b3f8fbfb9c69b2300960e8c4e7e2eaa (patch) | |
tree | acbf3974abb974f3faeab228fb66948a51d4944f /gas/as.c | |
parent | cd71c7baef437ecd98607b567460e0c263c68e68 (diff) | |
download | gdb-5a14ab234b3f8fbfb9c69b2300960e8c4e7e2eaa.zip gdb-5a14ab234b3f8fbfb9c69b2300960e8c4e7e2eaa.tar.gz gdb-5a14ab234b3f8fbfb9c69b2300960e8c4e7e2eaa.tar.bz2 |
2005-08-07 H.J. Lu <hongjiu.lu@intel.com>
PR gas/1118
* as.c (parse_args): Handle -al=<FILE>.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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=<FILE> is a valid switch but getopt would normally reject it since --alternate does not take an argument. */ ,{"a", optional_argument, NULL, 'a'} + /* Handle -al=<FILE>. */ + ,{"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 == '-') |