[toolchain] add support for gcc v4.3.1 & v4.3.2 (closes: #3479), thanks to Luigi...
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 4.3.2 / 810-arm-softfloat-libgcc.patch
1 Index: gcc-4.3.0/gcc/config/arm/t-linux
2 ===================================================================
3 --- gcc-4.3.0/gcc/config/arm/t-linux (revision 129896)
4 +++ gcc-4.3.0/gcc/config/arm/t-linux (working copy)
5 @@ -3,7 +3,10 @@
6 TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC
7
8 LIB1ASMSRC = arm/lib1funcs.asm
9 -LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
10 +LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
11 + _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
12 + _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
13 + _fixsfsi _fixunssfsi _floatdidf _floatundidf _floatdisf _floatundisf
14
15 # MULTILIB_OPTIONS = mhard-float/msoft-float
16 # MULTILIB_DIRNAMES = hard-float soft-float
17 Index: gcc-4.3.0/gcc/config/arm/linux-elf.h
18 ===================================================================
19 --- gcc-4.3.0/gcc/config/arm/linux-elf.h (revision 129896)
20 +++ gcc-4.3.0/gcc/config/arm/linux-elf.h (working copy)
21 @@ -48,7 +62,7 @@
22 %{shared:-lc} \
23 %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
24
25 -#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
26 +#define LIBGCC_SPEC "-lgcc"
27
28 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
29