From bb801fa63ca424c28279ffcea1129c95b78c9d6e Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Wed, 28 Jul 2010 10:32:10 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr45101.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr45101.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57b6a296927..21ca910291f 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 00000000000..d9615725a07 --- /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 (); +}