]> granicus.if.org Git - clang/commit
Begin fixing Clang's predefined macros for various architectures. This
authorChandler Carruth <chandlerc@gmail.com>
Wed, 28 Sep 2011 02:59:25 +0000 (02:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 28 Sep 2011 02:59:25 +0000 (02:59 +0000)
commitf6cf1c28fbdeafee3cee95423a6a76be7278867e
tree3b0f8c85bb43e10a3df6562c6b6f485a068872c6
parentc8680f46970a5a53d07e05edd93657e64764da3c
Begin fixing Clang's predefined macros for various architectures. This
is *very* much a WIP that I'll be refining over the next several
commits, but I need to get this checkpoint in place for sanity.

This also adds a much more comprehensive test for architecture macros,
which is roughly generated by inspecting the behavior of a trunk build
of GCC. It still requires some massaging, but eventually I'll even check
in the script that generates these so that others can use it to append
more tests for more architectures, etc.

Next up is a bunch of simplification of the Targets.cpp code, followed
by a lot more test cases once we can reject invalid architectures.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140673 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/init.c
test/Preprocessor/predefined-arch-macros.c [new file with mode: 0644]