diff options
author | Anthony Green <green@moxielogic.com> | 2014-02-28 00:50:25 -0500 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2014-02-28 00:50:25 -0500 |
commit | edf29c5169b06fcfc241445e152e325bc3c50e0e (patch) | |
tree | b8fb61e570cd1458e9f4ed6e24827c4f52638bb2 /src | |
parent | 33c9954f2eec539011a0f93270aaf013318837ae (diff) | |
parent | 3998d2604b5c0d45a098ff3119a9fd9710ef429d (diff) | |
download | libffi-edf29c5169b06fcfc241445e152e325bc3c50e0e.tar.gz |
Merge pull request #75 from joshtriplett/longdouble
Fix build error on x86 without distinct long double
Diffstat (limited to 'src')
-rw-r--r-- | src/x86/ffi64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x86/ffi64.c b/src/x86/ffi64.c index fd31424..5a5e043 100644 --- a/src/x86/ffi64.c +++ b/src/x86/ffi64.c @@ -203,10 +203,12 @@ classify_argument (ffi_type *type, enum x86_64_reg_class classes[], case FFI_TYPE_DOUBLE: classes[0] = X86_64_SSEDF_CLASS; return 1; +#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE case FFI_TYPE_LONGDOUBLE: classes[0] = X86_64_X87_CLASS; classes[1] = X86_64_X87UP_CLASS; return 2; +#endif case FFI_TYPE_STRUCT: { const size_t UNITS_PER_WORD = 8; |