$ mips-linux-gcc -EL -dM -E -C -x c /dev/null | grep MIPSE #define MIPSEB 1 #define __MIPSEB__ 1 #define _MIPSEB 1 #define __MIPSEB 1 $ mipsel-linux-gcc -EB -dM -E -C -x c /dev/null | grep MIPSE #define __MIPSEL__ 1 #define MIPSEL 1 #define _MIPSEL 1 #define __MIPSEL 1 $ mips64el-linux-gcc -EB -dM -E -C -x c /dev/null | grep MIPSE #define __MIPSEL__ 1 #define MIPSEL 1 #define _MIPSEL 1 #define __MIPSEL 1 $ mips64-linux-gcc -EL -dM -E -C -x c /dev/null | grep MIPSE #define MIPSEB 1 #define __MIPSEB__ 1 #define _MIPSEB 1 #define __MIPSEB 1 $
Tested with gcc 4.1.0 but given the (incomplete) hacks the Linux/MIPS kernel has for this I would assume it is broken since a very, very long time. -- Summary: -EB / -EL don't properly affect gcc predefined symbols Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ralf at linux-mips dot org GCC target triplet: mips*-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413