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-i960.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-i960.c')
-rw-r--r-- | gas/config/tc-i960.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/gas/config/tc-i960.c b/gas/config/tc-i960.c index 279c214..568b8ab 100644 --- a/gas/config/tc-i960.c +++ b/gas/config/tc-i960.c @@ -2806,21 +2806,13 @@ md_pcrel_from (fixP) return fixP->fx_where + fixP->fx_frag->fr_address; } -#ifdef BFD_ASSEMBLER -int -md_apply_fix (fixP, valp) - fixS *fixP; - valueT *valp; -#else void -md_apply_fix (fixP, val) +md_apply_fix3 (fixP, valP, seg) fixS *fixP; - long val; -#endif + valueT * valP; + segT seg ATTRIBUTE_UNUSED; { -#ifdef BFD_ASSEMBLER - long val = *valp; -#endif + long val = * (long *) valP; char *place = fixP->fx_where + fixP->fx_frag->fr_literal; if (!fixP->fx_bit_fixP) @@ -2839,9 +2831,8 @@ md_apply_fix (fixP, val) else md_number_to_field (place, val, fixP->fx_bit_fixP); -#ifdef BFD_ASSEMBLER - return 0; -#endif + if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0) + fixP->fx_done = 1; } #if defined(OBJ_AOUT) | defined(OBJ_BOUT) |