From: Tom de Vries Date: Thu, 13 Oct 2011 10:24:47 +0000 (+0000) Subject: function.c (gimplify_parameters): Set number of arguments of call to BUILT_IN_ALLOCA_... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c28f4b5c26988486a94093dadfb551a6520c2520;p=gcc.git function.c (gimplify_parameters): Set number of arguments of call to BUILT_IN_ALLOCA_WITH_ALIGN to 2. 2011-10-13 Tom de Vries * function.c (gimplify_parameters): Set number of arguments of call to BUILT_IN_ALLOCA_WITH_ALIGN to 2. From-SVN: r179901 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c8c7ef8df98..1bfb6cdd5c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-10-13 Tom de Vries + + * function.c (gimplify_parameters): Set number of arguments of call to + BUILT_IN_ALLOCA_WITH_ALIGN to 2. + 2011-10-13 Tom de Vries * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P diff --git a/gcc/function.c b/gcc/function.c index 35ddfd6894f..c469ab9b2b1 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3636,7 +3636,7 @@ gimplify_parameters (void) local = build_fold_indirect_ref (addr); t = builtin_decl_explicit (BUILT_IN_ALLOCA_WITH_ALIGN); - t = build_call_expr (t, 1, DECL_SIZE_UNIT (parm), + t = build_call_expr (t, 2, DECL_SIZE_UNIT (parm), size_int (DECL_ALIGN (parm))); /* The call has been built for a variable-sized object. */