diff options
author | das <das@FreeBSD.org> | 2004-07-16 06:21:56 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-07-16 06:21:56 +0000 |
commit | a5d1cface5348b28a9ad6a9f5817ccf9c670977d (patch) | |
tree | a80f79cace8d3b21752745f733636032719624ce /lib/msun/src | |
parent | 8d7b06e962e09616053a76adecccae3bb9954190 (diff) | |
download | FreeBSD-src-a5d1cface5348b28a9ad6a9f5817ccf9c670977d.zip FreeBSD-src-a5d1cface5348b28a9ad6a9f5817ccf9c670977d.tar.gz |
Tweak the conditions under which certain gcc builtins are used:
- Unlike the builtin relational operators, builtin floating-point
constants were not available until gcc 3.3, so account for this.[1]
- Apparently some versions of the Intel C Compiler fallaciously define
__GNUC__ without actually being compatible with the claimed gcc
version. Account for this, too.[2]
[1] Noticed by: Christian Hiris <4711@chello.at>
[2] Submitted by: Alexander Leidinger <Alexander@Leidinger.net>
Diffstat (limited to 'lib/msun/src')
-rw-r--r-- | lib/msun/src/math.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 92dfd23..82c8559 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -34,11 +34,11 @@ extern const union __nan_un { float __uf; } __nan; -#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__INTEL_COMPILER) +#if (defined(__GNUC__) && ((__GNUC__ >= 3 && __GNUC_MINOR__ >= 3) || __GNUC__ >= 4)) || defined(__INTEL_COMPILER) #define __MATH_BUILTIN_CONSTANTS #endif -#if (defined(__GNUC__) && __GNUC__ >= 3) +#if (defined(__GNUC__) && __GNUC__ >= 3 && !defined(__INTEL_COMPILER)) #define __MATH_BUILTIN_RELOPS #endif |