llvm-project/clang/lib
Dylan Noblesmith 673728fe57 Preprocessor: add __BYTE_ORDER__ predefined macro
The __BYTE_ORDER__ predefined macro was added in GCC 4.6:
http://gcc.gnu.org/onlinedocs/gcc-4.6.0/cpp/Common-Predefined-Macros.html

It's used like the following:

 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 ...
 #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 ...
 #else
 #error insane architecture like the pdp-11
 #endif

There's a similar macro, __FLOAT_WORD_ORDER__, but it looks like it
mainly exist to accommodate fairly obscure architectures and ARM's
old FPA instructions, so it doesn't seem nearly as useful.

The tests are updated to check for the correct(at least, based on
clang's current output) value of the macro on each target. So now the
suite will catch bugs like the one fixed in r157626.

llvm-svn: 160879
2012-07-27 18:34:31 +00:00
..
ARCMigrate clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
AST clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
ASTMatchers Move RefactoringCallbacks to Tooling to avoid dependency from 2012-07-17 08:03:01 +00:00
Analysis clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Basic clang/lib: [CMake] Reformat, alphabetize lists. 2012-07-27 06:18:12 +00:00
CodeGen clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Driver clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Edit clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Frontend Preprocessor: add __BYTE_ORDER__ predefined macro 2012-07-27 18:34:31 +00:00
FrontendTool clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Headers Add _rdrand{16,32,64}_step intrinsics to immintrin.h 2012-07-12 09:33:03 +00:00
Lex clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Parse Fix an assertion failure when code completing an auto variable's initialiser. 2012-07-27 12:56:09 +00:00
Rewrite clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Sema Fix PR13394: Erasing from a vector changes the end of the vector, so make sure we always have the right end. 2012-07-27 10:21:08 +00:00
Serialization clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
StaticAnalyzer clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
Tooling clang/lib: [CMake] Update tblgen'd dependencies. 2012-07-27 06:18:33 +00:00
CMakeLists.txt Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00
Makefile Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00