summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/crash-report-header.h
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-12-11 17:36:42 +0000
committerErich Keane <erich.keane@intel.com>2017-12-11 17:36:42 +0000
commitbb322555afb4fb135abc48fbb3383b7216557995 (patch)
tree782f5e3b1f233605be86108c24fa62f3b624261e /clang/test/Driver/crash-report-header.h
parent63fcc5cccc8aa124858a9a79e275bdc5955bf5c0 (diff)
downloadbcm5719-llvm-bb322555afb4fb135abc48fbb3383b7216557995.tar.gz
bcm5719-llvm-bb322555afb4fb135abc48fbb3383b7216557995.zip
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 llvm-svn: 320391
Diffstat (limited to 'clang/test/Driver/crash-report-header.h')
-rw-r--r--clang/test/Driver/crash-report-header.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Driver/crash-report-header.h b/clang/test/Driver/crash-report-header.h
index e0193cbe45e..97dcdf9348b 100644
--- a/clang/test/Driver/crash-report-header.h
+++ b/clang/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
OpenPOWER on IntegriCloud