]> gcc.gnu.org Git - gcc.git/commitdiff
gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location on the built ADDR_EXPR.
authorRichard Guenther <rguenther@suse.de>
Mon, 29 Aug 2011 09:03:41 +0000 (09:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 29 Aug 2011 09:03:41 +0000 (09:03 +0000)
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

gcc/ChangeLog
gcc/gimple-fold.c

index 461e326acd72b0da43e7289584c45fa9b746235a..7ac65284267979ed480604781ec5d845b6032dd0 100644 (file)
@@ -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
index 12b2d4e4a4b43b3fa42c98b186d17e3a538b4d12..19f34000654d6ce911370cef819f2f1bfef33583 100644 (file)
@@ -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));
                }
This page took 0.118565 seconds and 5 git commands to generate.