From a798260029f9c36a51ffe2abe41a6dd77914e266 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 12 Dec 2002 21:37:36 +0000 Subject: [PATCH] * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF. (md_apply_fix3 ): Add ATTRIBUTE_UNUSED. (tc_gen_reloc
): Likewise. --- gas/ChangeLog | 3 +++ gas/config/tc-sparc.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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]; -- 2.30.2