[compiler-rt] 10b1d30 - [gcov] Delete FreeBSD<10 (reached end of life for years) workaround

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 15:10:19 PST 2021


Author: Fangrui Song
Date: 2021-03-12T15:07:58-08:00
New Revision: 10b1d30ec0331131b3585e981493da02836bfa92

URL: https://github.com/llvm/llvm-project/commit/10b1d30ec0331131b3585e981493da02836bfa92
DIFF: https://github.com/llvm/llvm-project/commit/10b1d30ec0331131b3585e981493da02836bfa92.diff

LOG: [gcov] Delete FreeBSD<10 (reached end of life for years) workaround

Added: 
    

Modified: 
    compiler-rt/lib/profile/GCDAProfiling.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c
index 4293e8f7b5bf..a7f6f3ff54e1 100644
--- a/compiler-rt/lib/profile/GCDAProfiling.c
+++ b/compiler-rt/lib/profile/GCDAProfiling.c
@@ -38,13 +38,7 @@
 #include <unistd.h>
 #endif
 
-#if defined(__FreeBSD__) && defined(__i386__)
-#define I386_FREEBSD 1
-#else
-#define I386_FREEBSD 0
-#endif
-
-#if !defined(_MSC_VER) && !I386_FREEBSD
+#if !defined(_MSC_VER)
 #include <stdint.h>
 #endif
 
@@ -52,13 +46,6 @@
 typedef unsigned char uint8_t;
 typedef unsigned int uint32_t;
 typedef unsigned long long uint64_t;
-#elif I386_FREEBSD
-/* System headers define 'size_t' incorrectly on x64 FreeBSD (prior to
- * FreeBSD 10, r232261) when compiled in 32-bit mode.
- */
-typedef unsigned char uint8_t;
-typedef unsigned int uint32_t;
-typedef unsigned long long uint64_t;
 #endif
 
 #include "InstrProfiling.h"


        


More information about the llvm-commits mailing list