/* tc-i370.c -- Assembler for the IBM 360/370/390 instruction set.
Loosely based on the ppc files by Linas Vepstas <linas@linas.org> 1998, 99
- Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+ Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
/* ebcdic translation tables needed for 3270 support */
static void
i370_ebcdic (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
char *p, *end;
char delim = 0;
/* stub out a couple of routines */
static void
i370_rmode (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
as_tsktsk ("rmode ignored");
}
static void
i370_csect (unused)
- int unused;
+ int unused ATTRIBUTE_UNUSED;
{
as_tsktsk ("csect not supported");
}
* 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;
/* 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)
/* 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;
next_literal_pool_place++;
}
- /* ???_poolP points to the begining of the literal pool.
- * X_add_number is the offset from the begining of the
+ /* ???_poolP points to the beginning of the literal pool.
+ * X_add_number is the offset from the beginning of the
* literal pool to this expr minus the location of the most
* recent .using directive. Thus, the grand total value of the
* expression is the distance from .using to the literal.
/* 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;
}
cons_len = (hex_len+1) /2;
}
- /* I beleive this works even for =XL8'dada0000beeebaaa'
+ /* I believe this works even for =XL8'dada0000beeebaaa'
* which should parse out to X_op == O_big
* Note that floats and doubles get represented as
* 0d3.14159265358979 or 0f 2.7
static void
i370_ltorg (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
int litsize;
int lit_count = 0;
#define EMIT_ADDR_CONS_SYMBOLS
#ifdef EMIT_ADDR_CONS_SYMBOLS
/* create a bogus symbol, add it to the pool ...
- * For the most part, I think this is a useless excercise,
+ * For the most part, I think this is a useless exercise,
* except that having these symbol names in the objects
* is vaguely useful for debugging ...
*/
*/
static void
i370_using (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
expressionS ex, baseaddr;
int iregno;
*star = '.';
/* the first arg to using will usually be ".", but it can
- * be a more complex exprsssion too ... */
+ * be a more complex expression too ... */
expression (&baseaddr);
if (star)
*star = '*';
static void
i370_drop (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
expressionS ex;
int iregno;
/* Check for an address constant expression. */
/* We will put PSW-relative addresses in the text section,
- * and adress literals in the .data (or other) section. */
+ * and address literals in the .data (or other) section. */
else if (i370_addr_cons (&ex))
use_other=1;
else if (i370_addr_offset (&ex))
md_assemble (complete);
}
\f
-#ifdef OBJ_ELF
+#if 0
/* For ELF, add support for SHF_EXCLUDE and SHT_ORDERED */
int
static void
i370_byte (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (*input_line_pointer != '\"')
{
give to this location in the toc; this will be a symbol with class
TC. The rest of the arguments are 4 byte values to actually put at
this location in the TOC; often there is just one more argument, a
- relocateable symbol reference.
+ relocatable symbol reference.
When not generating XCOFF output, the arguments are the same, but
the first argument is simply ignored. */
static void
i370_tc (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
/* Skip the TOC symbol name. */
int
md_estimate_size_before_relax (fragp, seg)
- fragS *fragp;
- asection *seg;
+ fragS *fragp ATTRIBUTE_UNUSED;
+ asection *seg ATTRIBUTE_UNUSED;
{
abort ();
return 0;
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 ();
}
symbolS *
md_undefined_symbol (name)
- char *name;
+ char *name ATTRIBUTE_UNUSED;
{
return 0;
}
long
md_pcrel_from_section (fixp, sec)
fixS *fixp;
- segT sec;
+ segT sec ATTRIBUTE_UNUSED;
{
return fixp->fx_frag->fr_address + fixp->fx_where;
}
arelent *
tc_gen_reloc (seg, fixp)
- asection *seg;
+ asection *seg ATTRIBUTE_UNUSED;
fixS *fixp;
{
arelent *reloc;