* Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
[deliverable/binutils-gdb.git] / gas / as.c
index fc2ec45e49fa7c264f78f60fbdbc5dab1f0fdc61..f27a3fe62cb6807f6e86af4588ea5854c6c0c18f 100644 (file)
--- a/gas/as.c
+++ b/gas/as.c
@@ -1,5 +1,5 @@
 /* as.c - GAS main program.
-   Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 1998
+   Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 #include "output-file.h"
 #include "sb.h"
 #include "macro.h"
-#ifndef HAVE_ITBL_CPU
+
+#ifdef HAVE_ITBL_CPU
+#include "itbl-ops.h"
+#else
 #define itbl_parse(itbl_file) 1
 #define itbl_init()
 #endif
@@ -133,52 +136,56 @@ show_usage (stream)
 
   fprintf (stream, _("\
 Options:\n\
--a[sub-option...]      turn on listings\n\
-  Sub-options [default hls]:\n\
-  c    omit false conditionals\n\
-  d    omit debugging directives\n\
-  h    include high-level source\n\
-  l    include assembly\n\
-  m     include macro expansions\n\
-  n    omit forms processing\n\
-  s    include symbols\n\
-  =file set listing file name (must be last sub-option)\n"));
+  -a[sub-option...]    turn on listings\n\
+    Sub-options [default hls]:\n\
+    c   omit false conditionals\n\
+    d   omit debugging directives\n\
+    h   include high-level source\n\
+    l   include assembly\n\
+    m   include macro expansions\n\
+    n   omit forms processing\n\
+    s   include symbols\n\
+    L   include line debug statistics (if applicable)\n\
+    =file set listing file name (must be last sub-option)\n"));
+  
   fprintf (stream, _("\
--D                     produce assembler debugging messages\n\
---defsym SYM=VAL       define symbol SYM to given value\n\
--f                     skip whitespace and comment preprocessing\n\
---gstabs               generate stabs debugging information\n\
---help                 show this message and exit\n\
--I DIR                 add DIR to search list for .include directives\n\
--J                     don't warn about signed overflow\n\
--K                     warn when differences altered for long displacements\n\
--L,--keep-locals       keep local symbols (e.g. starting with `L')\n"));
+  -D                     produce assembler debugging messages\n\
+  --defsym SYM=VAL        define symbol SYM to given value\n\
+  -f                     skip whitespace and comment preprocessing\n\
+  --gstabs               generate stabs debugging information\n\
+  --help                 show this message and exit\n\
+  -I DIR                 add DIR to search list for .include directives\n\
+  -J                     don't warn about signed overflow\n\
+  -K                     warn when differences altered for long displacements\n\
+  -L,--keep-locals        keep local symbols (e.g. starting with `L')\n"));
+  
   fprintf (stream, _("\
--M,--mri               assemble in MRI compatibility mode\n\
---MD FILE              write dependency information in FILE (default none)\n\
--nocpp                 ignored\n\
--o OBJFILE             name the object-file output OBJFILE (default a.out)\n\
--R                     fold data section into text section\n\
---statistics           print various measured statistics from execution\n\
---strip-local-absolute strip local absolute symbols\n\
---traditional-format   Use same format as native assembler when possible\n\
---version              print assembler version number and exit\n\
--W                     suppress warnings\n\
---itbl INSTTBL         extend instruction set to include instructions\n\
-                       matching the specifications defined in file INSTTBL\n\
--w                     ignored\n\
--X                     ignored\n\
--Z                     generate object file even after errors\n"));
+  -M,--mri               assemble in MRI compatibility mode\n\
+  --MD FILE              write dependency information in FILE (default none)\n\
+  -nocpp                 ignored\n\
+  -o OBJFILE             name the object-file output OBJFILE (default a.out)\n\
+  -R                     fold data section into text section\n\
+  --statistics           print various measured statistics from execution\n\
+  --strip-local-absolute  strip local absolute symbols\n\
+  --traditional-format   Use same format as native assembler when possible\n\
+  --version              print assembler version number and exit\n\
+  -W                     suppress warnings\n\
+  --itbl INSTTBL         extend instruction set to include instructions\n\
+                         matching the specifications defined in file INSTTBL\n\
+  -w                     ignored\n\
+  -X                     ignored\n\
+  -Z                     generate object file even after errors\n"));
+  
   fprintf (stream, _("\
---listing-lhs-width    set the width in words of the output data column of\n\
-                       the listing\n\
---listing-lhs-width2   set the width in words of the continuation lines\n\
-                       of the output data column; ignored if smaller than\n\
-                       the width of the first line\n\
---listing-rhs-width    set the max width in characters of the lines from\n\
-                       the source file\n\
---listing-cont-lines   set the maximum number of continuation lines used\n\
-                       for the output data column of the listing\n"));
+  --listing-lhs-width    set the width in words of the output data column of\n\
+                         the listing\n\
+  --listing-lhs-width2   set the width in words of the continuation lines\n\
+                         of the output data column; ignored if smaller than\n\
+                         the width of the first line\n\
+  --listing-rhs-width    set the max width in characters of the lines from\n\
+                         the source file\n\
+  --listing-cont-lines   set the maximum number of continuation lines used\n\
+                         for the output data column of the listing\n"));
 
   md_show_usage (stream);
 
@@ -361,7 +368,9 @@ parse_args (pargc, pargv)
 #define OPTION_STRIP_LOCAL_ABSOLUTE (OPTION_STD_BASE + 15)
     {"strip-local-absolute", no_argument, NULL, OPTION_STRIP_LOCAL_ABSOLUTE},
 #define OPTION_TRADITIONAL_FORMAT (OPTION_STD_BASE + 16)
-    {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT}
+    {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT},
+#define OPTION_GDWARF2 (OPTION_STD_BASE + 17)
+    {"gdwarf2", no_argument, NULL, OPTION_GDWARF2}
   };
 
   /* Construct the option lists from the standard list and the
@@ -542,6 +551,10 @@ the GNU General Public License.  This program has absolutely no warranty.\n"));
          debug_type = DEBUG_STABS;
          break;
  
+       case OPTION_GDWARF2:
+         debug_type = DEBUG_DWARF2;
+         break;
+
        case 'J':
          flag_signed_overflow_ok = 1;
          break;
@@ -687,7 +700,9 @@ main (argc, argv)
 
   start_time = get_run_time ();
 
+#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
   setlocale (LC_MESSAGES, "");
+#endif
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
@@ -842,7 +857,6 @@ main (argc, argv)
 static void
 dump_statistics ()
 {
-  extern char **environ;
 #ifdef HAVE_SBRK
   char *lim = (char *) sbrk (0);
 #endif
This page took 0.025488 seconds and 4 git commands to generate.