/* as.h - global header file
- Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 1998
+ Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif
+#ifdef NEED_DECLARATION_ENVIRON
+extern char **environ;
+#endif
/* This is needed for VMS. */
#if ! defined (HAVE_UNLINK) && defined (HAVE_REMOVE)
#define xfree free
+#include "asintl.h"
+
#define BAD_CASE(val) \
{ \
- as_fatal("Case value %ld unexpected at line %d of file \"%s\"\n", \
+ as_fatal(_("Case value %ld unexpected at line %d of file \"%s\"\n"), \
(long) val, __LINE__, __FILE__); \
}
\f
/* True if warnings should be inhibited. */
COMMON int flag_no_warnings; /* -W */
+/* True if warnings count as errors. */
+COMMON int flag_fatal_warnings; /* --fatal-warnings */
+
/* True if we should attempt to generate output even if non-fatal errors
are detected. */
COMMON unsigned char flag_always_generate_output; /* -Z */
-/* True if instruction swapping warnings should be inhibited. */
-COMMON unsigned char flag_warn_suppress_instructionswap; /* --nowarnswap */
-
/* This is true if the assembler should output time and space usage. */
COMMON unsigned char flag_print_statistics;
extern int listing;
/* Type of debugging information we should generate. We currently
- only support stabs and ECOFF. */
+ support stabs, ECOFF, and DWARF2. */
-enum debug_info_type { DEBUG_NONE, DEBUG_STABS, DEBUG_ECOFF };
+enum debug_info_type
+ {
+ DEBUG_UNSPECIFIED,
+ DEBUG_NONE,
+ DEBUG_STABS,
+ DEBUG_ECOFF,
+ DEBUG_DWARF,
+ DEBUG_DWARF2
+ };
extern enum debug_info_type debug_type;
\f
char *input_scrub_include_file PARAMS ((char *filename, char *position));
char *input_scrub_new_file PARAMS ((char *filename));
char *input_scrub_next_buffer PARAMS ((char **bufp));
-int do_scrub_chars PARAMS ((int (*get) (char **), char *to, int tolen));
+int do_scrub_chars PARAMS ((int (*get) (char *, int), char *to, int tolen));
int gen_to_words PARAMS ((LITTLENUM_TYPE * words, int precision,
long exponent_bits));
int had_err PARAMS ((void));
#ifdef BFD_ASSEMBLER
segT subseg_get PARAMS ((const char *, int));
#endif
+int subseg_text_p PARAMS ((segT));
void start_dependencies PARAMS ((char *));
void register_dependency PARAMS ((char *));
struct expressionS;
struct fix;
-struct symbol;
+typedef struct symbol symbolS;
struct relax_type;
typedef struct frag fragS;
#ifdef BFD_ASSEMBLER
/* literal.c */
-valueT add_to_literal_pool PARAMS ((struct symbol *, valueT, segT, int));
+valueT add_to_literal_pool PARAMS ((symbolS *, valueT, segT, int));
#endif
int check_eh_frame PARAMS ((struct expressionS *, unsigned int *));
/* this one starts the chain of target dependant headers */
#include "targ-env.h"
-#ifndef TEXT_SECTION_NAME
-#define TEXT_SECTION_NAME ".text"
-#define DATA_SECTION_NAME ".data"
-#define BSS_SECTION_NAME ".bss"
-#endif
-#include "struc-symbol.h"
#include "write.h"
#include "frags.h"
#include "hash.h"
#define LOCAL_LABELS_FB 0
#endif
+#ifndef TEXT_SECTION_NAME
+#define TEXT_SECTION_NAME ".text"
+#define DATA_SECTION_NAME ".data"
+#define BSS_SECTION_NAME ".bss"
+#endif
+
#endif /* GAS */
/* end of as.h */