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 4d53b53e433fca6ba1de898a1808140974ec6dc1..dec331c958c21d71643adc1bce205ca5e0f10035 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)