Skip to content

Commit 70fce92

Browse files
authored
[sanitizer_common] Remove <procfs.h> workaround on Solaris (#142758)
`sanitizer_procmaps_solaris.cpp` currently uses `#undef _FILE_OFFSET_BITS` to hack around the fact that old versions of Solaris `<procfs.h>` don't work in a largefile environment: ``` /usr/include/sys/procfs.h:42:2: error: #error "Cannot use procfs in the large file compilation environment" 42 | #error "Cannot use procfs in the large file compilation environment" | ^~~~~ ``` However, this is no longer an issue on either Solaris 11.4 or Illumos. The workaround only existed for the benefit of Solaris 11.3. While that had never been supported by LLVM, the sanitizer runtime libs were imported into GCC's `libsanitzer`. With the removal of Solaris 11.3 support in GCC 15, this is no longer an issue and the workaround can be removed. Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.
1 parent 3172c61 commit 70fce92

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
// Information about the process mappings (Solaris-specific parts).
1010
//===----------------------------------------------------------------------===//
1111

12-
// Before Solaris 11.4, <procfs.h> doesn't work in a largefile environment.
13-
#undef _FILE_OFFSET_BITS
14-
1512
// Avoid conflict between `_TIME_BITS` defined vs. `_FILE_OFFSET_BITS`
1613
// undefined in some Linux configurations.
1714
#undef _TIME_BITS

0 commit comments

Comments
 (0)