__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ or does it?

2011-08-06 Thread Christopher Huang-Leaver
Hello, This isn't really a compiler bug, but it's something which the manual doesn't describe too well so I thought I would point this out. This page of the manual: http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html#Common-Predefined-Macros says this: " You should use these macros f

Re: __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ or does it?

2011-08-06 Thread Jie Zhang
On Sat, Aug 6, 2011 at 5:40 PM, Christopher Huang-Leaver wrote: > Output: > > small end first > big end first > > gcc -v > gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5) > I got the same result with g++-4.4 (4.4.6), g++-4.5 (4.5.3) on Debian testing. But with g++-4.6, I got small end first on

Re: __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ or does it?

2011-08-06 Thread Jonathan Wakely
On 6 August 2011 22:40, Christopher Huang-Leaver wrote: > Hello, > > This isn't really a compiler bug, but it's something which the manual > doesn't describe too well so I thought I would point this out. > > This page of the manual: > http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html#

Re: __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ or does it?

2011-08-06 Thread Jie Zhang
On Sat, Aug 6, 2011 at 9:35 PM, Jonathan Wakely wrote: > On 6 August 2011 22:40, Christopher Huang-Leaver wrote: >> Hello, >> >> This isn't really a compiler bug, but it's something which the manual >> doesn't describe too well so I thought I would point this out. >> >> This page of the manual: >>