$NetBSD: patch-ag,v 1.2 2016/01/25 17:56:39 jperkin Exp $ The %Lf printf format expects "long double", so cast args accordingly. --- testsuite/libffi.call/float2.c.orig 2014-11-08 12:47:24.000000000 +0000 +++ testsuite/libffi.call/float2.c @@ -45,7 +45,7 @@ int main (void) /* This is ifdef'd out for now. long double support under SunOS/gcc is pretty much non-existent. You'll get the odd bus error in library routines like printf(). */ - printf ("%Lf, %Lf, %Lf, %Lf\n", ld, ldblit(f), ld - ldblit(f), LDBL_EPSILON); + printf ("%Lf, %Lf, %Lf, %Lf\n", (long double)ld, (long double)ldblit(f), (long double)(ld - ldblit(f)), (long double)LDBL_EPSILON); #endif /* These are not always the same!! Check for a reasonable delta */