Commit a670437d by Richard Guenther Committed by Richard Biener

tree-pretty-print.c (dump_generic_node): Print ARRAY_REF lower bound and element size if...

2007-04-12  Richard Guenther  <rguenther@suse.de>

	* tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
	lower bound and element size if lower bound is not zero
	or either of the ARRAY_REF operands is set.

From-SVN: r123738
parent 6e734d98
2007-04-12 Richard Guenther <rguenther@suse.de> 2007-04-12 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
lower bound and element size if lower bound is not zero
or either of the ARRAY_REF operands is set.
2007-04-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/24689 PR tree-optimization/24689
PR tree-optimization/31307 PR tree-optimization/31307
* fold-const.c (operand_equal_p): Compare INTEGER_CST array * fold-const.c (operand_equal_p): Compare INTEGER_CST array
......
...@@ -952,8 +952,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, ...@@ -952,8 +952,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
op1 = array_ref_element_size (node); op1 = array_ref_element_size (node);
if (!integer_zerop (op0) if (!integer_zerop (op0)
|| (TYPE_SIZE_UNIT (TREE_TYPE (node)) || TREE_OPERAND (node, 2)
&& !operand_equal_p (op1, TYPE_SIZE_UNIT (TREE_TYPE (node)), 0))) || TREE_OPERAND (node, 3))
{ {
pp_string (buffer, "{lb: "); pp_string (buffer, "{lb: ");
dump_generic_node (buffer, op0, spc, flags, false); dump_generic_node (buffer, op0, spc, flags, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment