[Linux] Hack around Linux/sparc <bits/stdio-ldbl.h>
authorRainer Orth <ro@gcc.gnu.org>
Sat, 10 Sep 2022 07:37:35 +0000 (09:37 +0200)
committerRainer Orth <ro@gcc.gnu.org>
Sat, 10 Sep 2022 07:37:35 +0000 (09:37 +0200)
commit1e56821bac02a5d3c6249bbf3ef43b8b569d2551
treea63f50cb53d5f9270bfe830c8311732fc890f82c
parente57ded44d4990947193c20340fc09ba71eb55840
[Linux] Hack around Linux/sparc <bits/stdio-ldbl.h>

I've been using this hack to work around the Linux/sparc64 compile failure
described in Issue #47994
<https://github.com/llvm/llvm-project/issues/47994>, especially since the
underlying glibc PR build/27558
<https://sourceware.org/bugzilla/show_bug.cgi?id=27558> doesn't seem to be
making progress and some fix is required to have LLVM build on
`sparc64-unknown-linux-gnu` at all, as evidenced on the buildbot.

Tested on `sparc64-unknown-linux-gnu`.

Differential Revision: https://reviews.llvm.org/D133405
clang/lib/Basic/Targets/OSTargets.h
clang/test/Preprocessor/init.c