From: Jim Wilson Date: Thu, 9 May 2002 01:43:11 +0000 (+0000) Subject: Fix i960-elf abort in cvt_frag_to_fill while compiling libc/stdio/vfprintf.c. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=91975467765f9bbfd9315f44c437bb8a36b5ce2d;p=deliverable%2Fbinutils-gdb.git Fix i960-elf abort in cvt_frag_to_fill while compiling libc/stdio/vfprintf.c. * config/tc-i960.c (md_estimate_size_before_relax): Return size of current variable part of frag. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index c0a3293d41..b8c14237f9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-05-08 Jim Wilson + + * config/tc-i960.c (md_estimate_size_before_relax): Return size of + current variable part of frag. + 2002-05-08 Kazu Hirata * config/tc-mmix.c: Fix formatting. diff --git a/gas/config/tc-i960.c b/gas/config/tc-i960.c index 568b8ab56b..e16775ed7f 100644 --- a/gas/config/tc-i960.c +++ b/gas/config/tc-i960.c @@ -1085,7 +1085,8 @@ md_estimate_size_before_relax (fragP, segment_type) relax_cobr (fragP); return 4; } - return 0; + + return md_relax_table[fragP->fr_subtype].rlx_length; } /* md_estimate_size_before_relax() */ #if defined(OBJ_AOUT) | defined(OBJ_BOUT)