[all-commits] [llvm/llvm-project] 70fce9: [sanitizer_common] Remove <procfs.h> workaround on...

Rainer Orth via All-commits all-commits at lists.llvm.org
Wed Jun 4 23:34:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70fce9202709f36f28a991aa0523f6c8e78b2028
      https://github.com/llvm/llvm-project/commit/70fce9202709f36f28a991aa0523f6c8e78b2028
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2025-06-05 (Thu, 05 Jun 2025)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp

  Log Message:
  -----------
  [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`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list