[toolchain]: replace gcc 4.5.2 support with 4.6.1
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 4.6.1 / 810-arm-softfloat-libgcc.patch
1 --- a/gcc/config/arm/linux-elf.h
2 +++ b/gcc/config/arm/linux-elf.h
3 @@ -60,7 +60,7 @@
4 %{shared:-lc} \
5 %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
6
7 -#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
8 +#define LIBGCC_SPEC "-lgcc"
9
10 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
11
12 --- a/gcc/config/arm/t-linux
13 +++ b/gcc/config/arm/t-linux
14 @@ -23,7 +23,11 @@ TARGET_LIBGCC2_CFLAGS = -fomit-frame-poi
15
16 LIB1ASMSRC = arm/lib1funcs.asm
17 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
18 - _arm_addsubdf3 _arm_addsubsf3
19 + _arm_addsubdf3 _arm_addsubsf3 \
20 + _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
21 + _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
22 + _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
23 + _arm_fixsfsi _arm_fixunssfsi
24
25 # MULTILIB_OPTIONS = mhard-float/msoft-float
26 # MULTILIB_DIRNAMES = hard-float soft-float