[3.4 only] PR c/22061: Problems with variable-sized parameters

Geoff Keating geoffk@geoffk.org
Mon Aug 29 04:23:00 GMT 2005


>         PR c/22061
>         * c-decl.c (push_parm_decl): Push and pop  
> x_dont_save_pending_sizes_p
>         around the call to grokdeclarator.  Call grokdeclarator  
> with the
>         field set to 0.
>         (store_parm_decls): Always store the pending_sizes in cfun.
>         (c_expand_body_1): Call put_pending_sizes.
>         * c-objc-common.c (c_cannot_inline_tree_fn): Always check
>         pending_sizes.
>
> testsuite/
>         PR c/22061
>         * gcc.c-torture/execute/pr22061-[1-4].c: New tests.

This patch is OK, for 3.4 and 4.0, so long as the respective branches  
are open for such patches.

:REVIEWURL http://gcc.gnu.org/ml/gcc-patches/2005-08/msg00045.html:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050829/b1e26479/attachment.p7s>


More information about the Gcc-patches mailing list