diff options
author | Nick Clifton <nickc@redhat.com> | 2001-11-15 21:29:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-11-15 21:29:00 +0000 |
commit | 94f592af1baedbbe3957436c713fd58c02d55ef9 (patch) | |
tree | e0e9b543686a52f86aa0ab7d287cf60541e69b49 /gas/config/tc-i860.c | |
parent | ad10f812bfdac2cc9e42875246c8fe0ae5224440 (diff) | |
download | gdb-94f592af1baedbbe3957436c713fd58c02d55ef9.zip gdb-94f592af1baedbbe3957436c713fd58c02d55ef9.tar.gz gdb-94f592af1baedbbe3957436c713fd58c02d55ef9.tar.bz2 |
Update all uses of md_apply_fix to use md_apply_fix3. Make it a void function.
Diffstat (limited to 'gas/config/tc-i860.c')
-rw-r--r-- | gas/config/tc-i860.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gas/config/tc-i860.c b/gas/config/tc-i860.c index 5f29b20..9aa4457 100644 --- a/gas/config/tc-i860.c +++ b/gas/config/tc-i860.c @@ -1228,15 +1228,15 @@ obtain_reloc_for_imm16 (fix, val) /* Attempt to simplify or eliminate a fixup. To indicate that a fixup has been eliminated, set fix->fx_done. If fix->fx_addsy is non-NULL, we will have to generate a reloc entry. */ -int -md_apply_fix3 (fix, valuep, seg) - fixS *fix; - valueT *valuep; + +void +md_apply_fix3 (fix, valP, seg) + fixS * fix; + valueT * valP; segT seg ATTRIBUTE_UNUSED; { - char *buf; - long val = (long) (*valuep); + long val = * (long *) valP unsigned long insn; valueT fup; @@ -1280,9 +1280,8 @@ md_apply_fix3 (fix, valuep, seg) } } else if (fup & OP_IMM_U16) - { - abort (); - } + abort (); + else if (fup & OP_IMM_SPLIT16) { fix->fx_r_type = obtain_reloc_for_imm16 (fix, &val); @@ -1367,9 +1366,6 @@ md_apply_fix3 (fix, valuep, seg) fix->fx_done = 1; } } - - /* Return value ignored. */ - return 0; } /* Generate a machine dependent reloc from a fixup. */ |