aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-12 22:29:00 +0000
committerAlan Modra <amodra@gmail.com>2002-12-12 22:29:00 +0000
commit650f02e951a63d08980c2464fa8f79225c217ecd (patch)
treefcefb0b11c5aa5c246b7aba439594fb47bc6ba4b /gas
parentd444b726082fa3c05173688313ebbe6dc5ee0858 (diff)
downloadgdb-650f02e951a63d08980c2464fa8f79225c217ecd.zip
gdb-650f02e951a63d08980c2464fa8f79225c217ecd.tar.gz
gdb-650f02e951a63d08980c2464fa8f79225c217ecd.tar.bz2
* config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
(i370_rmode <unused>): Likewise. (i370_csect <unused>): Likewise. (i370_dc <unused>): Likewise. (i370_ds <unused>): Likewise. (i370_elf_lcomm <unused>): Likewise. (i370_ltorg <ignore>): Likewise. (i370_using <ignore>): Likewise. (i370_drop <ignore>): Likewise. (i370_byte <ignore>): Likewise. (i370_tc <ignore>): Likewise. (md_estimate_size_before_relax <fragp, seg>): Likewise. (md_convert_frag <all args>): Likewise. (md_undefined_symbol <name>): Likewise. (md_pcrel_from_section <sec>): Likewise. (tc_gen_reloc <seg>): Likewise. (i370_section_letter): #if 0 unused functions. (i370_section_word, i370_section_type, i370_section_flags): Likewise. (symbol_locate): Prototype.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog19
-rw-r--r--gas/config/tc-i370.c45
2 files changed, 43 insertions, 21 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0ec4721..d681a18 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,24 @@
2002-12-13 Alan Modra <amodra@bigpond.net.au>
+ * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
+ (i370_rmode <unused>): Likewise.
+ (i370_csect <unused>): Likewise.
+ (i370_dc <unused>): Likewise.
+ (i370_ds <unused>): Likewise.
+ (i370_elf_lcomm <unused>): Likewise.
+ (i370_ltorg <ignore>): Likewise.
+ (i370_using <ignore>): Likewise.
+ (i370_drop <ignore>): Likewise.
+ (i370_byte <ignore>): Likewise.
+ (i370_tc <ignore>): Likewise.
+ (md_estimate_size_before_relax <fragp, seg>): Likewise.
+ (md_convert_frag <all args>): Likewise.
+ (md_undefined_symbol <name>): Likewise.
+ (md_pcrel_from_section <sec>): Likewise.
+ (tc_gen_reloc <seg>): Likewise.
+ (i370_section_letter): #if 0 unused functions.
+ (i370_section_word, i370_section_type, i370_section_flags): Likewise.
+ (symbol_locate): Prototype.
* config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
(md_number_to_disp, md_number_to_field): Remove.
(md_apply_fix3): Correct format string and cast "fup".
diff --git a/gas/config/tc-i370.c b/gas/config/tc-i370.c
index 31d2f7a..d59a95b 100644
--- a/gas/config/tc-i370.c
+++ b/gas/config/tc-i370.c
@@ -920,7 +920,7 @@ unsigned char ebcasc[256] =
/* ebcdic translation tables needed for 3270 support */
static void
i370_ebcdic (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
char *p, *end;
char delim = 0;
@@ -955,7 +955,7 @@ i370_ebcdic (unused)
/* stub out a couple of routines */
static void
i370_rmode (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
as_tsktsk ("rmode ignored");
}
@@ -976,7 +976,7 @@ i370_dsect (sect)
static void
i370_csect (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
as_tsktsk ("csect not supported");
}
@@ -989,8 +989,8 @@ i370_csect (unused)
* DC F'1' # in sysv4, .long 1
*/
static void
-i370_dc(unused)
- int unused;
+i370_dc (unused)
+ int unused ATTRIBUTE_UNUSED;
{
char * p, tmp[50];
int nbytes=0;
@@ -1069,7 +1069,7 @@ i370_dc(unused)
/* provide minimal support for DS Define Storage */
static void
i370_ds (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
/* DS 0H or DS 0F or DS 0D */
if ('0' == *input_line_pointer)
@@ -1118,7 +1118,7 @@ i370_elf_rdata (sect)
/* Pseudo op to make file scope bss items */
static void
i370_elf_lcomm (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
register char *name;
register char c;
@@ -1416,6 +1416,9 @@ add_to_lit_pool (expressionS *exx, char *name, int sz)
/* Can't use symbol_new here, so have to create a symbol and then at
a later date assign it a value. Thats what these functions do */
+static void symbol_locate
+ PARAMS ((symbolS *, const char *, segT, valueT, fragS *));
+
static void
symbol_locate (symbolP, name, segment, valu, frag)
symbolS *symbolP;
@@ -1706,7 +1709,7 @@ i370_addr_cons (expressionS *exp)
static void
i370_ltorg (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
int litsize;
int lit_count = 0;
@@ -1830,7 +1833,7 @@ i370_ltorg (ignore)
*/
static void
i370_using (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
expressionS ex, baseaddr;
int iregno;
@@ -1876,7 +1879,7 @@ i370_using (ignore)
static void
i370_drop (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
expressionS ex;
int iregno;
@@ -2451,7 +2454,7 @@ i370_macro (str, macro)
md_assemble (complete);
}
-#ifdef OBJ_ELF
+#if 0
/* For ELF, add support for SHF_EXCLUDE and SHT_ORDERED */
int
@@ -2512,7 +2515,7 @@ i370_section_flags (flags, attr, type)
static void
i370_byte (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (*input_line_pointer != '\"')
{
@@ -2556,7 +2559,7 @@ i370_byte (ignore)
static void
i370_tc (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
/* Skip the TOC symbol name. */
@@ -2660,8 +2663,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;
@@ -2671,9 +2674,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 ();
}
@@ -2682,7 +2685,7 @@ md_convert_frag (abfd, sec, fragp)
symbolS *
md_undefined_symbol (name)
- char *name;
+ char *name ATTRIBUTE_UNUSED;
{
return 0;
}
@@ -2695,7 +2698,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;
}
@@ -2893,7 +2896,7 @@ md_apply_fix3 (fixP, valP, seg)
arelent *
tc_gen_reloc (seg, fixp)
- asection *seg;
+ asection *seg ATTRIBUTE_UNUSED;
fixS *fixp;
{
arelent *reloc;