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-cris.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-cris.c')
-rw-r--r-- | gas/config/tc-cris.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gas/config/tc-cris.c b/gas/config/tc-cris.c index 9b2203c..04e8d2f 100644 --- a/gas/config/tc-cris.c +++ b/gas/config/tc-cris.c @@ -2972,14 +2972,13 @@ md_show_usage (stream) /* Apply a fixS (fixup of an instruction or data that we didn't have enough info to complete immediately) to the data in a frag. */ -int +void md_apply_fix3 (fixP, valP, seg) fixS *fixP; valueT *valP; segT seg; { - long val = *valP; - + long val = * (long *) valP; char *buf = fixP->fx_where + fixP->fx_frag->fr_literal; if (fixP->fx_addsy == 0 && !fixP->fx_pcrel) @@ -2999,17 +2998,13 @@ md_apply_fix3 (fixP, valP, seg) if (S_GET_SEGMENT (fixP->fx_subsy) == absolute_section) val -= S_GET_VALUE (fixP->fx_subsy); else - { - /* We can't actually support subtracting a symbol. */ - as_bad_where (fixP->fx_file, fixP->fx_line, - _("expression too complex")); - } + /* We can't actually support subtracting a symbol. */ + as_bad_where (fixP->fx_file, fixP->fx_line, + _("expression too complex")); } cris_number_to_imm (buf, val, fixP->fx_size, fixP, seg); } - - return 1; } /* All relocations are relative to the location just after the fixup; |