/* 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
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);
#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
debug_type = DEBUG_STABS;
break;
+ case OPTION_GDWARF2:
+ debug_type = DEBUG_DWARF2;
+ break;
+
case 'J':
flag_signed_overflow_ok = 1;
break;
start_time = get_run_time ();
+#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
static void
dump_statistics ()
{
- extern char **environ;
#ifdef HAVE_SBRK
char *lim = (char *) sbrk (0);
#endif