This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32461] [4.3 Regression] Segmentation fault in build_classic_dist_vector_1() at tree-data-ref.c:2700



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]