From 98faf84fde0f4993b244b3e482f2096c8eb1d8f9 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 31 Mar 2011 15:59:10 +0000 Subject: [PATCH] builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc. * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc. From-SVN: r171789 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 858432de6b5..aee2430889b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-31 Michael Matz + + * builtins.c (build_va_arg_indirect_ref): Use + build_simple_mem_ref_loc. + 2011-03-31 Anatoly Sokolov * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro. diff --git a/gcc/builtins.c b/gcc/builtins.c index 29274f4f794..7ae3833163a 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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); -- 2.30.2