From 29c4c6b539b90397d6057b3e22e35b6337163a9c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 27 Oct 1999 18:13:28 +0000 Subject: [PATCH] fix compile time warnings --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 2 +- gas/config/tc-arm.h | 11 +++++++---- ld/ChangeLog | 5 +++++ ld/emultempl/armelf.em | 3 +++ 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e706ef03e8e..746ca5f7f79 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +1999-10-27 Scott Bambrough + + * config/tc-arm.c (reloc_map[]): Fix compiler warning. + * config/tc-arm.h: Fix compile time warnings. + Mon Oct 18 18:11:10 MDT 1999 Diego Novillo * tc_d10v.c (find_opcode): Allow ATSIGN to match expressions of the diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 31b06e3d4b2..49c970566f5 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -6984,7 +6984,7 @@ arm_parse_reloc () /* Added support for parsing "var(PLT)" branch instructions */ /* generated by GCC for PLT relocs */ MAP ("(plt)", BFD_RELOC_ARM_PLT32), - NULL, 0, BFD_RELOC_UNUSED + { NULL, 0, BFD_RELOC_UNUSED } #undef MAP }; diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h index d27d61dd8f4..c5ab8870512 100644 --- a/gas/config/tc-arm.h +++ b/gas/config/tc-arm.h @@ -113,8 +113,13 @@ deliberately not been updated to mark assembler created stabs symbols as Thumb. */ +#define TC_FIX_TYPE PTR +#define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = NULL) + #ifdef OBJ_ELF +#include "write.h" /* For definition of fixS */ #define obj_fix_adjustable(fixP) arm_fix_adjustable (fixP) +boolean arm_fix_adjustable PARAMS ((fixS *)); #else #define obj_fix_adjustable(fixP) 0 #endif @@ -139,9 +144,6 @@ #define THUMB_SET_FUNC(s,t) ((t) ? ARM_SET_FLAG (s, THUMB_FLAG_FUNC) : ARM_RESET_FLAG (s, THUMB_FLAG_FUNC)) -#define TC_FIX_TYPE PTR -#define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = NULL) - #define TC_START_LABEL(C,STR) \ (c == ':' || (c == '/' && arm_data_in_code ())) int arm_data_in_code PARAMS ((void)); @@ -154,7 +156,8 @@ char * arm_canonicalize_symbol_name PARAMS ((char *)); extern void arm_adjust_symtab PARAMS ((void)); #ifdef OBJ_ELF -#define obj_frob_symbol(sym, punt) armelf_frob_symbol (sym, punt) +#define obj_frob_symbol(sym, punt) armelf_frob_symbol ((sym), & (punt)) +void armelf_frob_symbol PARAMS ((symbolS *, int *)); #endif #define tc_aout_pre_write_hook(x) {;} /* not used */ diff --git a/ld/ChangeLog b/ld/ChangeLog index 564bb2b3d1f..70084868063 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +1999-10-27 Scott Bambrough + + * emultempl/armelf.em: Include ctype.h to prevent compile time + warnings. + 1999-10-26 Nick Clifton * emultempl/armcoff.em (gld{}_finish): Remove extraneous diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 84fe0884d58..c3a1b3ca324 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -28,6 +28,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "bfd.h" #include "sysdep.h" + +#include + #include "bfdlink.h" #include "getopt.h" -- 2.30.2