re PR tree-optimization/64715 (__builtin_object_size (..., 1) fails to locate subobject)
authorRichard Biener <rguenther@suse.de>
Fri, 20 Mar 2015 12:39:32 +0000 (12:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 20 Mar 2015 12:39:32 +0000 (12:39 +0000)
commit3da3ff4e712aad4d79949ce2875e8748b799c95b
tree149b988f26d1e4b2d318e3c64d83f270f9e11aba
parent1e039275b5781ba03565686eb723cb834919819a
re PR tree-optimization/64715 (__builtin_object_size (..., 1) fails to locate subobject)

2015-03-20  Richard Biener  <rguenther@suse.de>

PR middle-end/64715
* tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
for type comparison and gcc_checking_assert.
(chrec_fold_plus_poly_poly): Likewise.
(chrec_fold_multiply_poly_poly): Likewise.
(chrec_convert_1): Likewise.
* gimplify.c (gimplify_expr): Remove premature folding of
&X + CST to &MEM[&X, CST].

* gcc.dg/pr15347.c: Use -O.
* c-c++-common/pr19807-1.c: Likewise.

From-SVN: r221532
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr19807-1.c
gcc/testsuite/gcc.dg/pr15347.c
gcc/tree-chrec.c