This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32461] [4.3 Regression] Segmentation fault in build_classic_dist_vector_1() at tree-data-ref.c:2700
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2007 13:34:54 -0000
- Subject: [Bug tree-optimization/32461] [4.3 Regression] Segmentation fault in build_classic_dist_vector_1() at tree-data-ref.c:2700
- References: <bug-32461-13856@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #25 from schwab at suse dot de 2007-06-24 13:34 -------
Subject: Re: [4.3 Regression] Segmentation fault in
build_classic_dist_vector_1() at tree-data-ref.c:2700
"Richard Guenther" <richard.guenther@gmail.com> writes:
> quite possibly. The patch is ok if it bootstraps & tests and you change
>
> /* X + ~X is -1. */
> if (TREE_CODE (arg1) == BIT_NOT_EXPR
> - && operand_equal_p (arg0, TREE_OPERAND (arg1, 0), 0)
> + && operand_equal_p (op0, TREE_OPERAND (op1, 0), 0)
That won't work if op1 != arg1, ie. there are NOPs around BIT_NOT_EXPR.
Andreas.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32461