diff options
| author | Kostya Serebryany <kcc@google.com> | 2017-07-13 21:59:01 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2017-07-13 21:59:01 +0000 |
| commit | c56d444b75b1d45c96df61162e5604a11f4ca0f0 (patch) | |
| tree | 4340d202dc29ad52198d073b648853124308b1a2 /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | |
| parent | d529467afbfdd646510155569eef0ab0172d1435 (diff) | |
| download | bcm5719-llvm-c56d444b75b1d45c96df61162e5604a11f4ca0f0.tar.gz bcm5719-llvm-c56d444b75b1d45c96df61162e5604a11f4ca0f0.zip | |
Fix sanitizer build against latest glibc
Summary:
libsanitizer doesn't build against latest glibc anymore, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81066 for details.
One of the changes is that stack_t changed from typedef struct sigaltstack { ... } stack_t; to typedef struct { ... } stack_t; for conformance reasons.
And the other change is that the glibc internal __need_res_state macro is now ignored, so when doing
```
#define __need_res_state
#include <resolv.h>
```
the effect is now the same as just
```
#include <resolv.h>
```
and thus one doesn't get just the
```
struct __res_state { ... };
```
definition, but newly also the
```
extern struct __res_state *__res_state(void) __attribute__ ((__const__));
```
prototype. So __res_state is no longer a type, but a function.
Reviewers: kcc, ygribov
Reviewed By: kcc
Subscribers: kubamracek
Differential Revision: https://reviews.llvm.org/D35246
llvm-svn: 307969
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
0 files changed, 0 insertions, 0 deletions

