aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-12 21:37:36 +0000
committerAlan Modra <amodra@gmail.com>2002-12-12 21:37:36 +0000
commita798260029f9c36a51ffe2abe41a6dd77914e266 (patch)
tree333d9ea96358988819010857851792663fcb3daa /gas
parent167795c45257ffcd940985513321496028f5fc00 (diff)
downloadgdb-a798260029f9c36a51ffe2abe41a6dd77914e266.zip
gdb-a798260029f9c36a51ffe2abe41a6dd77914e266.tar.gz
gdb-a798260029f9c36a51ffe2abe41a6dd77914e266.tar.bz2
* config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
(md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED. (tc_gen_reloc <section>): Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-sparc.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a026f92..1ec063c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
2002-12-13 Alan Modra <amodra@bigpond.net.au>
+ * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
+ (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
+ (tc_gen_reloc <section>): 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 1a24c2b..c9ea5e2 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];