summaryrefslogtreecommitdiff
path: root/lang/gcc3-ada/patches/patch-ba
blob: 5ab4f7ce1c3b8f67ea28b5cc6072b34edfaaa1b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ba,v 1.1 2003/07/09 15:23:54 drochner Exp $

--- gcc/unroll.c.orig	2003-03-25 20:23:07.000000000 +0000
+++ gcc/unroll.c
@@ -792,9 +792,9 @@ unroll_loop (loop, insn_count, strength_
       /* We must limit the generic test to max_reg_before_loop, because only
 	 these pseudo registers have valid regno_first_uid info.  */
       for (r = FIRST_PSEUDO_REGISTER; r < max_reg_before_loop; ++r)
-	if (REGNO_FIRST_UID (r) > 0 && REGNO_FIRST_UID (r) <= max_uid_for_loop
+	if (REGNO_FIRST_UID (r) > 0 && REGNO_FIRST_UID (r) < max_uid_for_loop
 	    && REGNO_FIRST_LUID (r) >= copy_start_luid
-	    && REGNO_LAST_UID (r) > 0 && REGNO_LAST_UID (r) <= max_uid_for_loop
+	    && REGNO_LAST_UID (r) > 0 && REGNO_LAST_UID (r) < max_uid_for_loop
 	    && REGNO_LAST_LUID (r) <= copy_end_luid)
 	  {
 	    /* However, we must also check for loop-carried dependencies.