summaryrefslogtreecommitdiff
path: root/contrib/llvm-project
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-08-06 16:12:13 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-08-06 16:12:13 +0000
commit8630bfad40a427d0ab21d9f051c876480ad15dc2 (patch)
treed0d9bd267beff336c81dcc958e0cf396231293bf /contrib/llvm-project
parent580012d60438215d86a9e6b2a8038de964867163 (diff)
downloadsrc-test-8630bfad40a427d0ab21d9f051c876480ad15dc2.tar.gz
src-test-8630bfad40a427d0ab21d9f051c876480ad15dc2.zip
Reapply r329859 (partially, by imp):
Do not include float interfaces when using libsa. We don't support float in the boot loaders, so don't include interfaces for float or double in systems headers. In addition, take the unusual step of spiking double and float to prevent any more accidental seepage.
Notes
Notes: svn path=/projects/clang1100-import/; revision=363963
Diffstat (limited to 'contrib/llvm-project')
-rw-r--r--contrib/llvm-project/compiler-rt/lib/builtins/int_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h b/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h
index 705355a4840d4..5a4fe97b9fb3f 100644
--- a/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h
+++ b/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h
@@ -121,6 +121,7 @@ static __inline tu_int make_tu(du_int h, du_int l) {
#endif // CRT_HAS_128BIT
+#ifndef _STANDALONE
typedef union {
su_int u;
float f;
@@ -130,6 +131,7 @@ typedef union {
udwords u;
double f;
} double_bits;
+#endif
typedef struct {
#if _YUGA_LITTLE_ENDIAN
@@ -155,6 +157,7 @@ typedef struct {
#define HAS_80_BIT_LONG_DOUBLE 0
#endif
+#ifndef _STANDALONE
typedef union {
uqwords u;
long double f;
@@ -183,4 +186,5 @@ typedef struct {
#define COMPLEX_REAL(x) (x).real
#define COMPLEX_IMAGINARY(x) (x).imaginary
#endif
+#endif
#endif // INT_TYPES_H