This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, commited] PR 31085
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Mar 2007 23:33:52 +0100
- Subject: [patch, commited] PR 31085
Hello,
I have recently added an assert regarding the type of operands of the
TARGET_MEM_REF to create_mem_ref; however, I forgot about
tree_ssa_useless_type_conversion.
Bootstrapped & regtested on i686, commited.
Zdenek
PR tree-optimization/31085
* tree-ssa-address.c (create_mem_ref): Fix test of type of base.
Index: tree-ssa-address.c
===================================================================
*** tree-ssa-address.c (revision 122699)
--- tree-ssa-address.c (working copy)
*************** create_mem_ref (block_stmt_iterator *bsi
*** 603,609 ****
/* Add the symbol to base, eventually forcing it to register. */
if (parts.base)
{
! gcc_assert (TREE_TYPE (parts.base) == sizetype);
if (parts.index)
{
--- 603,610 ----
/* Add the symbol to base, eventually forcing it to register. */
if (parts.base)
{
! gcc_assert (tree_ssa_useless_type_conversion_1
! (sizetype, TREE_TYPE (parts.base)));
if (parts.index)
{