https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90146

            Bug ID: 90146
           Summary: Add support for NetBSD
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libffi
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

https://github.com/NetBSD/pkgsrc/blob/342fd468170ed3d1902196089f8b920e333b750e/lang/gcc8/patches/patch-libffi_configure

$NetBSD: patch-libffi_configure,v 1.1 2018/05/05 04:08:36 maya Exp $

--- libffi/configure.orig       2013-06-01 17:03:49.000000000 +0000
+++ libffi/configure
@@ -12689,7 +12689,7 @@ case "$target" in
 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h

      ;;
-     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* |
*-pc-solaris*)
+     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-netbsd* |
*-*-openbsd* | *-pc-solaris*)

 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h


https://github.com/NetBSD/pkgsrc/blob/342fd468170ed3d1902196089f8b920e333b750e/lang/gcc8/patches/patch-libffi_testsuite_libffi.call_float2.c

$NetBSD: patch-libffi_testsuite_libffi.call_float2.c,v 1.1 2018/05/05 04:08:36
maya 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 */

Reply via email to