summaryrefslogtreecommitdiff
path: root/lang/gcc5/patches/patch-libffi_testsuite_libffi.call_float2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc5/patches/patch-libffi_testsuite_libffi.call_float2.c')
-rw-r--r--lang/gcc5/patches/patch-libffi_testsuite_libffi.call_float2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/gcc5/patches/patch-libffi_testsuite_libffi.call_float2.c b/lang/gcc5/patches/patch-libffi_testsuite_libffi.call_float2.c
new file mode 100644
index 00000000000..ca220f13c90
--- /dev/null
+++ b/lang/gcc5/patches/patch-libffi_testsuite_libffi.call_float2.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-libffi_testsuite_libffi.call_float2.c,v 1.1 2015/07/16 12:03:36 ryoon Exp $
+
+--- libffi/testsuite/libffi.call/float2.c.orig 2013-06-01 17:08:18.000000000 +0000
++++ libffi/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 */