diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-nested.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ec536d..996b6cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2010-11-04 Richard Guenther <rguenther@suse.de> + * tree-nested.c (build_addr): Use build_fold_addr_expr. + +2010-11-04 Richard Guenther <rguenther@suse.de> + PR tree-optimization/45991 * gimplify.c (force_gimple_operand_1): Use the provded test function in the initial test. diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index b811ec5..b7bf9ed 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -184,7 +184,7 @@ build_addr (tree exp, tree context) way the properties are for the ADDR_EXPR are computed properly. */ save_context = current_function_decl; current_function_decl = context; - retval = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (exp)), exp); + retval = build_fold_addr_expr (exp); current_function_decl = save_context; return retval; } |