Commit 0bb360df by John David Anglin Committed by John David Anglin

re PR rtl-optimization/14838 (ICE when building with -O2 -g)

	PR rtl-optimization/14838
	* emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
	note.
	(get_last_nonnote_insn): Don't assume last insn is a note.

From-SVN: r91065
parent 69d3c9a4
2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR rtl-optimization/14838
* emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
note.
(get_last_nonnote_insn): Don't assume last insn is a note.
2004-11-22 Roger Sayle <roger@eyesopen.com>
* fold-const.c (nondestructive_fold_binary_to_constant): Rename
......
......@@ -2738,15 +2738,9 @@ get_last_insn_anywhere (void)
rtx
get_first_nonnote_insn (void)
{
rtx insn = first_insn;
while (insn)
{
insn = next_insn (insn);
if (insn == 0 || !NOTE_P (insn))
break;
}
rtx insn;
for (insn = first_insn; insn && NOTE_P (insn); insn = next_insn (insn));
return insn;
}
......@@ -2756,15 +2750,9 @@ get_first_nonnote_insn (void)
rtx
get_last_nonnote_insn (void)
{
rtx insn = last_insn;
while (insn)
{
insn = previous_insn (insn);
if (insn == 0 || !NOTE_P (insn))
break;
}
rtx insn;
for (insn = last_insn; insn && NOTE_P (insn); insn = previous_insn (insn));
return insn;
}
......
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