diff options
author | Richard Guenther <rguenther@suse.de> | 2011-08-29 09:03:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-08-29 09:03:41 +0000 |
commit | 4d59a001d319fe67785ec13d54dd58e0737d12b6 (patch) | |
tree | 225ef726671cd1648337b7bb547b57f7e4ab2a74 /gcc | |
parent | 8abdac292019f1581c057a98ca044953c05b345a (diff) | |
download | gcc-4d59a001d319fe67785ec13d54dd58e0737d12b6.zip gcc-4d59a001d319fe67785ec13d54dd58e0737d12b6.tar.gz gcc-4d59a001d319fe67785ec13d54dd58e0737d12b6.tar.bz2 |
gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location on the built ADDR_EXPR.
2011-08-29 Richard Guenther <rguenther@suse.de>
* gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
on the built ADDR_EXPR.
From-SVN: r178172
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 461e326..7ac6528 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-29 Richard Guenther <rguenther@suse.de> + + * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location + on the built ADDR_EXPR. + 2011-08-29 Jakub Jelinek <jakub@redhat.com> PR debug/50215 diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 12b2d4e..19f3400 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -2987,8 +2987,9 @@ gimple_fold_stmt_to_constant_1 (gimple stmt, tree (*valueize) (tree)) && TREE_CODE (op1) == INTEGER_CST) { tree off = fold_convert (ptr_type_node, op1); - return build_fold_addr_expr - (fold_build2 (MEM_REF, + return build_fold_addr_expr_loc + (loc, + fold_build2 (MEM_REF, TREE_TYPE (TREE_TYPE (op0)), unshare_expr (op0), off)); } |