This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] Fix missing argument in lower_builtin_setjmp
- From: "Diego Novillo" <dnovillo at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 26 Oct 2007 20:15:37 -0400
- Subject: [tuples] Fix missing argument in lower_builtin_setjmp
I had missed the second argument to __builtin_setjmp_setup when I
initially converted this to tuples.
Tested on x86_64. Committed.
* gimple-low.c (lower_builtin_setjmp): Pass ARG to first
call to gimple_build_call.
Index: gimple-low.c
===================================================================
--- gimple-low.c (revision 129659)
+++ gimple-low.c (working copy)
@@ -744,7 +744,7 @@ lower_builtin_setjmp (gimple_stmt_iterat
/* Build '__builtin_setjmp_setup (BUF, NEXT_LABEL)' and insert. */
arg = build_addr (next_label, current_function_decl);
t = implicit_built_in_decls[BUILT_IN_SETJMP_SETUP];
- g = gimple_build_call (t, 2, gimple_call_arg (stmt, 0));
+ g = gimple_build_call (t, 2, gimple_call_arg (stmt, 0), arg);
gimple_set_locus (g, gimple_locus (stmt));
gsi_link_before (gsi, g, GSI_SAME_STMT);