Ignore:
Timestamp:
Aug 16, 2003, 11:33:53 PM (22 years ago)
Author:
bird
Message:

Joined the port of 2.11.2 with 2.14.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/gas/as.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r617 r618  
    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.  */
     
    217225#ifdef BFD_ASSEMBLER
    218226  fprintf (stderr, _("GNU assembler version %s (%s) using BFD version %s"),
    219            VERSION, TARGET_ALIAS, BFD_VERSION);
     227           VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
    220228#else
    221229  fprintf (stderr, _("GNU assembler version %s (%s)"), VERSION, TARGET_ALIAS);
     
    359367
    360368  char *shortopts;
    361   extern CONST char *md_shortopts;
     369  extern const char *md_shortopts;
    362370  static const char std_shortopts[] = {
    363371    '-', 'J',
     
    383391#define OPTION_HELP (OPTION_STD_BASE)
    384392    {"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'},
    385397    {"keep-locals", no_argument, NULL, 'L'},
    386398    {"mri", no_argument, NULL, 'M'},
     
    509521
    510522        case OPTION_TARGET_HELP:
    511           md_show_usage (stdout);
    512           exit (EXIT_SUCCESS);
     523          md_show_usage (stdout);
     524          exit (EXIT_SUCCESS);
    513525
    514526        case OPTION_HELP:
     
    533545        case OPTION_VERSION:
    534546          /* 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
    535550          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"));
    537553          printf (_("\
    538554This program is free software; you may redistribute it under the terms of\n\
     
    596612            if (optarg == NULL)
    597613              {
    598                 as_warn (_("No file name following -t option\n"));
     614                as_warn (_("no file name following -t option"));
    599615                break;
    600616              }
     
    611627            itbl_files->name = xstrdup (optarg);
    612628            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);
    618631          }
    619632          break;
     
    774787  *pargc = new_argc;
    775788  *pargv = new_argv;
     789
     790#ifdef md_after_parse_args
     791  md_after_parse_args ();
     792#endif
    776793}
    777794
    778795static long start_time;
     796
     797int main PARAMS ((int, char **));
    779798
    780799int
     
    799818  setlocale (LC_MESSAGES, "");
    800819#endif
     820#if defined (HAVE_SETLOCALE)
     821  setlocale (LC_CTYPE, "");
     822#endif
    801823  bindtextdomain (PACKAGE, LOCALEDIR);
    802824  textdomain (PACKAGE);
    803825
    804826  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;
    812828
    813829#ifdef HOST_SPECIAL_INIT
     
    11191135  md_begin ();
    11201136
     1137#ifdef USING_CGEN
     1138  gas_cgen_begin ();
     1139#endif
    11211140#ifdef obj_begin
    11221141  obj_begin ();
Note: See TracChangeset for help on using the changeset viewer.