2005-08-07 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 8 Aug 2005 03:05:44 +0000 (03:05 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 8 Aug 2005 03:05:44 +0000 (03:05 +0000)
PR gas/1118
* as.c (parse_args): Handle -al=<FILE>.

gas/ChangeLog
gas/as.c

index 0ac1757369238086bf48bbcb6da442eb5c78e4b9..fac097e5f9b71524990e997d9e61cf49a2df12b5 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/1118
+       * as.c (parse_args): Handle -al=<FILE>.
+
 2005-08-07  Nick Clifton  <nickc@redhat.com>
 
        * read.c (s_app_line): Accept a line number of 0 for compatibility
index 0d5b46cc3d489f21d738d48cb537c0ab1938ff7d..d4b128000909a075482b90a52cc8e8feee95a1c1 100644 (file)
--- 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=<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 == '-')