[patch, commited] PR 31085

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Thu Mar 8 22:49:00 GMT 2007


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



More information about the Gcc-patches mailing list