From: Ian Lance Taylor Date: Sun, 2 Apr 2000 06:27:51 +0000 (+0000) Subject: * app.c: Add ATTRIBUTE_UNUSED as needed. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=921615346f890baafed8571a9b526f9a71fd497a;hp=9aaaa29133a5e3492b7197b3d608695d91843fc6;p=deliverable%2Fbinutils-gdb.git * app.c: Add ATTRIBUTE_UNUSED as needed. * config/tc-ppc.c: Likewise. (ppc_size): Make unsigned long. (ppc_insert_operand): Add casts to avoid warnings. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 0b5f0f7e78..2f72c30b5e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2000-04-01 Ian Lance Taylor + + * app.c: Add ATTRIBUTE_UNUSED as needed. + * config/tc-ppc.c: Likewise. + (ppc_size): Make unsigned long. + (ppc_insert_operand): Add casts to avoid warnings. + 2000-03-31 Nick Clifton * config/tc-d10v.h (md_flush_pending_output): Define. diff --git a/gas/app.c b/gas/app.c index b7916054f8..2613e7440b 100644 --- a/gas/app.c +++ b/gas/app.c @@ -92,7 +92,7 @@ static int process_escape PARAMS ((int)); void do_scrub_begin (m68k_mri) - int m68k_mri; + int m68k_mri ATTRIBUTE_UNUSED; { const char *p; int c; diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 25844a5fae..365a535a28 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -589,7 +589,7 @@ static int ppc_cpu = 0; /* The size of the processor we are assembling for. This is either PPC_OPCODE_32 or PPC_OPCODE_64. */ -static int ppc_size = PPC_OPCODE_32; +static unsigned long ppc_size = PPC_OPCODE_32; /* Opcode hash table. */ static struct hash_control *ppc_hash; @@ -1077,8 +1077,8 @@ ppc_insert_operand (insn, operand, val, file, line) valid, but, to permit this code to assemble on a 64 bit host, we sign extend the 32 bit value. */ if (val > 0 - && (val & 0x80000000) != 0 - && (val & 0xffffffff) == val) + && (val & (offsetT) 0x80000000) != 0 + && (val & (offsetT) 0xffffffff) == val) { val -= 0x80000000; val -= 0x80000000; @@ -1312,7 +1312,7 @@ ppc_elf_rdata (xxx) /* Pseudo op to make file scope bss items */ static void ppc_elf_lcomm(xxx) - int xxx; + int xxx ATTRIBUTE_UNUSED; { register char *name; register char c; @@ -2174,7 +2174,7 @@ ppc_section_flags (flags, attr, type) static void ppc_byte (ignore) - int ignore; + int ignore ATTRIBUTE_UNUSED; { if (*input_line_pointer != '\"') { @@ -3192,7 +3192,7 @@ ppc_vbyte (dummy) static void ppc_tc (ignore) - int ignore; + int ignore ATTRIBUTE_UNUSED; { #ifdef OBJ_XCOFF @@ -4441,8 +4441,8 @@ md_section_align (seg, addr) int md_estimate_size_before_relax (fragp, seg) - fragS *fragp; - asection *seg; + fragS *fragp ATTRIBUTE_UNUSED; + asection *seg ATTRIBUTE_UNUSED; { abort (); return 0; @@ -4452,9 +4452,9 @@ md_estimate_size_before_relax (fragp, seg) void md_convert_frag (abfd, sec, fragp) - bfd *abfd; - asection *sec; - fragS *fragp; + bfd *abfd ATTRIBUTE_UNUSED; + asection *sec ATTRIBUTE_UNUSED; + fragS *fragp ATTRIBUTE_UNUSED; { abort (); } @@ -4464,7 +4464,7 @@ md_convert_frag (abfd, sec, fragp) /*ARGSUSED*/ symbolS * md_undefined_symbol (name) - char *name; + char *name ATTRIBUTE_UNUSED; { return 0; } @@ -4477,7 +4477,7 @@ md_undefined_symbol (name) long md_pcrel_from_section (fixp, sec) fixS *fixp; - segT sec; + segT sec ATTRIBUTE_UNUSED; { return fixp->fx_frag->fr_address + fixp->fx_where; } @@ -5003,7 +5003,7 @@ md_apply_fix3 (fixp, valuep, seg) arelent * tc_gen_reloc (seg, fixp) - asection *seg; + asection *seg ATTRIBUTE_UNUSED; fixS *fixp; { arelent *reloc;