From: Nick Clifton Date: Mon, 21 Mar 2005 15:35:34 +0000 (+0000) Subject: (sh_elf_final_processing): Fix compile time warning by providing a prototype X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a66a0171c77ebc0411841a6e654bbf8c8073d03;p=binutils-gdb.git (sh_elf_final_processing): Fix compile time warning by providing a prototype for sh_symbian_find_elf_flags. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index eca1a0e3b47..ff3e3b97cda 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2005-03-21 Nick Clifton + * config/tc-sh.c (sh_elf_final_processing): Fix compile time + warning by providing a prototype for sh_symbian_find_elf_flags. + * cgen.c (gas_cgen_parse_operand): Fix typo introduced by previous delta. diff --git a/gas/Makefile.am b/gas/Makefile.am index 10b2a5ab5fe..1a4c30cfc3b 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -641,7 +641,10 @@ m68k-parse.c: $(srcdir)/config/m68k-parse.y if [ $$f = "m68k-parse.y" ]; then \ rm -f m68k-parse.y; \ else true; fi +# Disable -Werror, if it has been enabled, since old versions of bison/ +# yacc will produce working code which contain compile time warnings. m68k-parse.o: m68k-parse.c $(srcdir)/config/m68k-parse.h + $(COMPILE) -c $< -Wno-error # Don't let the .y.h rule clobber m68k-parse.h. m68k-parse.h: ; @true @@ -652,7 +655,10 @@ $(srcdir)/config/m68k-parse.h: ; @true itbl-lex.c: $(srcdir)/itbl-lex.l itbl-lex.o: itbl-lex.c itbl-parse.h $(srcdir)/itbl-lex.h +# Disable -Werror, if it has been enabled, since old versions of bison/ +# yacc will produce working code which contain compile time warnings. itbl-parse.o: itbl-parse.c itbl-parse.h $(srcdir)/itbl-ops.h $(srcdir)/itbl-lex.h + $(COMPILE) -c $< -Wno-error itbl-ops.o: $(srcdir)/itbl-ops.c $(srcdir)/itbl-ops.h itbl-parse.h diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 74f02aad5e9..e06237f47d1 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -3777,7 +3777,11 @@ sh_elf_final_processing (void) else #elif defined TARGET_SYMBIAN if (1) - val = sh_symbian_find_elf_flags (valid_arch); + { + extern int sh_symbian_find_elf_flags (unsigned int); + + val = sh_symbian_find_elf_flags (valid_arch); + } else #endif /* HAVE_SH64 */ val = sh_find_elf_flags (valid_arch);