]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jump.c (thread_jumps): Do not look at the NOTE_LINE_NUMBER of a non-note insn.
authorJeffrey A Law <law@cygnus.com>
Fri, 29 May 1998 01:01:21 +0000 (01:01 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 29 May 1998 01:01:21 +0000 (19:01 -0600)
        * jump.c (thread_jumps): Do not look at the NOTE_LINE_NUMBER
        of a non-note insn.

From-SVN: r20135

gcc/ChangeLog
gcc/jump.c

index 85dad03ca407a0ba18844be9c0b8737063a95b15..fa6c161976f5ab7421f3df01e6c1613015e6aa2f 100644 (file)
@@ -1,5 +1,8 @@
 Fri May 29 01:48:25 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * jump.c (thread_jumps): Do not look at the NOTE_LINE_NUMBER
+       of a non-note insn.
+
        * gcse.c (pre_delete): Fix code to determine the mode of
        the reaching pseudo register.
 
index 301381c40d9bf16442784f9d855b31925a02f266..d5e33966a881bd4a30cc86df88c84173de5e2967 100644 (file)
@@ -4526,6 +4526,7 @@ thread_jumps (f, max_reg, flag_before_loop)
                          rtx prev = PREV_INSN (new_label);
 
                          if (flag_before_loop
+                             && GET_CODE (prev) == NOTE
                              && NOTE_LINE_NUMBER (prev) == NOTE_INSN_LOOP_BEG)
                            {
                              /* Don't thread to the loop label.  If a loop