Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2020 16:12:13 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r363963 - projects/clang1100-import/contrib/llvm-project/compiler-rt/lib/builtins
Message-ID:  <202008061612.076GCDnF047138@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Aug  6 16:12:13 2020
New Revision: 363963
URL: https://svnweb.freebsd.org/changeset/base/363963

Log:
  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.

Modified:
  projects/clang1100-import/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h

Modified: projects/clang1100-import/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h
==============================================================================
--- projects/clang1100-import/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h	Thu Aug  6 16:11:30 2020	(r363962)
+++ projects/clang1100-import/contrib/llvm-project/compiler-rt/lib/builtins/int_types.h	Thu Aug  6 16:12:13 2020	(r363963)
@@ -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;
@@ -182,5 +185,6 @@ typedef struct {
 
 #define COMPLEX_REAL(x) (x).real
 #define COMPLEX_IMAGINARY(x) (x).imaginary
+#endif
 #endif
 #endif // INT_TYPES_H



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008061612.076GCDnF047138>