summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gas/as.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/gas/as.c')
-rw-r--r--contrib/binutils/gas/as.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/contrib/binutils/gas/as.c b/contrib/binutils/gas/as.c
index e8c2212..dab04e9 100644
--- a/contrib/binutils/gas/as.c
+++ b/contrib/binutils/gas/as.c
@@ -1,6 +1,6 @@
/* as.c - GAS main program.
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001
+ 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -208,7 +208,7 @@ print_version_id ()
#ifdef BFD_ASSEMBLER
fprintf (stderr, _("GNU assembler version %s (%s) using BFD version %s"),
- VERSION, TARGET_ALIAS, BFD_VERSION);
+ VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
#else
fprintf (stderr, _("GNU assembler version %s (%s)"), VERSION, TARGET_ALIAS);
#endif
@@ -524,8 +524,8 @@ parse_args (pargc, pargv)
case OPTION_VERSION:
/* This output is intended to follow the GNU standards document. */
- printf (_("GNU assembler %s\n"), VERSION);
- printf (_("Copyright 2001 Free Software Foundation, Inc.\n"));
+ printf (_("GNU assembler %s\n"), BFD_VERSION_STRING);
+ printf (_("Copyright 2002 Free Software Foundation, Inc.\n"));
printf (_("\
This program is free software; you may redistribute it under the terms of\n\
the GNU General Public License. This program has absolutely no warranty.\n"));
@@ -587,7 +587,7 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
if (optarg == NULL)
{
- as_warn (_("No file name following -t option\n"));
+ as_warn (_("no file name following -t option"));
break;
}
@@ -602,11 +602,8 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
internal table. */
itbl_files->name = xstrdup (optarg);
if (itbl_parse (itbl_files->name) != 0)
- {
- fprintf (stderr, _("Failed to read instruction table %s\n"),
- itbl_files->name);
- exit (EXIT_SUCCESS);
- }
+ as_fatal (_("failed to read instruction table %s\n"),
+ itbl_files->name);
}
break;
@@ -765,10 +762,16 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
*pargc = new_argc;
*pargv = new_argv;
+
+#ifdef md_after_parse_args
+ md_after_parse_args ();
+#endif
}
static long start_time;
+int main PARAMS ((int, char **));
+
int
main (argc, argv)
int argc;
@@ -783,6 +786,9 @@ main (argc, argv)
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
#endif
+#if defined (HAVE_SETLOCALE)
+ setlocale (LC_CTYPE, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
OpenPOWER on IntegriCloud