[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread rguenth at gcc dot gnu dot org


--- Comment #8 from rguenth at gcc dot gnu dot org  2008-01-09 13:43 ---
Subject: Bug 34679

Author: rguenth
Date: Wed Jan  9 13:43:03 2008
New Revision: 131427

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131427
Log:
2008-01-09  Richard Guenther  <[EMAIL PROTECTED]>

PR middle-end/34679
* tree.c (host_integerp): Check for sizetype only if the
type is an integer type.

Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/tree.c


-- 


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



[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread rguenth at gcc dot gnu dot org


--- Comment #7 from rguenth at gcc dot gnu dot org  2008-01-09 12:19 ---
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2008-01-09 12:14 ---
Subject: Bug 34679

Author: rguenth
Date: Wed Jan  9 12:14:01 2008
New Revision: 131425

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131425
Log:
2008-01-09  Richard Guenther  <[EMAIL PROTECTED]>

PR middle-end/34679
* tree.c (host_integerp): Check for sizetype only if the
type is an integer type.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree.c


-- 


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



[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread rguenth at gcc dot gnu dot org


--- Comment #5 from rguenth at gcc dot gnu dot org  2008-01-09 10:35 ---
Caused by the fix for PR32563 btw.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

OtherBugsDependingO||32563
  nThis||


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



[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2008-01-09 10:34 ---
I have a different patch.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|spop at gcc dot gnu dot org |rguenth at gcc dot gnu dot
   ||org


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



[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread sebpop at gmail dot com


--- Comment #3 from sebpop at gmail dot com  2008-01-09 08:08 ---
Subject: Re:  [4.3 Regression] ICE: tree check: expected integer_type, have
enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

Patch http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00344.html


-- 


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



Re: [Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-09 Thread Sebastian Pop
Patch http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00344.html


[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

2008-01-08 Thread spop at gcc dot gnu dot org


-- 

spop at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |spop at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-01-09 05:29:48
   date||


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



[Bug tree-optimization/34679] [4.3 Regression] ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning)

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


--- Comment #2 from rguenth at gcc dot gnu dot org  2008-01-05 11:25 ---
#2  0x00b09925 in host_integerp (t=0x2b817cd15b70, pos=0)
at /space/rguenther/src/svn/trunk/gcc/tree.c:4949
#3  0x00686e97 in fold_plusminus_mult_expr (code=PLUS_EXPR, 
type=0x2b817c26f000, arg0=0x2b817cdf36c0, arg1=0x2b817c25d570)
at /space/rguenther/src/svn/trunk/gcc/fold-const.c:7402
...
#12 0x00caeb7e in chrec_fold_plus_1 (code=PLUS_EXPR, 
type=0x2b817c26f000, op0=0x2b817ce07700, op1=0x2b817cc7b630)
at /space/rguenther/src/svn/trunk/gcc/tree-chrec.c:323
...
#19 0x00952f5d in analyze_scalar_evolution_in_loop (
wrto_loop=0x2b817cc545a0, use_loop=0x2b817cc545a0, version=0x2b817ce07100, 
folded_casts=0x7fff2e8a6f3f "")
at /space/rguenther/src/svn/trunk/gcc/tree-scalar-evolution.c:1854
#20 0x009579e0 in simple_iv (loop=0x2b817cc545a0, stmt=0x2b817d15b9f0, 
op=0x2b817ce07100, iv=0x7fff2e8a7030, allow_nonconstant_step=0 '\0')
at /space/rguenther/src/svn/trunk/gcc/tree-scalar-evolution.c:2663
#21 0x008bd379 in dr_analyze_innermost (dr=0x12266d0)
at /space/rguenther/src/svn/trunk/gcc/tree-data-ref.c:683
#22 0x008bf1eb in create_data_ref (nest=0x2b817cc545a0, 
memref=0x2b817d5335a0, stmt=0x2b817d15b9f0, is_read=1 '\001')
at /space/rguenther/src/svn/trunk/gcc/tree-data-ref.c:841
#23 0x008ce048 in find_data_references_in_stmt (nest=0x2b817cc545a0, 
stmt=0x2b817d15b9f0, datarefs=0x7fff2e8a72f8)
at /space/rguenther/src/svn/trunk/gcc/tree-data-ref.c:4026
#24 0x008ce434 in find_data_references_in_loop (loop=0x2b817cc545a0, 
datarefs=0x7fff2e8a72f8)
at /space/rguenther/src/svn/trunk/gcc/tree-data-ref.c:4071
#25 0x008ce9b3 in compute_data_dependences_for_loop (
loop=0x2b817cc545a0, compute_self_and_read_read_dependences=1 '\001', 
datarefs=0x7fff2e8a72f8, dependence_relations=0x7fff2e8a72f0)
at /space/rguenther/src/svn/trunk/gcc/tree-data-ref.c:4148
#26 0x0092e23a in tree_predictive_commoning_loop (loop=0x2b817cc545a0)
at /space/rguenther/src/svn/trunk/gcc/tree-predcom.c:2496

reproducible with a cross, -fno-predictive-commoning is a workaround.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rakdver at gcc dot gnu dot
   ||org, spop at gcc dot gnu dot
   ||org
  Component|middle-end  |tree-optimization
Summary|[4.3 Regression] ICE: tree  |[4.3 Regression] ICE: tree
   |check: expected |check: expected
   |integer_type, have  |integer_type, have
   |enumeral_type in|enumeral_type in
   |host_integerp, at   |host_integerp, at
   |tree.c:4949 |tree.c:4949 (predictive
   ||commoning)


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