mips is predefined by gcc, but we want it for paths. Don't let others fall into this trap again. Use __mips instead

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27872 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-08-24 13:41:45 +00:00
parent 1aeb79dc3a
commit 3478bc5d6d
5 changed files with 2 additions and 6 deletions

View File

@ -538,7 +538,6 @@ target/arm/crt0.S
#endif /* SIMULATOR */
#elif defined(CPU_MIPS)
#undef mips
common/memset16.c
target/mips/ffs-mips.S
target/mips/memcpy-mips.S

View File

@ -1,5 +1,4 @@
#include "config.h"
#undef mips
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(MIPS)

View File

@ -1,5 +1,4 @@
#include "config.h"
#undef mips
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(MIPS)

View File

@ -13,8 +13,6 @@ sh/setjmp.S
#endif
#ifdef CPU_MIPS
/* Strangely something seems to do '#define mips 1' */
#undef mips
mips/setjmp.S
#endif

3
tools/configure vendored
View File

@ -442,7 +442,8 @@ arm1176jzscc () {
mipselcc () {
prefixtools mipsel-elf-
GCCOPTS="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls"
# mips is predefined, but we want it for paths. use __mips instead
GCCOPTS="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls -Umips"
GCCOPTS="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
GCCOPTIMIZE="-fomit-frame-pointer"
endian="little"