]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-mips.c (md_estimate_size_before_relax): Do not modify
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 19 Mar 2002 05:44:50 +0000 (05:44 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 19 Mar 2002 05:44:50 +0000 (05:44 +0000)
the EXTENDED bit here; report the estimate according to the
current size.

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

index 5765fe8f33ccb67dfbdbc0f634c2e7753150670d..97cc604374b11751bbd85f2053bcde3c8c0529a2 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
+       the EXTENDED bit here; report the estimate according to the
+       current size.
+
 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
index b3acb5c1837d76de08fecfa988fb93a72376c0e0..399373cad07b6bfa02094dc4fcdb6734aad5716b 100644 (file)
@@ -12153,18 +12153,9 @@ md_estimate_size_before_relax (fragp, segtype)
   boolean linkonce = false;
 
   if (RELAX_MIPS16_P (fragp->fr_subtype))
-    {
-      if (mips16_extended_frag (fragp, segtype, 0))
-       {
-         fragp->fr_subtype = RELAX_MIPS16_MARK_EXTENDED (fragp->fr_subtype);
-         return 4;
-       }
-      else
-       {
-         fragp->fr_subtype = RELAX_MIPS16_CLEAR_EXTENDED (fragp->fr_subtype);
-         return 2;
-       }
-    }
+    /* We don't want to modify the EXTENDED bit here; it might get us
+       into infinite loops.  We change it only in mips_relax_frag().  */
+    return (RELAX_MIPS16_EXTENDED (fragp->fr_subtype) ? 4 : 2);
 
   if (mips_pic == NO_PIC)
     {