[PATCH 1/2] ARM: fixed compiler flags for EABI
Enrico Scholz <[email protected]> Sat, 8 Jan 2011 14:23:18 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <1294492999-30959-1-git-send-email-enrico.scholz@informatik.tu-chemnitz.de> |
Do not set '-mfloat-abi=soft' or '-meabi=4' options when '-Os' was specified. The '-mfloat-abi' switch can make dietlibc and programs binary incompatible when they are compiled with different '-O' options. 'soft' seems to be a bad choice too because EABI uses usually the 'softfp' floating point abi. The '-meabi=4' switch is unknown to recent gccs and breaks compilation. Both options are unrelated to space optimizations and are removed by the patch hence. Signed-off-by: Enrico Scholz <[email protected]> --- diet.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/diet.c b/diet.c index e7fd3e8..22e3696 100644 --- a/diet.c +++ b/diet.c @@ -32,11 +32,7 @@ static const char* Os[] = { "sparc","-Os","-mcpu=supersparc",0, "sparc64","-Os","-m64","-mhard-quad-float",0, "alpha","-Os","-fomit-frame-pointer",0, -#ifdef __ARM_EABI__ - "arm","-Os","-fomit-frame-pointer","-mfloat-abi=soft","-meabi=4",0, -#else "arm","-Os","-fomit-frame-pointer",0, -#endif "mips","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0, "mipsel","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0, "ppc","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0, -- 1.7.3.4