function.c (gimplify_parameters): Set number of arguments of call to BUILT_IN_ALLOCA_...
authorTom de Vries <tom@codesourcery.com>
Thu, 13 Oct 2011 10:24:47 +0000 (10:24 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 13 Oct 2011 10:24:47 +0000 (10:24 +0000)
2011-10-13  Tom de Vries  <tom@codesourcery.com>

* function.c (gimplify_parameters): Set number of arguments of call to
BUILT_IN_ALLOCA_WITH_ALIGN to 2.

From-SVN: r179901

gcc/ChangeLog
gcc/function.c

index c8c7ef8df98d5b81eb5a5abcea5b085254b392f2..1bfb6cdd5c8b0c324e1711fce3d5eccf20d96b89 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-13  Tom de Vries  <tom@codesourcery.com>
+
+       * function.c (gimplify_parameters): Set number of arguments of call to
+       BUILT_IN_ALLOCA_WITH_ALIGN to 2.
+
 2011-10-13  Tom de Vries  <tom@codesourcery.com>
 
        * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
index 35ddfd6894f3e90f2be20e502e6e212899bbd3b9..c469ab9b2b161dd1967094a46c785b2d7cb02546 100644 (file)
@@ -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.  */