diff options
author | Erich Keane <erich.keane@intel.com> | 2017-12-11 17:36:42 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2017-12-11 17:36:42 +0000 |
commit | 20a630420df42944fa7676747f31973bf2021783 (patch) | |
tree | 31ad66545e599117e0983a26f5b4f9d83a4e6f84 /test/Driver/crash-report-header.h | |
parent | f1094b8cc1ca05380b4fad618b7dcfdb113995e8 (diff) | |
download | clang-20a630420df42944fa7676747f31973bf2021783.tar.gz |
For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available
As reported in llvm bugzilla 32377.
Here’s a patch to add preinclude of stdc-predef.h.
The gcc documentation says “On GNU/Linux, <stdc-predef.h> is pre-included.” See https://gcc.gnu.org/gcc-4.8/porting_to.html;
The preinclude is inhibited with –ffreestanding.
Basically I fixed the failing test cases by adding –ffreestanding which inhibits this behavior.
I fixed all the failing tests, including some in extra/test, there's a separate patch for that which is linked here
Note: this is a recommit after a test failure took down the original (r318669)
Patch By: mibintc
Differential Revision: https://reviews.llvm.org/D34158
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/crash-report-header.h')
-rw-r--r-- | test/Driver/crash-report-header.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Driver/crash-report-header.h b/test/Driver/crash-report-header.h index e0193cbe45..97dcdf9348 100644 --- a/test/Driver/crash-report-header.h +++ b/test/Driver/crash-report-header.h @@ -1,6 +1,6 @@ // RUN: rm -rf %t // RUN: mkdir %t -// RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s 2>&1 | FileCheck %s +// RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -ffreestanding -fsyntax-only %s 2>&1 | FileCheck %s // RUN: cat %t/crash-report-header-*.h | FileCheck --check-prefix=CHECKSRC "%s" // RUN: cat %t/crash-report-header-*.sh | FileCheck --check-prefix=CHECKSH "%s" // REQUIRES: crash-recovery |