]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/11716 ([mips] branch out of range when building fold-const.c)
authorMatthias Klose <doko@debian.org>
Sat, 27 Mar 2004 10:35:03 +0000 (10:35 +0000)
committerMatthias Klose <doko@gcc.gnu.org>
Sat, 27 Mar 2004 10:35:03 +0000 (10:35 +0000)
2004-03-27  Matthias Klose  <doko@debian.org>

        PR target/11716
        Michael Eager <eager@mvista.com>

        * config/mips/mips.md: Limit the maximum length of a short branch to
        64K instead of 128K.

From-SVN: r80013

gcc/ChangeLog
gcc/config/mips/mips.md

index 377c78962d7d75bc42fd4c973fcc40228894c778..116b86751f7836f29d7f5fb51bbfc03e99ac290f 100644 (file)
@@ -1,3 +1,11 @@
+2004-03-27  Matthias Klose  <doko@debian.org>
+
+       PR target/11716
+       Michael Eager <eager@mvista.com>
+
+       * config/mips/mips.md: Limit the maximum length of a short branch to
+       64K instead of 128K.
+
 2004-03-26  Richard Henderson  <rth@redhat.com>
 
        PR 11527
index f90722e2eea9e88e7297f8c38aef80708158ed2c..a20e44479e3bd62c3d96d22e243f02abbf181ba4 100644 (file)
 (define_attr "length" ""
    (cond [(eq_attr "type" "branch")
           (cond [(lt (abs (minus (match_dup 1) (plus (pc) (const_int 4))))
-                     (const_int 131072))
+                     (const_int 65536))
                  (const_int 4)
                 (ne (symbol_ref "flag_pic && ! TARGET_EMBEDDED_PIC")
                     (const_int 0))
@@ -9625,7 +9625,7 @@ move\\t%0,%z4\\n\\
                  (const_int 0))
              (lt (abs (minus (match_dup 0)
                              (plus (pc) (const_int 4))))
-                 (const_int 131072)))
+                 (const_int 65536)))
         (const_int 4) (const_int 16)))])
 
 ;; We need a different insn for the mips16, because a mips16 branch