re PR tree-optimization/42681 (ICE: in build2_stat, at tree.c:3664 with "-O1 -fgraphi...
authorSebastian Pop <sebastian.pop@amd.com>
Thu, 14 Jan 2010 08:37:26 +0000 (08:37 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Thu, 14 Jan 2010 08:37:26 +0000 (08:37 +0000)
commit3c7c0158052509c4d4a0a7983c7ebf821551443c
tree1517ca48e72c65b525def1df518d9d44a6853228
parentcd481d83ed240ebbdb706c3e3f3358f46662d4b8
re PR tree-optimization/42681 (ICE: in build2_stat, at tree.c:3664 with "-O1 -fgraphite-identity")

Fix PR42681.

2010-01-14  Sebastian Pop  <sebastian.pop@amd.com>

PR middle-end/42681
* graphite-clast-to-gimple.c (gloog_error): New static variable.
(clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
Set gloog_error when such an expression failed to be built.
(translate_clast): Early return when gloog_error is set.
(gloog): Clear gloog_error.  When gloog_error is set, call
set_ifsese_condition to enable the original code.  Return the status
of the code generation based on gloog_error.
* sese.c (set_ifsese_condition): New.
* sese.h (set_ifsese_condition): Declared.

* testsuite/g++.dg/graphite/pr42681.C: New.

From-SVN: r155884
gcc/ChangeLog.graphite
gcc/graphite-clast-to-gimple.c
gcc/sese.c
gcc/sese.h
gcc/testsuite/g++.dg/graphite/pr42681.C [new file with mode: 0644]