* config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
alignment for alloca.
* gcc.c-torture/execute/alloca-1.c: New.
From-SVN: r54020
+2002-05-29 Richard Henderson <rth@redhat.com>
+
+ * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
+ alignment for alloca.
+
2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
PR preprocessor/6844
else
frame->outgoing_arguments_size = 0;
- /* Align stack boundary. Only needed if we're calling another function. */
- if (!current_function_is_leaf)
+ /* Align stack boundary. Only needed if we're calling another function
+ or using alloca. */
+ if (!current_function_is_leaf || current_function_calls_alloca)
frame->padding2 = ((offset + preferred_alignment - 1)
& -preferred_alignment) - offset;
else