On Fri, Feb 20, 2009 at 06:08:36PM +0000, Joseph S. Myers wrote:
> My guess would be that some of the code for handling va_list being an
> array is needed in the case of generating a trap as well.
>
> if (TREE_CODE (have_va_type) == ARRAY_TYPE)
> {
> if (TREE_CODE (TREE_TYPE (valist)) == ARRAY_TYPE)
> {
> tree p1 = build_pointer_type (TREE_TYPE (have_va_type));
> valist = build_fold_addr_expr_with_type (valist, p1);
> }
> }
>
> (before gimplify_and_add (valist, pre_p);).
>
> --
> Joseph S. Myers
> [email protected]
FYI, these testcases are also failing on powerpc-ibm-aix5.3.0.0...
http://gcc.gnu.org/ml/gcc-testresults/2009-02/msg01950.html
Jack