Fix i960-elf abort in cvt_frag_to_fill while compiling libc/stdio/vfprintf.c.
authorJim Wilson <wilson@tuliptree.org>
Thu, 9 May 2002 01:43:11 +0000 (01:43 +0000)
committerJim Wilson <wilson@tuliptree.org>
Thu, 9 May 2002 01:43:11 +0000 (01:43 +0000)
* config/tc-i960.c (md_estimate_size_before_relax): Return size of
current variable part of frag.

gas/ChangeLog
gas/config/tc-i960.c

index c0a3293d4102d5079e30ba8935931d966784114a..b8c14237f91e5d7c22ffe393ab2bce3d6c8622e5 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-08  Jim Wilson  <wilson@redhat.com>
+
+       * config/tc-i960.c (md_estimate_size_before_relax): Return size of
+       current variable part of frag.
+
 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/tc-mmix.c: Fix formatting.
index 568b8ab56bb2e7a35ad607991a8ab413a12fa837..e16775ed7f52fe232e8c5c48a60a38e0b027ea9d 100644 (file)
@@ -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)