gcc: add GCC 4.7.2
[openwrt/staging/chunkeey.git] / toolchain / gcc / patches / 4.7.2 / 810-arm-softfloat-libgcc.patch
1 --- a/gcc/config/arm/linux-elf.h
2 +++ b/gcc/config/arm/linux-elf.h
3 @@ -57,7 +57,7 @@
4 %{shared:-lc} \
5 %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
6
7 -#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
8 +#define LIBGCC_SPEC "-lgcc"
9
10 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
11
12 --- a/libgcc/config/arm/t-linux
13 +++ b/libgcc/config/arm/t-linux
14 @@ -1,6 +1,10 @@
15 LIB1ASMSRC = arm/lib1funcs.S
16 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
17 - _arm_addsubdf3 _arm_addsubsf3
18 + _arm_addsubdf3 _arm_addsubsf3 \
19 + _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
20 + _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
21 + _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
22 + _arm_fixsfsi _arm_fixunssfsi
23
24 # Just for these, we omit the frame pointer since it makes such a big
25 # difference.