]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/19393 (Assembler error: branch out of range)
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 25 Jan 2005 12:50:34 +0000 (12:50 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 25 Jan 2005 12:50:34 +0000 (12:50 +0000)
PR target/19393
Backport:
2004-03-30  Nick Clifton  <nickc@redhat.com>
* config/arm/arm.md (thumb_jump): Reduce the backward branch
range, and increase the forward branch range, to allow for
the fact that the PC will be off by 4.

From-SVN: r94219

gcc/ChangeLog
gcc/config/arm/arm.md

index aca1bd934189894264c6d3cd3c39abcc4ab0c094..18f766416c6e5cd564cff5aab4b07d8cdaa70bf7 100644 (file)
@@ -1,3 +1,12 @@
+2005-01-25  Richard Earnshaw  <rearnsha@arm.com>
+
+       PR target/19393
+       Backport:
+       2004-03-30  Nick Clifton  <nickc@redhat.com>
+       * config/arm/arm.md (thumb_jump): Reduce the backward branch
+       range, and increase the forward branch range, to allow for
+       the fact that the PC will be off by 4.
+
 2005-01-24  Richard Henderson  <rth@redhat.com>
             Aldy Hernandez  <aldyh@redhat.com>
 
index 8214b5175094d92f5f2d11107d786fc204c448eb..57926ba6b9bcf12595c682e51031a8f6189639c3 100644 (file)
            (const_string "no")))
    (set (attr "length") 
         (if_then_else
-           (and (ge (minus (match_dup 0) (pc)) (const_int -2048))
-                (le (minus (match_dup 0) (pc)) (const_int 2044)))
+           (and (ge (minus (match_dup 0) (pc)) (const_int -2044))
+                (le (minus (match_dup 0) (pc)) (const_int 2048)))
            (const_int 2)
            (const_int 4)))]
 )