mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-12 19:04:54 +03:00
x86 (__HAVE_FLOAT128): Defined to 0 for Intel SYCL compiler [BZ #32723]
Intel compiler always defines __INTEL_LLVM_COMPILER. When SYCL is enabled by -fsycl, it also defines SYCL_LANGUAGE_VERSION. Since Intel SYCL compiler doesn't support _Float128: https://github.com/intel/llvm/issues/16903 define __HAVE_FLOAT128 to 0 for Intel SYCL compiler. This fixes BZ #32723. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -25,11 +25,15 @@
|
|||||||
floating-point type with the IEEE 754 binary128 format, and this
|
floating-point type with the IEEE 754 binary128 format, and this
|
||||||
glibc includes corresponding *f128 interfaces for it. The required
|
glibc includes corresponding *f128 interfaces for it. The required
|
||||||
libgcc support was added some time after the basic compiler
|
libgcc support was added some time after the basic compiler
|
||||||
support, for x86_64 and x86. */
|
support, for x86_64 and x86. Intel SYCL compiler doesn't support
|
||||||
|
_Float128: https://github.com/intel/llvm/issues/16903
|
||||||
|
*/
|
||||||
#if (defined __x86_64__ \
|
#if (defined __x86_64__ \
|
||||||
? __GNUC_PREREQ (4, 3) \
|
? __GNUC_PREREQ (4, 3) \
|
||||||
: (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \
|
: (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \
|
||||||
|| __glibc_clang_prereq (3, 4)
|
|| (__glibc_clang_prereq (3, 4) \
|
||||||
|
&& (!defined __INTEL_LLVM_COMPILER \
|
||||||
|
|| !defined SYCL_LANGUAGE_VERSION))
|
||||||
# define __HAVE_FLOAT128 1
|
# define __HAVE_FLOAT128 1
|
||||||
#else
|
#else
|
||||||
# define __HAVE_FLOAT128 0
|
# define __HAVE_FLOAT128 0
|
||||||
|
Reference in New Issue
Block a user