]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-ssa.c (useless_type_conversion_p_1): Make function and array type comparisons...
authorRichard Guenther <rguenther@suse.de>
Thu, 6 Aug 2009 11:31:20 +0000 (11:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Aug 2009 11:31:20 +0000 (11:31 +0000)
commite52201b6803177a519fc6dfd36e247b33bea4bac
treec86db63d8e19ae44aa8456ce2c320f63e0d91839
parentb92fbdd7b3eee74a74f97bf7bc74155186efa1be
tree-ssa.c (useless_type_conversion_p_1): Make function and array type comparisons frontend independent.

2009-08-06  Richard Guenther  <rguenther@suse.de>

* tree-ssa.c (useless_type_conversion_p_1): Make function and
array type comparisons frontend independent.
* Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
out array reference lower bound and element size operands.
(ao_ref_init_from_vn_reference): Properly compute the offset
for ARRAY_RANGE_REF.
(vn_reference_fold_indirect): Fill out array reference lower
bound and element size operands.
* tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
a non gimple valued reference operand which can happen for
array reference lower bound or element size.
(create_component_ref_by_pieces_1): Properly generate the
element size operand for array references.

From-SVN: r150519
gcc/ChangeLog
gcc/Makefile.in
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa.c