From a61cdfa0ba4a56ee9b6aefc46260f42e9ea062e3 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Sat, 27 Mar 2004 10:35:03 +0000 Subject: [PATCH] re PR target/11716 ([mips] branch out of range when building fold-const.c) 2004-03-27 Matthias Klose PR target/11716 Michael Eager * config/mips/mips.md: Limit the maximum length of a short branch to 64K instead of 128K. From-SVN: r80013 --- gcc/ChangeLog | 8 ++++++++ gcc/config/mips/mips.md | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 377c78962d7d..116b86751f78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2004-03-27 Matthias Klose + + PR target/11716 + Michael Eager + + * config/mips/mips.md: Limit the maximum length of a short branch to + 64K instead of 128K. + 2004-03-26 Richard Henderson PR 11527 diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index f90722e2eea9..a20e44479e3b 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -104,7 +104,7 @@ (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 -- 2.47.2