This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23320] [4.1 Regression] ICE in in base_addr_differ_p, at tree-data-ref.c:430
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2005 22:23:17 -0000
- Subject: [Bug tree-optimization/23320] [4.1 Regression] ICE in in base_addr_differ_p, at tree-data-ref.c:430
- References: <20050810215827.23320.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dberlin at gcc dot gnu dot org 2005-08-10 22:23 -------
Ira, this is because your assert's don't match the conditions that will cause it
to return:
We early exit if we have
if (DR_BASE_OBJECT (dra) && DR_BASE_OBJECT (drb))
The assert a little later however, tests:
gcc_assert (!DR_BASE_OBJECT (dra) && !DR_BASE_OBJECT (drb));
I note the comment:
/* Compare base objects first if possible. If DR_BASE_OBJECT is NULL, it means
that the data-ref is of INDIRECT_REF, and alias analysis will be applied to
reveal the dependence. */
You probably then should be testing
if (DR_TYPE (dra) == ARRAY_TYPE && DR_TYPE (drb) == ARRAY_TYPE)
not base object nullness.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |irar at il dot ibm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23320