This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42681] [4.5 Regression] ICE: in build2_stat, at tree.c:3664 with "-O1 -fgraphite-identity"
- From: "spop at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 08:37:46 -0000
- Subject: [Bug tree-optimization/42681] [4.5 Regression] ICE: in build2_stat, at tree.c:3664 with "-O1 -fgraphite-identity"
- References: <bug-42681-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from spop at gcc dot gnu dot org 2010-01-14 08:37 -------
Subject: Bug 42681
Author: spop
Date: Thu Jan 14 08:37:26 2010
New Revision: 155884
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155884
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/graphite/pr42681.C
Modified:
trunk/gcc/ChangeLog.graphite
trunk/gcc/graphite-clast-to-gimple.c
trunk/gcc/sese.c
trunk/gcc/sese.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42681