add gcc 4.2.2
[openwrt-10.03/.git] / toolchain / gcc / patches / 4.2.2 / 910-soft-float.patch
1 --- gcc-4.2-20061205/gcc/config/arm/t-linux    2006-12-08 15:18:33.000000000 -0800
2 +++ gcc-4.2-20061205/gcc/config/arm/t-linux    2006-12-08 15:18:33.000000000 -0800
3 @@ -4,7 +4,10 @@
4  LIBGCC2_DEBUG_CFLAGS = -g0
5  
6  LIB1ASMSRC = arm/lib1funcs.asm
7 -LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
8 +LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
9 +      _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
10 +      _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
11 +      _fixsfsi _fixunssfsi _floatdidf _floatundidf _floatdisf _floatundisf
12  
13  # MULTILIB_OPTIONS = mhard-float/msoft-float
14  # MULTILIB_DIRNAMES = hard-float soft-float
15
16 --- gcc-4.2-20061205/gcc/config/arm/linux-elf.h        2006-12-08 15:18:33.000000000 -0800
17 +++ gcc-4.2-20061205/gcc/config/arm/linux-elf.h        2006-12-08 15:18:33.000000000 -0800
18 @@ -63,7 +63,7 @@
19     %{shared:-lc} \
20     %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
21  
22 -#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
23 +#define LIBGCC_SPEC "-lgcc"
24  
25  #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
26