------- Comment #6 from sebpop at gmail dot com 2008-11-07 05:21 ------- Subject: Re: [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
Hi, For the first part of the bug: > aermod.f90:14521: internal compiler error: in instantiate_scev_1, at > tree-scalar-evolution.c:2220 the bug was introduced by an automatic rewrite arount TREE_CODE_LENGTH http://gcc.gnu.org/viewcvs?view=rev&revision=122018 The fix avoids the gcc_assert by returning "unknown scalar evolution". The second part of the bug was already fixed: > aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at > graphite.c:3168 I will apply the patch below once it finishes regstrap. Sebastian Index: tree-scalar-evolution.c =================================================================== --- tree-scalar-evolution.c (revision 141661) +++ tree-scalar-evolution.c (working copy) @@ -2213,7 +2213,9 @@ instantiate_scev_1 (basic_block instanti break; } - gcc_assert (!VL_EXP_CLASS_P (chrec)); + if (VL_EXP_CLASS_P (chrec)) + return chrec_dont_know; + switch (TREE_CODE_LENGTH (TREE_CODE (chrec))) { case 3: -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379