This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: gas/1118: Regression] "as[ -al=FILE" no longer works
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Sun, 7 Aug 2005 08:49:00 -0700
- Subject: PATCH: gas/1118: Regression] "as[ -al=FILE" no longer works
This patch fixes:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1118
H.J.
---
2005-08-07 H.J. Lu <hongjiu.lu@intel.com>
PR gas/1118
* as.c (parse_args): Handle -al=<FILE>.
--- gas/as.c.list 2005-05-05 09:07:26.000000000 -0700
+++ gas/as.c 2005-08-07 08:39:36.000000000 -0700
@@ -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 pr
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 == '-')