From: rguenth Date: Tue, 26 Apr 2011 10:12:14 +0000 (+0000) Subject: 2011-04-26 Richard Guenther X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5da6a36e69492826eaf5c8b3bc8ff77c2f05997a;p=thirdparty%2Fgcc.git 2011-04-26 Richard Guenther PR middle-end/48694 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag. * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set. * gcc.dg/torture/pr48694-1.c: New testcase. * gcc.dg/torture/pr48694-2.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172957 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69132f4bf05c..43c6b23f3bdb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2011-04-26 Richard Guenther + + * c-typeck.c (build_unary_op): Do not expand array-refs via + pointer arithmetic. Only adjust qualifiers for function types. + +2011-04-26 Richard Guenther + + PR middle-end/48694 + * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag. + * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs + compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat + trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF + is set. + 2011-04-25 Paolo Carlini * c-family/c-common.c (struct c_common_resword): Add