Changeset 618 for trunk/src/binutils/gas/as.c
- Timestamp:
- Aug 16, 2003, 11:33:53 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/gas/as.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r617 r618 1 1 /* as.c - GAS main program. 2 2 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001 3 1999, 2000, 2001, 2002 4 4 Free Software Foundation, Inc. 5 5 … … 44 44 #include "dwarf2dbg.h" 45 45 46 #ifdef BFD_ASSEMBLER 47 #include "bfdver.h" 48 #endif 49 46 50 #ifdef HAVE_ITBL_CPU 47 51 #include "itbl-ops.h" … … 62 66 static void perform_an_assembly_pass PARAMS ((int argc, char **argv)); 63 67 static int macro_expr PARAMS ((const char *, int, sb *, int *)); 68 #ifdef USING_CGEN 69 /* Perform any cgen specific initialisation for gas. */ 70 extern void gas_cgen_begin PARAMS ((void)); 71 #endif 64 72 65 73 /* True if a listing is wanted. */ … … 217 225 #ifdef BFD_ASSEMBLER 218 226 fprintf (stderr, _("GNU assembler version %s (%s) using BFD version %s"), 219 VERSION, TARGET_ALIAS, BFD_VERSION );227 VERSION, TARGET_ALIAS, BFD_VERSION_STRING); 220 228 #else 221 229 fprintf (stderr, _("GNU assembler version %s (%s)"), VERSION, TARGET_ALIAS); … … 359 367 360 368 char *shortopts; 361 extern CONSTchar *md_shortopts;369 extern const char *md_shortopts; 362 370 static const char std_shortopts[] = { 363 371 '-', 'J', … … 383 391 #define OPTION_HELP (OPTION_STD_BASE) 384 392 {"help", no_argument, NULL, OPTION_HELP}, 393 /* getopt allows abbreviations, so we do this to stop it from 394 treating -k as an abbreviation for --keep-locals. Some 395 ports use -k to enable PIC assembly. */ 396 {"keep-locals", no_argument, NULL, 'L'}, 385 397 {"keep-locals", no_argument, NULL, 'L'}, 386 398 {"mri", no_argument, NULL, 'M'}, … … 509 521 510 522 case OPTION_TARGET_HELP: 511 512 523 md_show_usage (stdout); 524 exit (EXIT_SUCCESS); 513 525 514 526 case OPTION_HELP: … … 533 545 case OPTION_VERSION: 534 546 /* This output is intended to follow the GNU standards document. */ 547 #ifdef BFD_ASSEMBLER 548 printf (_("GNU assembler %s\n"), BFD_VERSION_STRING); 549 #else 535 550 printf (_("GNU assembler %s\n"), VERSION); 536 printf (_("Copyright 2001 Free Software Foundation, Inc.\n")); 551 #endif 552 printf (_("Copyright 2002 Free Software Foundation, Inc.\n")); 537 553 printf (_("\ 538 554 This program is free software; you may redistribute it under the terms of\n\ … … 596 612 if (optarg == NULL) 597 613 { 598 as_warn (_(" No file name following -t option\n"));614 as_warn (_("no file name following -t option")); 599 615 break; 600 616 } … … 611 627 itbl_files->name = xstrdup (optarg); 612 628 if (itbl_parse (itbl_files->name) != 0) 613 { 614 fprintf (stderr, _("Failed to read instruction table %s\n"), 615 itbl_files->name); 616 exit (EXIT_SUCCESS); 617 } 629 as_fatal (_("failed to read instruction table %s\n"), 630 itbl_files->name); 618 631 } 619 632 break; … … 774 787 *pargc = new_argc; 775 788 *pargv = new_argv; 789 790 #ifdef md_after_parse_args 791 md_after_parse_args (); 792 #endif 776 793 } 777 794 778 795 static long start_time; 796 797 int main PARAMS ((int, char **)); 779 798 780 799 int … … 799 818 setlocale (LC_MESSAGES, ""); 800 819 #endif 820 #if defined (HAVE_SETLOCALE) 821 setlocale (LC_CTYPE, ""); 822 #endif 801 823 bindtextdomain (PACKAGE, LOCALEDIR); 802 824 textdomain (PACKAGE); 803 825 804 826 if (debug_memory) 805 { 806 #ifdef BFD_ASSEMBLER 807 extern long _bfd_chunksize; 808 _bfd_chunksize = 64; 809 #endif 810 chunksize = 64; 811 } 827 chunksize = 64; 812 828 813 829 #ifdef HOST_SPECIAL_INIT … … 1119 1135 md_begin (); 1120 1136 1137 #ifdef USING_CGEN 1138 gas_cgen_begin (); 1139 #endif 1121 1140 #ifdef obj_begin 1122 1141 obj_begin (); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.