Changeset 609 for branches/GNU/src/binutils/gas/as.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gas/as.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 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. */ … … 210 218 #ifdef BFD_ASSEMBLER 211 219 fprintf (stderr, _("GNU assembler version %s (%s) using BFD version %s"), 212 VERSION, TARGET_ALIAS, BFD_VERSION );220 VERSION, TARGET_ALIAS, BFD_VERSION_STRING); 213 221 #else 214 222 fprintf (stderr, _("GNU assembler version %s (%s)"), VERSION, TARGET_ALIAS); … … 352 360 353 361 char *shortopts; 354 extern CONSTchar *md_shortopts;362 extern const char *md_shortopts; 355 363 static const char std_shortopts[] = { 356 364 '-', 'J', … … 376 384 #define OPTION_HELP (OPTION_STD_BASE) 377 385 {"help", no_argument, NULL, OPTION_HELP}, 386 /* getopt allows abbreviations, so we do this to stop it from 387 treating -k as an abbreviation for --keep-locals. Some 388 ports use -k to enable PIC assembly. */ 389 {"keep-locals", no_argument, NULL, 'L'}, 378 390 {"keep-locals", no_argument, NULL, 'L'}, 379 391 {"mri", no_argument, NULL, 'M'}, … … 502 514 503 515 case OPTION_TARGET_HELP: 504 505 516 md_show_usage (stdout); 517 exit (EXIT_SUCCESS); 506 518 507 519 case OPTION_HELP: … … 526 538 case OPTION_VERSION: 527 539 /* This output is intended to follow the GNU standards document. */ 540 #ifdef BFD_ASSEMBLER 541 printf (_("GNU assembler %s\n"), BFD_VERSION_STRING); 542 #else 528 543 printf (_("GNU assembler %s\n"), VERSION); 529 printf (_("Copyright 2001 Free Software Foundation, Inc.\n")); 544 #endif 545 printf (_("Copyright 2002 Free Software Foundation, Inc.\n")); 530 546 printf (_("\ 531 547 This program is free software; you may redistribute it under the terms of\n\ … … 589 605 if (optarg == NULL) 590 606 { 591 as_warn (_(" No file name following -t option\n"));607 as_warn (_("no file name following -t option")); 592 608 break; 593 609 } … … 604 620 itbl_files->name = xstrdup (optarg); 605 621 if (itbl_parse (itbl_files->name) != 0) 606 { 607 fprintf (stderr, _("Failed to read instruction table %s\n"), 608 itbl_files->name); 609 exit (EXIT_SUCCESS); 610 } 622 as_fatal (_("failed to read instruction table %s\n"), 623 itbl_files->name); 611 624 } 612 625 break; … … 767 780 *pargc = new_argc; 768 781 *pargv = new_argv; 782 783 #ifdef md_after_parse_args 784 md_after_parse_args (); 785 #endif 769 786 } 770 787 771 788 static long start_time; 789 790 int main PARAMS ((int, char **)); 772 791 773 792 int … … 785 804 setlocale (LC_MESSAGES, ""); 786 805 #endif 806 #if defined (HAVE_SETLOCALE) 807 setlocale (LC_CTYPE, ""); 808 #endif 787 809 bindtextdomain (PACKAGE, LOCALEDIR); 788 810 textdomain (PACKAGE); 789 811 790 812 if (debug_memory) 791 { 792 #ifdef BFD_ASSEMBLER 793 extern long _bfd_chunksize; 794 _bfd_chunksize = 64; 795 #endif 796 chunksize = 64; 797 } 813 chunksize = 64; 798 814 799 815 #ifdef HOST_SPECIAL_INIT … … 1055 1071 md_begin (); 1056 1072 1073 #ifdef USING_CGEN 1074 gas_cgen_begin (); 1075 #endif 1057 1076 #ifdef obj_begin 1058 1077 obj_begin (); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.