Turn off HAVE_FLOAT128 for CUDACC and ICC compilers.
authorAdam Conrad <adconrad@0c3.net>
Sat, 1 May 2021 20:56:06 +0000 (21:56 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 1 May 2021 20:56:06 +0000 (21:56 +0100)
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
sysdeps/x86/bits/floatn.h

index 8424b56b29039dc7d52d949efd627ef6b31d64e5..25d4413083d4e18ea01258d3b986578ef6f62126 100644 (file)
@@ -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
index 8c7a1f4c2965ed56a4a5c9321231dd6615f64983..b4dbe96be1e0bcca65c1737ca5a96afed1eece60 100644 (file)
@@ -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