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, committed] Fix DOM bootstrap failure


	The recent DOM patch for boolean types passed element->rhs as an
argument to a function after the structure had been freed.  Oops.  This
caused a bootstrap failure on AIX.

Committed as obvious.

David


	* tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
	structure as argument.

Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dom.c,v
retrieving revision 2.122
diff -c -p -r2.122 tree-ssa-dom.c
*** tree-ssa-dom.c	12 Jul 2005 17:00:00 -0000	2.122
--- tree-ssa-dom.c	13 Jul 2005 15:17:50 -0000
*************** lookup_avail_expr (tree stmt, bool inser
*** 3104,3110 ****
  	  tree t = element->rhs;
  	  free (element);
  	  return constant_boolean_node (TREE_CODE (t) != EQ_EXPR,
! 					TREE_TYPE (element->rhs));
  	}
      }
  
--- 3104,3110 ----
  	  tree t = element->rhs;
  	  free (element);
  	  return constant_boolean_node (TREE_CODE (t) != EQ_EXPR,
! 					TREE_TYPE (t));
  	}
      }
  


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