This is the mail archive of the gcc-patches@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]

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


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