Add long double test (#492)
authorzhanhb <6323014+zhanhb@users.noreply.github.com>
Wed, 9 Oct 2019 10:59:32 +0000 (18:59 +0800)
committerAnthony Green <green@moxielogic.com>
Wed, 9 Oct 2019 10:59:32 +0000 (06:59 -0400)
Required to fix build error on macos with gcc-9

src/x86/ffi64.c

index 4d53b53..dec331c 100644 (file)
@@ -451,9 +451,11 @@ ffi_prep_cif_machdep (ffi_cif *cif)
     case FFI_TYPE_DOUBLE:
       flags = UNIX64_RET_XMM64;
       break;
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
     case FFI_TYPE_LONGDOUBLE:
       flags = UNIX64_RET_X87;
       break;
+#endif
     case FFI_TYPE_STRUCT:
       n = examine_argument (cif->rtype, classes, 1, &ngpr, &nsse);
       if (n == 0)