From 560bfb377b79eef356f08558e0a13b73e09e3fc7 Mon Sep 17 00:00:00 2001 From: Adam Conrad Date: Sat, 16 Sep 2023 10:12:43 +0100 Subject: [PATCH] Turn off HAVE_FLOAT128 for CUDACC and ICC compilers. Bug-Ubuntu: https://bugs.launchpad.net/bugs/1717257 Forwarded: no Last-Update: 2017-10-11 Gbp-Pq: Topic any Gbp-Pq: Name local-cudacc-float128.diff --- sysdeps/powerpc/bits/floatn.h | 2 +- sysdeps/x86/bits/floatn.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sysdeps/powerpc/bits/floatn.h b/sysdeps/powerpc/bits/floatn.h index b1175363c..5442022bd 100644 --- a/sysdeps/powerpc/bits/floatn.h +++ b/sysdeps/powerpc/bits/floatn.h @@ -26,7 +26,7 @@ floating-point type with the IEEE 754 binary128 format, and this glibc includes corresponding *f128 interfaces for it. */ #if defined _ARCH_PWR8 && defined __LITTLE_ENDIAN__ && (_CALL_ELF == 2) \ - && defined __FLOAT128__ && !defined __NO_LONG_DOUBLE_MATH + && defined __FLOAT128__ && !defined __NO_LONG_DOUBLE_MATH && !defined(__CUDACC__) && !defined(__ICC) # define __HAVE_FLOAT128 1 #else # define __HAVE_FLOAT128 0 diff --git a/sysdeps/x86/bits/floatn.h b/sysdeps/x86/bits/floatn.h index f7f3d0566..8b5cc784d 100644 --- a/sysdeps/x86/bits/floatn.h +++ b/sysdeps/x86/bits/floatn.h @@ -28,7 +28,8 @@ support, for x86_64 and x86. */ #if (defined __x86_64__ \ ? __GNUC_PREREQ (4, 3) \ - : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) + : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \ + && !defined(__CUDACC__) && !defined(__ICC) # define __HAVE_FLOAT128 1 #else # define __HAVE_FLOAT128 0 -- 2.30.2