From b4f261e094f4807a2da1dc62c7945e5898ed4680 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Fri, 8 Jul 2005 05:57:21 +0000 Subject: [PATCH] * frags.h: Remove ANSI_PROTOTYPES conditional code. * config/obj-elf.h: Likewise. * config/tc-h8300.h: Likewise. * config/tc-h8500.h: Likewise. * config/tc-i370.h: Likewise. * config/tc-i386.h: Likewise. * config/tc-m68hc11.h: Likewise. * config/tc-m68k.h: Likewise. * config/tc-ppc.h: Likewise. * config/tc-s390.h: Likewise. * config/tc-sh.h: Likewise. * config/tc-sparc.h: Likewise. * config/tc-tic30.c: Likewise. * config/tc-w65.h: Likewise. * config/tc-xtensa.h: Likewise. --- gas/ChangeLog | 18 ++++++++++++++++++ gas/config/obj-elf.h | 2 -- gas/config/tc-h8300.h | 2 -- gas/config/tc-h8500.h | 2 -- gas/config/tc-i370.h | 2 -- gas/config/tc-i386.h | 2 -- gas/config/tc-m68hc11.h | 2 -- gas/config/tc-m68k.h | 2 -- gas/config/tc-ppc.h | 2 -- gas/config/tc-s390.h | 2 -- gas/config/tc-sh.h | 2 -- gas/config/tc-sparc.h | 2 -- gas/config/tc-tic30.c | 4 ---- gas/config/tc-w65.h | 2 -- gas/config/tc-xtensa.h | 2 -- gas/frags.h | 2 -- 16 files changed, 18 insertions(+), 32 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index c1a2990b5b7..16f5072028f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,21 @@ +2005-07-08 Ben Elliston + + * frags.h: Remove ANSI_PROTOTYPES conditional code. + * config/obj-elf.h: Likewise. + * config/tc-h8300.h: Likewise. + * config/tc-h8500.h: Likewise. + * config/tc-i370.h: Likewise. + * config/tc-i386.h: Likewise. + * config/tc-m68hc11.h: Likewise. + * config/tc-m68k.h: Likewise. + * config/tc-ppc.h: Likewise. + * config/tc-s390.h: Likewise. + * config/tc-sh.h: Likewise. + * config/tc-sparc.h: Likewise. + * config/tc-tic30.c: Likewise. + * config/tc-w65.h: Likewise. + * config/tc-xtensa.h: Likewise. + 2005-07-08 Hans-Peter Nilsson PR gas/1049 diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h index f7a5b5eb163..01c15987d2f 100644 --- a/gas/config/obj-elf.h +++ b/gas/config/obj-elf.h @@ -241,9 +241,7 @@ extern void elf_pop_insert (void); #ifndef OBJ_MAYBE_ELF #define obj_ecoff_set_ext elf_ecoff_set_ext -#ifdef ANSI_PROTOTYPES struct ecoff_extr; -#endif extern void elf_ecoff_set_ext (symbolS *, struct ecoff_extr *); #endif diff --git a/gas/config/tc-h8300.h b/gas/config/tc-h8300.h index 2f0652bbe0f..44938386412 100644 --- a/gas/config/tc-h8300.h +++ b/gas/config/tc-h8300.h @@ -37,10 +37,8 @@ #define FAKE_LABEL_NAME ".L0\001" #endif -#if ANSI_PROTOTYPES struct fix; struct internal_reloc; -#endif #define WORKING_DOT_WORD diff --git a/gas/config/tc-h8500.h b/gas/config/tc-h8500.h index 1388d134679..024f2122d09 100644 --- a/gas/config/tc-h8500.h +++ b/gas/config/tc-h8500.h @@ -23,9 +23,7 @@ #define TARGET_BYTES_BIG_ENDIAN 1 -#if ANSI_PROTOTYPES struct internal_reloc; -#endif #define WORKING_DOT_WORD diff --git a/gas/config/tc-i370.h b/gas/config/tc-i370.h index e44328d940a..8822996ae86 100644 --- a/gas/config/tc-i370.h +++ b/gas/config/tc-i370.h @@ -22,9 +22,7 @@ #define TC_I370 -#ifdef ANSI_PROTOTYPES struct fix; -#endif /* Set the endianness we are using. Default to big endian. */ #ifndef TARGET_BYTES_BIG_ENDIAN diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index e545397d578..b10e8874bda 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -27,9 +27,7 @@ #error So, do you know what you are doing? #endif -#ifdef ANSI_PROTOTYPES struct fix; -#endif #define TARGET_BYTES_BIG_ENDIAN 0 diff --git a/gas/config/tc-m68hc11.h b/gas/config/tc-m68hc11.h index 756071666e7..954e486ddb7 100644 --- a/gas/config/tc-m68hc11.h +++ b/gas/config/tc-m68hc11.h @@ -22,9 +22,7 @@ #define TC_M68HC11 #define TC_M68HC12 -#ifdef ANSI_PROTOTYPES struct fix; -#endif /* Define TC_M68K so that we can use the MRI mode. */ #define TC_M68K diff --git a/gas/config/tc-m68k.h b/gas/config/tc-m68k.h index 1ec13597164..f5de3acf5d4 100644 --- a/gas/config/tc-m68k.h +++ b/gas/config/tc-m68k.h @@ -22,9 +22,7 @@ #define TC_M68K 1 -#ifdef ANSI_PROTOTYPES struct fix; -#endif #define TARGET_BYTES_BIG_ENDIAN 1 diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h index a005b0d31df..0e85bba7e0d 100644 --- a/gas/config/tc-ppc.h +++ b/gas/config/tc-ppc.h @@ -22,9 +22,7 @@ #define TC_PPC -#ifdef ANSI_PROTOTYPES struct fix; -#endif /* Set the endianness we are using. Default to big endian. */ #ifndef TARGET_BYTES_BIG_ENDIAN diff --git a/gas/config/tc-s390.h b/gas/config/tc-s390.h index b421fa6c4c5..8a22e5354ae 100644 --- a/gas/config/tc-s390.h +++ b/gas/config/tc-s390.h @@ -21,9 +21,7 @@ #define TC_S390 -#ifdef ANSI_PROTOTYPES struct fix; -#endif #ifndef BFD_ASSEMBLER #error S390 support requires BFD_ASSEMBLER diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h index 61150aeca07..4143aef631f 100644 --- a/gas/config/tc-sh.h +++ b/gas/config/tc-sh.h @@ -23,7 +23,6 @@ #define TARGET_ARCH bfd_arch_sh -#if ANSI_PROTOTYPES /* The type fixS is defined (to struct fix) in write.h, but write.h uses definitions from this file. To avoid problems with including write.h after the "right" definitions, don't; just forward-declare struct fix @@ -31,7 +30,6 @@ struct fix; struct segment_info_struct; struct internal_reloc; -#endif /* Whether -relax was used. */ extern int sh_relax; diff --git a/gas/config/tc-sparc.h b/gas/config/tc-sparc.h index 339a9c25ecc..14da16ad627 100644 --- a/gas/config/tc-sparc.h +++ b/gas/config/tc-sparc.h @@ -22,9 +22,7 @@ #ifndef TC_SPARC #define TC_SPARC 1 -#ifdef ANSI_PROTOTYPES struct frag; -#endif /* This is used to set the default value for `target_big_endian'. */ #define TARGET_BYTES_BIG_ENDIAN 1 diff --git a/gas/config/tc-tic30.c b/gas/config/tc-tic30.c index b77a7b0fbd7..dfdb4b0f646 100644 --- a/gas/config/tc-tic30.c +++ b/gas/config/tc-tic30.c @@ -28,11 +28,7 @@ #include "as.h" #include "safe-ctype.h" #include "opcode/tic30.h" -#ifdef ANSI_PROTOTYPES #include -#else -#include -#endif /* Put here all non-digit non-letter characters that may occur in an operand. */ diff --git a/gas/config/tc-w65.h b/gas/config/tc-w65.h index 922dd11f076..19bb15b029b 100644 --- a/gas/config/tc-w65.h +++ b/gas/config/tc-w65.h @@ -23,10 +23,8 @@ #define TARGET_BYTES_BIG_ENDIAN 0 -#if ANSI_PROTOTYPES struct internal_reloc; struct fix; -#endif #define WORKING_DOT_WORD diff --git a/gas/config/tc-xtensa.h b/gas/config/tc-xtensa.h index 56c38f9984e..fd727122241 100644 --- a/gas/config/tc-xtensa.h +++ b/gas/config/tc-xtensa.h @@ -21,9 +21,7 @@ #ifndef TC_XTENSA #define TC_XTENSA 1 -#ifdef ANSI_PROTOTYPES struct fix; -#endif #ifndef BFD_ASSEMBLER #error Xtensa support requires BFD_ASSEMBLER diff --git a/gas/frags.h b/gas/frags.h index 578732c8c3e..e6c61709191 100644 --- a/gas/frags.h +++ b/gas/frags.h @@ -22,9 +22,7 @@ #ifndef FRAGS_H #define FRAGS_H -#ifdef ANSI_PROTOTYPES struct obstack; -#endif /* A code fragment (frag) is some known number of chars, followed by some unknown number of chars. Typically the unknown number of chars is an -- 2.30.2