Alan Modra <amo...@gmail.com> writes:

> diff -urp gcc3/libffi/testsuite/libffi.call/cls_double_va.c 
> gcc4/libffi/testsuite/libffi.call/cls_double_va.c
> --- gcc3/libffi/testsuite/libffi.call/cls_double_va.c 2013-11-15 
> 23:03:07.193964372 +1030
> +++ gcc4/libffi/testsuite/libffi.call/cls_double_va.c 2013-11-15 
> 23:22:51.383884118 +1030
> @@ -38,26 +38,24 @@ int main (void)
>  
>       /* This printf call is variadic */
>       CHECK(ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 1, 2, &ffi_type_sint,
> -             arg_types) == FFI_OK);
> +                            arg_types) == FFI_OK);
>  
>       args[0] = &format;
>       args[1] = &doubleArg;
>       args[2] = NULL;
>  
>       ffi_call(&cif, FFI_FN(printf), &res, args);
> -     // { dg-output "7.0" }
> +     /* { dg-output "7.0" } */
>       printf("res: %d\n", (int) res);
> -     // { dg-output "\nres: 4" }
> +     /* { dg-output "\nres: 4" } */
>  
> -     /* The call to cls_double_va_fn is static, so have to use a normal 
> prep_cif */
> -     CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &ffi_type_sint, arg_types) 
> == FFI_OK);

This breaks ia64:

FAIL: libffi.call/cls_double_va.c -O0 -W -Wall output pattern test, is 7.0
res: 4
0.0
res: 4
, should match 7.0?
res: 4?
7.0?
res: 4

FAIL: libffi.call/cls_longdouble_va.c -O0 -W -Wall output pattern test, is 7.0
res: 4
0.0
res: 4
, should match 7.0?
res: 4?
7.0?
res: 4

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to