[cfe-commits] r161494 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Dylan Noblesmith
nobled at dreamwidth.org
Wed Aug 8 09:09:12 PDT 2012
Author: nobled
Date: Wed Aug 8 11:09:12 2012
New Revision: 161494
URL: http://llvm.org/viewvc/llvm-project?rev=161494&view=rev
Log:
Frontend: further document __BYTE_ORDER__
Modified:
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=161494&r1=161493&r2=161494&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Wed Aug 8 11:09:12 2012
@@ -445,7 +445,9 @@
// Initialize target-specific preprocessor defines.
- // __BYTE_ORDER__ was added in GCC 4.6.
+ // __BYTE_ORDER__ was added in GCC 4.6. It's analogous
+ // to the macro __BYTE_ORDER (no trailing underscores)
+ // from glibc's <endian.h> header.
// We don't support the PDP-11 as a target, but include
// the define so it can still be compared against.
Builder.defineMacro("__ORDER_LITTLE_ENDIAN__", "1234");
More information about the cfe-commits
mailing list