diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2024-01-05 10:22:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 10:22:10 -0500 |
commit | 922b7b8bf465ddc292fa91bd6a860510a1eea6e2 (patch) | |
tree | 9591c95baaa546331d79ab27edb847f55e7859ec /llvm/lib/Object/ObjectFile.cpp | |
parent | fc18b13492880ba8597333c6050a18ec6db0f831 (diff) | |
download | llvm-922b7b8bf465ddc292fa91bd6a860510a1eea6e2.zip llvm-922b7b8bf465ddc292fa91bd6a860510a1eea6e2.tar.gz llvm-922b7b8bf465ddc292fa91bd6a860510a1eea6e2.tar.bz2 |
[Clang][OpenMP] Fix stdio.h wrapper when glibc includes again (#77017)
Since D154036 landed (2a65d0388ca0 on July 7, 2023), I've been seeing
many (40-50) libomptarget test failures with errors like the following
on some of our test systems:
```
/auto/software/gcc/x86_64/gcc-11.1.0/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/cstdio:99:11: error: no member named 'fpos_t' in the global namespace
99 | using ::fpos_t;
| ~~^
```
This patch fixes that and doesn't break our other test sytems. I've
looked through the glibc history and at LLVM's libc stdio.h to give me
confidence that this solution should work on other systems. Of course,
there might be use cases I've overlooked, so feedback is appreciated.
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions