Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gas/as.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* as.c - GAS main program.
    22   Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
    3    1999, 2000, 2001
     3   1999, 2000, 2001, 2002
    44   Free Software Foundation, Inc.
    55
     
    4444#include "dwarf2dbg.h"
    4545
     46#ifdef BFD_ASSEMBLER
     47#include "bfdver.h"
     48#endif
     49
    4650#ifdef HAVE_ITBL_CPU
    4751#include "itbl-ops.h"
     
    6266static void perform_an_assembly_pass PARAMS ((int argc, char **argv));
    6367static int macro_expr PARAMS ((const char *, int, sb *, int *));
     68#ifdef USING_CGEN
     69/* Perform any cgen specific initialisation for gas.  */
     70extern void gas_cgen_begin PARAMS ((void));
     71#endif
    6472
    6573/* True if a listing is wanted.  */
     
    210218#ifdef BFD_ASSEMBLER
    211219  fprintf (stderr, _("GNU assembler version %s (%s) using BFD version %s"),
    212            VERSION, TARGET_ALIAS, BFD_VERSION);
     220           VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
    213221#else
    214222  fprintf (stderr, _("GNU assembler version %s (%s)"), VERSION, TARGET_ALIAS);
     
    352360
    353361  char *shortopts;
    354   extern CONST char *md_shortopts;
     362  extern const char *md_shortopts;
    355363  static const char std_shortopts[] = {
    356364    '-', 'J',
     
    376384#define OPTION_HELP (OPTION_STD_BASE)
    377385    {"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'},
    378390    {"keep-locals", no_argument, NULL, 'L'},
    379391    {"mri", no_argument, NULL, 'M'},
     
    502514
    503515        case OPTION_TARGET_HELP:
    504           md_show_usage (stdout);
    505           exit (EXIT_SUCCESS);
     516          md_show_usage (stdout);
     517          exit (EXIT_SUCCESS);
    506518
    507519        case OPTION_HELP:
     
    526538        case OPTION_VERSION:
    527539          /* 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
    528543          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"));
    530546          printf (_("\
    531547This program is free software; you may redistribute it under the terms of\n\
     
    589605            if (optarg == NULL)
    590606              {
    591                 as_warn (_("No file name following -t option\n"));
     607                as_warn (_("no file name following -t option"));
    592608                break;
    593609              }
     
    604620            itbl_files->name = xstrdup (optarg);
    605621            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);
    611624          }
    612625          break;
     
    767780  *pargc = new_argc;
    768781  *pargv = new_argv;
     782
     783#ifdef md_after_parse_args
     784  md_after_parse_args ();
     785#endif
    769786}
    770787
    771788static long start_time;
     789
     790int main PARAMS ((int, char **));
    772791
    773792int
     
    785804  setlocale (LC_MESSAGES, "");
    786805#endif
     806#if defined (HAVE_SETLOCALE)
     807  setlocale (LC_CTYPE, "");
     808#endif
    787809  bindtextdomain (PACKAGE, LOCALEDIR);
    788810  textdomain (PACKAGE);
    789811
    790812  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;
    798814
    799815#ifdef HOST_SPECIAL_INIT
     
    10551071  md_begin ();
    10561072
     1073#ifdef USING_CGEN
     1074  gas_cgen_begin ();
     1075#endif
    10571076#ifdef obj_begin
    10581077  obj_begin ();
Note: See TracChangeset for help on using the changeset viewer.