From: Maxim Kuvyrkov Date: Wed, 28 Jul 2010 10:32:10 +0000 (+0000) Subject: re PR rtl-optimization/45101 (ICE: in insert_expr_in_table, at gcse.c:1213 with ... X-Git-Tag: releases/gcc-4.6.0~5365 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb801fa63ca424c28279ffcea1129c95b78c9d6e;p=thirdparty%2Fgcc.git re PR rtl-optimization/45101 (ICE: in insert_expr_in_table, at gcse.c:1213 with -gcse-las) PR rtl-optimization/45101 * gcc.dg/pr45101.c: New test. From-SVN: r162623 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57b6a2969273..21ca910291f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-07-28 Maxim Kuvyrkov + + PR rtl-optimization/45101 + * gcc.dg/pr45101.c: New test. + 2010-07-28 Tobias Burnus PR fortran/45077 diff --git a/gcc/testsuite/gcc.dg/pr45101.c b/gcc/testsuite/gcc.dg/pr45101.c new file mode 100644 index 000000000000..d9615725a071 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr45101.c @@ -0,0 +1,15 @@ +/* PR rtl-optimization/45101 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -fgcse -fgcse-las" } */ + +struct +{ + int i; +} *s; + +extern void bar (void); + +void foo () +{ + !s ? s->i++ : bar (); +}