diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-05-04 01:56:40 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-05-04 01:56:40 +0000 |
commit | 9777b772c83b4996e96dc175f0b6ea0cf0d589b1 (patch) | |
tree | 99f8860d1596e10d78e8c25e21cdf7fe1ffa5d8a /gas/as.h | |
parent | 774e5d7f648d0b953c0d1ef415c6aaf885f5dea9 (diff) | |
download | gdb-9777b772c83b4996e96dc175f0b6ea0cf0d589b1.zip gdb-9777b772c83b4996e96dc175f0b6ea0cf0d589b1.tar.gz gdb-9777b772c83b4996e96dc175f0b6ea0cf0d589b1.tar.bz2 |
* as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already defined, define
them to zero.
* config/tc-*.h, config/te-*.h: If defining them, define them to be 1 instead
of empty.
* expr.c (integer_constant, operand): Test them at run time instead of compile
time.
* read.c (read_a_source_file): Ditto.
* symbols.c (colon): Ditto.
(dollar_*, define_dollar_label, fb_*): Define unconditionally.
* symbols.h (dollar_*, define_dollar_label, fb_*): Declare unconditionally.
Diffstat (limited to 'gas/as.h')
-rw-r--r-- | gas/as.h | 35 |
1 files changed, 20 insertions, 15 deletions
@@ -105,6 +105,7 @@ extern char *strdup (/* const char * */); #define __PRETTY_FUNCTION__ ((char*)0) #endif #if 0 + /* Handle lossage with assert.h. */ #ifndef BROKEN_ASSERT #include <assert.h> @@ -115,8 +116,13 @@ extern char *strdup (/* const char * */); #define assert(p) ((p), 0) #endif #endif /* BROKEN_ASSERT */ + #else + #define assert(P) ((P) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0)) +#undef abort +#define abort() as_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) + #endif @@ -151,6 +157,11 @@ extern int errno; #define unlink remove #endif +/* Hack to make "gcc -Wall" not complain about obstack macros. */ +#if !defined (memcpy) && !defined (bcopy) +#define bcopy(src,dest,size) memcpy(dest,src,size) +#endif + #ifdef BFD_ASSEMBLER /* This one doesn't get declared, but we're using it anyways. This should be fixed -- either it's part of the external interface or @@ -309,7 +320,7 @@ COMMON segT now_seg; #ifdef BFD_ASSEMBLER #define segment_name(SEG) bfd_get_section_name (stdoutput, SEG) #else -extern char *const seg_name[]; +extern char const *const seg_name[]; #define segment_name(SEG) seg_name[(int) (SEG)] #endif @@ -498,7 +509,7 @@ extern int listing; struct _pseudo_type { /* assembler mnemonic, lower case, no '.' */ - char *poc_name; + const char *poc_name; /* Do the work */ void (*poc_handler) PARAMS ((int)); /* Value to pass to handler */ @@ -546,6 +557,7 @@ PRINTF_LIKE (as_warn); PRINTF_WHERE_LIKE (as_bad_where); PRINTF_WHERE_LIKE (as_warn_where); void as_assert PARAMS ((const char *, int, const char *)); +void as_abort PARAMS ((const char *, int, const char *)); void fprint_value PARAMS ((FILE *file, addressT value)); void sprint_value PARAMS ((char *buf, addressT value)); @@ -593,6 +605,7 @@ segT subseg_get PARAMS ((const char *, int)); struct expressionS; struct fix; struct symbol; +struct relax_type; #ifdef BFD_ASSEMBLER /* literal.c */ @@ -616,21 +629,13 @@ valueT add_to_literal_pool PARAMS ((struct symbol *, valueT, segT, int)); #include "listing.h" -#ifdef BFD_ASSEMBLER -/* Someday perhaps this will be selectable at run-time. */ -#if defined (OBJ_AOUT) || defined (OBJ_BOUT) -#define OUTPUT_FLAVOR bfd_target_aout_flavour -#endif -#ifdef OBJ_COFF -#define OUTPUT_FLAVOR bfd_target_coff_flavour +#ifndef LOCAL_LABELS_DOLLAR +#define LOCAL_LABELS_DOLLAR 0 #endif -#ifdef OBJ_ECOFF -#define OUTPUT_FLAVOR bfd_target_ecoff_flavour -#endif -#ifdef OBJ_ELF -#define OUTPUT_FLAVOR bfd_target_elf_flavour + +#ifndef LOCAL_LABELS_FB +#define LOCAL_LABELS_FB 0 #endif -#endif /* BFD_ASSEMBLER */ #endif /* GAS */ |