From: Alan Modra Date: Thu, 12 Dec 2002 21:37:36 +0000 (+0000) Subject: * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a798260029f9c36a51ffe2abe41a6dd77914e266;p=binutils-gdb.git * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF. (md_apply_fix3 ): Add ATTRIBUTE_UNUSED. (tc_gen_reloc
): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a026f92c4fd..1ec063c1f8c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2002-12-13 Alan Modra + * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF. + (md_apply_fix3 ): Add ATTRIBUTE_UNUSED. + (tc_gen_reloc
): Likewise. * config/tc-tic30.c: #include stdarg.h or varargs.h. (debug): Rewrite using VA_* macros. (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args. diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 1a24c2b1272..c9ea5e2d0eb 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -138,7 +138,9 @@ static void s_common PARAMS ((int)); static void s_empty PARAMS ((int)); static void s_uacons PARAMS ((int)); static void s_ncons PARAMS ((int)); +#ifdef OBJ_ELF static void s_register PARAMS ((int)); +#endif const pseudo_typeS md_pseudo_table[] = { @@ -2891,7 +2893,7 @@ void md_apply_fix3 (fixP, valP, segment) fixS *fixP; valueT *valP; - segT segment; + segT segment ATTRIBUTE_UNUSED; { char *buf = fixP->fx_where + fixP->fx_frag->fr_literal; offsetT val = * (offsetT *) valP; @@ -3246,7 +3248,7 @@ md_apply_fix3 (fixP, valP, segment) arelent ** tc_gen_reloc (section, fixp) - asection *section; + asection *section ATTRIBUTE_UNUSED; fixS *fixp; { static arelent *relocs[3];