diff options
author | Richard Guenther <rguenther@suse.de> | 2007-04-12 09:25:04 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-04-12 09:25:04 +0000 |
commit | a670437d9246cc31ae8115c03a7f5c3553e13f45 (patch) | |
tree | 6db1ad6ae609101f81138bd571fcef72444c05c7 /gcc/tree-pretty-print.c | |
parent | 6e734d98206344f9d2469b69bff74685382927bc (diff) | |
download | gcc-a670437d9246cc31ae8115c03a7f5c3553e13f45.zip gcc-a670437d9246cc31ae8115c03a7f5c3553e13f45.tar.gz gcc-a670437d9246cc31ae8115c03a7f5c3553e13f45.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 3f082f0..789aefc 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -952,8 +952,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, op1 = array_ref_element_size (node); if (!integer_zerop (op0) - || (TYPE_SIZE_UNIT (TREE_TYPE (node)) - && !operand_equal_p (op1, TYPE_SIZE_UNIT (TREE_TYPE (node)), 0))) + || TREE_OPERAND (node, 2) + || TREE_OPERAND (node, 3)) { pp_string (buffer, "{lb: "); dump_generic_node (buffer, op0, spc, flags, false); |