Commit e526eeec by Herman A.J. ten Brugge Committed by Jeff Law

emit-rtl.c (try_split): Do not try to split a BARRIER.

        * emit-rtl.c (try_split): Do not try to split a BARRIER.
Fixes core dump for c4x c-torture test.

From-SVN: r23420
parent af2c0a26
1998-10-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* emit-rtl.c (try_split): Do not try to split a BARRIER.
Thu Oct 29 01:33:54 1998 Jan Hubicka <hubicka@freesoft.cz> Thu Oct 29 01:33:54 1998 Jan Hubicka <hubicka@freesoft.cz>
Jeffrey A Law (law@cygnus.com) Jeffrey A Law (law@cygnus.com)
......
...@@ -2270,10 +2270,12 @@ try_split (pat, trial, last) ...@@ -2270,10 +2270,12 @@ try_split (pat, trial, last)
time control returns here that insn will be fully split, so time control returns here that insn will be fully split, so
set LAST and continue from the insn after the one returned. set LAST and continue from the insn after the one returned.
We can't use next_active_insn here since AFTER may be a note. We can't use next_active_insn here since AFTER may be a note.
Ignore deleted insns, which can be occur if not optimizing. */ Ignore deleted insns, which can be occur if not optimizing,
and ignore BARRIERs which can occur if we split the insn
immediately before a BARRIER. */
for (tem = NEXT_INSN (before); tem != after; for (tem = NEXT_INSN (before); tem != after;
tem = NEXT_INSN (tem)) tem = NEXT_INSN (tem))
if (! INSN_DELETED_P (tem)) if (! INSN_DELETED_P (tem) && ! GET_CODE (tem) == BARRIER)
tem = try_split (PATTERN (tem), tem, 1); tem = try_split (PATTERN (tem), tem, 1);
} }
/* Avoid infinite loop if the result matches the original pattern. */ /* Avoid infinite loop if the result matches the original pattern. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment