From 94f592af1baedbbe3957436c713fd58c02d55ef9 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 15 Nov 2001 21:29:00 +0000 Subject: Update all uses of md_apply_fix to use md_apply_fix3. Make it a void function. --- gas/config/tc-cris.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'gas/config/tc-cris.c') 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; -- cgit v1.1