builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
authorMichael Matz <matz@suse.de>
Thu, 31 Mar 2011 15:59:10 +0000 (15:59 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Thu, 31 Mar 2011 15:59:10 +0000 (15:59 +0000)
* builtins.c (build_va_arg_indirect_ref): Use
build_simple_mem_ref_loc.

From-SVN: r171789

gcc/ChangeLog
gcc/builtins.c

index 858432de6b5d3f8a1d4ad97c1c476bf16a8a7410..aee2430889beef04d4db4328abbdae94fc939dd6 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-31  Michael Matz  <matz@suse.de>
+
+       * builtins.c (build_va_arg_indirect_ref): Use
+       build_simple_mem_ref_loc.
+
 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
 
        * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
index 29274f4f794e617da2151c778d12f2d620b9e06d..7ae3833163a80cce79aab4e9c2b8a3b3860924c0 100644 (file)
@@ -4748,7 +4748,7 @@ std_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p,
 tree
 build_va_arg_indirect_ref (tree addr)
 {
-  addr = build_fold_indirect_ref_loc (EXPR_LOCATION (addr), addr);
+  addr = build_simple_mem_ref_loc (EXPR_LOCATION (addr), addr);
 
   if (flag_mudflap) /* Don't instrument va_arg INDIRECT_REF.  */
     mf_mark (addr);