[PATCH] D34158: to support gcc 4.8 (and newer) compatibility on Linux, preinclude <stdc-predef.h>
Melanie Blower via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 6 13:55:12 PDT 2017
mibintc updated this revision to Diff 105526.
mibintc added a comment.
I rewrote the patch the way that Richard suggested, adding a cc1 option "finclude-if-exists" and injecting #if __has_include etc. [OK to use finclude? include-if-exists preferred?]
I responded to James' remarks and removed the gcc version check.
Does this look better?
https://reviews.llvm.org/D34158
Files:
include/clang/Driver/CC1Options.td
include/clang/Lex/PreprocessorOptions.h
lib/Driver/ToolChains/Linux.cpp
lib/Driver/ToolChains/Linux.h
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
test/Driver/Inputs/stdc-predef/bin/.keep
test/Driver/Inputs/stdc-predef/usr/i386-unknown-linux/lib/.keep
test/Driver/Inputs/stdc-predef/usr/include/stdc-predef.h
test/Driver/Inputs/stdc-predef/usr/lib/.keep
test/Driver/Inputs/stdc-predef/usr/x86_64-unknown-linux/lib/.keep
test/Driver/clang_cpp.c
test/Driver/crash report spaces.c
test/Driver/crash-report-header.h
test/Driver/crash-report.c
test/Driver/gcc-predef-not.c
test/Driver/gcc-predef.c
test/Driver/rewrite-map-in-diagnostics.c
test/Index/IBOutletCollection.m
test/Index/annotate-macro-args.m
test/Index/annotate-tokens-pp.c
test/Index/annotate-tokens.c
test/Index/c-index-getCursor-test.m
test/Index/get-cursor-macro-args.m
test/Index/get-cursor.cpp
test/Preprocessor/ignore-pragmas.c
unittests/Tooling/TestVisitor.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34158.105526.patch
Type: text/x-patch
Size: 29556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170706/7c3aa757/attachment-0001.bin>
More information about the cfe-commits
mailing list