llvm-project/clang/test
Erich Keane bb322555af 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
2017-12-11 17:36:42 +00:00
..
ARCMT
ASTMerge [ASTImporter] Support new AST nodes: 2017-11-21 16:08:41 +00:00
Analysis [analyzer] do not crash on cases where an array subscript is an rvalue 2017-12-05 21:19:59 +00:00
CXX Remove old concepts parsing code 2017-12-07 00:34:20 +00:00
CodeCompletion Workaround reverse-iteration buildbot breakages. Filed PR35244. 2017-11-08 13:05:52 +00:00
CodeGen Hardware-assisted AddressSanitizer (clang part). 2017-12-09 01:32:07 +00:00
CodeGenCUDA
CodeGenCXX Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
CodeGenCoroutines [coroutines] Promote cleanup.dest.slot allocas to registers to avoid storing it in the coroutine frame 2017-11-11 17:00:43 +00:00
CodeGenObjC [Blocks] Inherit sanitizer options from parent decl 2017-12-08 02:47:58 +00:00
CodeGenObjCXX Fix off-by-one error in block mangling. 2017-09-07 05:41:24 +00:00
CodeGenOpenCL CodeGen: Fix invalid bitcasts for memcpy 2017-12-07 01:39:52 +00:00
Coverage [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
CoverageMapping [Coverage] Emit gap areas in braces-optional statements (PR35387) 2017-11-29 22:25:14 +00:00
Driver For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available 2017-12-11 17:36:42 +00:00
FixIt Add a "vexing parse" warning for ambiguity between a variable declaration and a 2017-09-29 23:57:25 +00:00
Format [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Frontend Fix the second part of the broken comment from r306079 2017-12-01 19:59:45 +00:00
Headers In stdbool.h, define bool, false, true only in gnu++98 2017-12-08 08:28:08 +00:00
Import Add support for remembering origins to ExternalASTMerger 2017-09-27 19:57:58 +00:00
Index For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available 2017-12-11 17:36:42 +00:00
Integration Fix the test fix from r312181 2017-08-30 23:26:38 +00:00
Layout
Lexer Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
Misc Determine the attribute subject for diagnostics based on declarative information in DeclNodes.td. This greatly reduces the number of enumerated values used for more complex diagnostics; these are now only required when the "attribute only applies to" diagnostic needs to be generated manually as part of semantic processing. 2017-11-26 20:01:12 +00:00
Modules Revert r320230 to fix buildbots. 2017-12-09 03:02:21 +00:00
OpenMP Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
PCH Correctly handle line table entries without filenames during AST serialization 2017-12-04 22:28:45 +00:00
Parser Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
Preprocessor For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available 2017-12-11 17:36:42 +00:00
Profile [PGO] Detect more structural changes with the stable hash 2017-11-14 23:56:53 +00:00
Refactor [refactor][extract] avoid extracting expressions from types in functions 2017-11-14 18:59:01 +00:00
Rewriter [clang] Remove unit test which uses reverse-iterate flag 2017-08-24 22:40:32 +00:00
Sema Unify implementation of our two different flavours of -Wtautological-compare, 2017-12-08 22:57:11 +00:00
SemaCUDA [CUDA] Report "unsupported VLA" errors only on device side. 2017-11-28 18:51:42 +00:00
SemaCXX Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
SemaObjC Determine the attribute subject for diagnostics based on declarative information in DeclNodes.td. This greatly reduces the number of enumerated values used for more complex diagnostics; these are now only required when the "attribute only applies to" diagnostic needs to be generated manually as part of semantic processing. 2017-11-26 20:01:12 +00:00
SemaObjCXX [ObjC++] Don't warn about pessimizing move for __block variables 2017-11-07 21:40:11 +00:00
SemaOpenCL [OpenCL] Add extensions cl_intel_subgroups and cl_intel_subgroups_short 2017-11-27 09:14:17 +00:00
SemaTemplate Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
TableGen
Tooling [tooling] Make compile_flags.txt negative test more hermetic 2017-11-14 15:22:34 +00:00
Unit [lit] Set shlibpath_var on Solaris 2017-11-27 13:33:19 +00:00
VFS
clang-rename [clang-rename] Fix and enable the failing TemplatedClassFunction test. 2017-10-25 08:25:25 +00:00
.clang-format
CMakeLists.txt Re-revert "Refactor debuginfo-tests." 2017-11-21 01:20:28 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Re-revert "Refactor debuginfo-tests." 2017-11-21 01:20:28 +00:00
lit.site.cfg.py.in [lit] Add host_cxx to lit config 2017-10-10 17:53:45 +00:00
make_test_dirs.pl