[Bug tree-optimization/36198] expected integer_cst, have mult_expr

2008-05-10 Thread jv244 at cam dot ac dot uk


--- Comment #1 from jv244 at cam dot ac dot uk  2008-05-10 08:44 ---
Created an attachment (id=15624)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15624action=view)
all files needed to reproduce and a README with the command

all files needed to reproduce and a README with the command


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36198



[Bug tree-optimization/36198] expected integer_cst, have mult_expr

2008-05-10 Thread jv244 at cam dot ac dot uk


--- Comment #2 from jv244 at cam dot ac dot uk  2008-05-10 10:03 ---
backtrace

#0  internal_error (gmsgid=0xc2d800 tree check: %s, have %s in %s, at %s:%d)
at /data03/vondele/gcc_trunk/gcc/gcc/diagnostic.c:594
#1  0x008a284e in tree_check_failed (node=0x2b6a9f6ec4c0, file=0xc2d628
/data03/vondele/gcc_trunk/gcc/gcc/tree.c, line=8002, function=0xc2f7fc
int_cst_value)
at /data03/vondele/gcc_trunk/gcc/gcc/tree.c:6764
#2  0x008a2c08 in int_cst_value (x=0x) at
/data03/vondele/gcc_trunk/gcc/gcc/tree.c:8002
#3  0x0072ca52 in analyze_subscript_affine_affine
(chrec_a=0x2b6a9faf5410, chrec_b=0x2b6a9fc29000, overlaps_a=0x7fff0bb79240,
overlaps_b=0x7fff0bb79238,
last_conflicts=0x7fff0bb79248) at
/data03/vondele/gcc_trunk/gcc/gcc/tree-data-ref.c:2076
#4  0x0072eb86 in analyze_siv_subscript (chrec_a=0xc2d800,
chrec_b=0x7fff0bb78f70, overlaps_a=0xba887e, overlaps_b=0xc2f7fc,
last_conflicts=0xc2d64a)
at /data03/vondele/gcc_trunk/gcc/gcc/tree-data-ref.c:2394
#5  0x0072f783 in subscript_dependence_tester_1 (ddr=0x102c620,
dra=0x126dea0, drb=0x102c570, loop_nest=0x2b6a9fc15820)
at /data03/vondele/gcc_trunk/gcc/gcc/tree-data-ref.c:2633
#6  0x007300cd in subscript_dependence_tester (ddr=0x102c620,
loop_nest=0x2b6a9fc15820) at
/data03/vondele/gcc_trunk/gcc/gcc/tree-data-ref.c:3219
#7  0x007315e8 in compute_all_dependences (datarefs=0x1046270,
dependence_relations=0x7fff0bb795e8, loop_nest=0x104ca60, compute_self_and_rr=1
'\001')
at /data03/vondele/gcc_trunk/gcc/gcc/tree-data-ref.c:3849
#8  0x00732899 in compute_data_dependences_for_loop
(loop=0x2b6a9fc15820, compute_self_and_read_read_dependences=252 '',
datarefs=0x7fff0bb795f0,
dependence_relations=0x7fff0bb795e8) at
/data03/vondele/gcc_trunk/gcc/gcc/tree-data-ref.c:4169
#9  0x007786f2 in tree_predictive_commoning_loop (loop=0x2b6a9fc15820)
at /data03/vondele/gcc_trunk/gcc/gcc/tree-predcom.c:2495
#10 0x00779d5d in tree_predictive_commoning () at
/data03/vondele/gcc_trunk/gcc/gcc/tree-predcom.c:2604
#11 0x007fe6c7 in run_tree_predictive_commoning () at
/data03/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop.c:191


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36198



[Bug tree-optimization/36198] expected integer_cst, have mult_expr

2008-05-10 Thread ubizjak at gmail dot com


--- Comment #3 from ubizjak at gmail dot com  2008-05-10 12:36 ---
This is what goes into int_cst_value:

#2  0x008a60c8 in int_cst_value (x=0x2e72a4c0) at
../../gcc-svn/trunk/gcc/tree.c:8002
8002  unsigned HOST_WIDE_INT val = TREE_INT_CST_LOW (x);
(gdb) p debug_generic_expr (x)
((integer(kind=8)) {1, +, {1, +, 1}_1}_1 + -1) * 2


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-05-10 12:36:11
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36198



[Bug tree-optimization/36198] expected integer_cst, have mult_expr

2008-05-10 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2008-05-10 12:58 ---
That looks more like a fallout from:

2008-05-09  Jan Sjodin  [EMAIL PROTECTED]
Sebastian Pop  [EMAIL PROTECTED]

* tree-scalar-evolution.c: Document instantiate_scev.
(instantiate_parameters_1): Renamed instantiate_scev_1.
Don't use the same loop for instantiation_loop and evolution_loop.
(instantiate_scev): New.
(instantiate_parameters): Moved...
(resolve_mixers): Update call to instantiate_scev_1 to pass the
same loop twice.  Maintains the semantics for this function.
* tree-scalar-evolution.h (instantiate_scev): Declare.
(instantiate_parameters): ...here.  Now static inline.
* tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
instead of resolve_mixers.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||spop at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36198