diff options
author | Richard Guenther <rguenther@suse.de> | 2009-08-13 08:19:10 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-08-13 08:19:10 +0000 |
commit | e5fdcd8cc54cacb910bd9730ce60626b155f1bb1 (patch) | |
tree | 19e33361b8467654e1998b29231dec999536e09a /gcc/tree-ssa-ccp.c | |
parent | 61a28f2135b9e22ef505ee60f92031a48263e0b0 (diff) | |
download | gcc-e5fdcd8cc54cacb910bd9730ce60626b155f1bb1.tar.gz |
re PR middle-end/41047 (gcc.target/mips/memcpy-1.c failing)
2009-08-13 Richard Guenther <rguenther@suse.de>
PR middle-end/41047
* tree-ssa-ccp.c (ccp_fold): When folding pointer additions
use the constant pointer type.
* gimplify.c (canonicalize_addr_expr): Canonicalize independent
of CV qualifiers on the target pointer type.
* tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
conversion check before restrict check.
* gcc.dg/tree-ssa/ssa-ccp-27.c: New testcase.
From-SVN: r150715
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index f39d272964b..b359d4c8d76 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -1093,9 +1093,8 @@ ccp_fold (gimple stmt) && TREE_CODE (op0) == ADDR_EXPR && TREE_CODE (op1) == INTEGER_CST) { - tree lhs = gimple_assign_lhs (stmt); tree tem = maybe_fold_offset_to_address - (loc, op0, op1, TREE_TYPE (lhs)); + (loc, op0, op1, TREE_TYPE (op0)); if (tem != NULL_TREE) return tem; } |