This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34063] [4.3 Regression] ICE: build2_stat, at tree.c:3115
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2007 10:26:11 -0000
- Subject: [Bug tree-optimization/34063] [4.3 Regression] ICE: build2_stat, at tree.c:3115
- References: <bug-34063-3137@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2007-11-13 10:26 -------
Either we should use correct order of arguments in chrec_evaluate (that
function
is swapping CHREC_LEFT based expression with CHREC_RIGHT based expression
for pointer_plus addition) - testing patch for that - or chrec_fold_plus_1
should swap op0 with op1 if code is POINTER_PLUS_EXPR and the first argument
has integer type, but second POINTER_TYPE_P.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34063