[sanitizer_common] Define wordexp_wrde_dooffs for Solaris
authorRainer Orth <ro@gcc.gnu.org>
Fri, 3 Sep 2021 08:02:31 +0000 (10:02 +0200)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 3 Sep 2021 08:02:31 +0000 (10:02 +0200)
commit79d58b4d3017d159bf09a77398c9a116128de193
treed5371f0af03adc1adbd30bdaf4027d4906fb2dc5
parentdc5dd77ac70089067236cf8071add95f153d5eba
[sanitizer_common] Define wordexp_wrde_dooffs for Solaris

The Solaris buildbots have been broken for some time:

  In file included from /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/llvm/compiler-rt/lib/asan/asan_interceptors.cpp:174:
  /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/llvm/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:4000:19: error: use of undeclared identifier 'wordexp_wrde_dooffs'
          ((flags & wordexp_wrde_dooffs) ? p->we_offs : 0) + p->we_wordc;
                    ^

This was caused by D108646 <https://reviews.llvm.org/D108646>; the fix is
equivalent to D108838 <https://reviews.llvm.org/D108838>.

Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D109193
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.h