Commit fa1ff4eb by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/28683 (ICE (segfault in add_reg_br_prob_note) when comparing…

re PR middle-end/28683 (ICE (segfault in add_reg_br_prob_note) when comparing pointers with -O (and higher))

	PR middle-end/28683
	* cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
	3 following insns.

	* gcc.c-torture/compile/20060823-1.c: New test.

From-SVN: r116467
parent 7acf7efa
2006-08-26 Jakub Jelinek <jakub@redhat.com>
PR middle-end/28683
* cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
3 following insns.
2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* flow.c (verify_wide_reg): Use internal_error for consistency failure.
......
......@@ -58,7 +58,9 @@ add_reg_br_prob_note (rtx last, int probability)
if (!any_condjump_p (last)
|| !JUMP_P (NEXT_INSN (last))
|| !simplejump_p (NEXT_INSN (last))
|| !NEXT_INSN (NEXT_INSN (last))
|| !BARRIER_P (NEXT_INSN (NEXT_INSN (last)))
|| !NEXT_INSN (NEXT_INSN (NEXT_INSN (last)))
|| !LABEL_P (NEXT_INSN (NEXT_INSN (NEXT_INSN (last))))
|| NEXT_INSN (NEXT_INSN (NEXT_INSN (NEXT_INSN (last)))))
goto failed;
......
2006-08-26 Jakub Jelinek <jakub@redhat.com>
PR middle-end/28683
* gcc.c-torture/compile/20060823-1.c: New test.
2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28853
/* PR middle-end/28683 */
extern void foo (int *);
struct A
{
int f;
};
struct A *
test (struct A *r)
{
int *f = &r->f;
static int i = 0;
if (!i && !((void *) f == (void *) r))
foo (&i);
return r;
}
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