aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorPaul Wögerer <paul_woegerer@mentor.com>2011-03-07 15:28:50 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2011-03-07 15:28:50 +0000
commit59527282380bdf54087204235cc7330cd44b067a (patch)
tree32cef28280f3982cb6aecec7b662e9e936b65df2 /gcc/gimplify.c
parent617718f72d0736e5f8630012d3276a276b9e153f (diff)
downloadgcc-59527282380bdf54087204235cc7330cd44b067a.zip
gcc-59527282380bdf54087204235cc7330cd44b067a.tar.gz
gcc-59527282380bdf54087204235cc7330cd44b067a.tar.bz2
gimplify.c (gimplify_function_tree): Fix building calls to __builtin_return_address.
gcc/ * gimplify.c (gimplify_function_tree): Fix building calls to __builtin_return_address. gcc/testsuite/ * gcc.dg/20001117-1.c: Abort on NULL call_sites. Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com> From-SVN: r170738
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index cf9495c..400493f 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -7868,7 +7868,7 @@ gimplify_function_tree (tree fndecl)
gimple call;
x = implicit_built_in_decls[BUILT_IN_RETURN_ADDRESS];
- call = gimple_build_call (x, 0);
+ call = gimple_build_call (x, 1, integer_zero_node);
tmp_var = create_tmp_var (ptr_type_node, "return_addr");
gimple_call_set_lhs (call, tmp_var);
gimplify_seq_add_stmt (&cleanup, call);
@@ -7880,7 +7880,7 @@ gimplify_function_tree (tree fndecl)
tf = gimple_build_try (seq, cleanup, GIMPLE_TRY_FINALLY);
x = implicit_built_in_decls[BUILT_IN_RETURN_ADDRESS];
- call = gimple_build_call (x, 0);
+ call = gimple_build_call (x, 1, integer_zero_node);
tmp_var = create_tmp_var (ptr_type_node, "return_addr");
gimple_call_set_lhs (call, tmp_var);
gimplify_seq_add_stmt (&body, call);