patches/gcc/4.4.1/390-arm-softfloat-libgcc.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
permissions -rw-r--r--
Allow multi-word "install" command.

Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:

# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"

# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory

# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
bryanhundven@2201
     1
[PATCH] add the correct symbols to libgcc for uclibc arm softfloat
bryanhundven@2201
     2
bryanhundven@2201
     3
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
bryanhundven@2201
     4
---
bryanhundven@2201
     5
 gcc/config/arm/linux-elf.h |    2 +-
bryanhundven@2201
     6
 gcc/config/arm/t-linux     |    6 +++++-
bryanhundven@2201
     7
 2 files changed, 6 insertions(+), 2 deletions(-)
bryanhundven@2201
     8
bryanhundven@2201
     9
Index: gcc-4.4.0/gcc/config/arm/t-linux
bryanhundven@2201
    10
===================================================================
bryanhundven@2201
    11
--- gcc-4.4.0.orig/gcc/config/arm/t-linux
bryanhundven@2201
    12
+++ gcc-4.4.0/gcc/config/arm/t-linux
bryanhundven@2201
    13
@@ -4,7 +4,11 @@
bryanhundven@2201
    14
 
bryanhundven@2201
    15
 LIB1ASMSRC = arm/lib1funcs.asm
bryanhundven@2201
    16
 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
bryanhundven@2201
    17
-	_arm_addsubdf3 _arm_addsubsf3
bryanhundven@2201
    18
+	_arm_addsubdf3 _arm_addsubsf3 \
bryanhundven@2201
    19
+	_arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
bryanhundven@2201
    20
+	_arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
bryanhundven@2201
    21
+	_arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
bryanhundven@2201
    22
+	_arm_fixsfsi _arm_fixunssfsi
bryanhundven@2201
    23
 
bryanhundven@2201
    24
 # MULTILIB_OPTIONS = mhard-float/msoft-float
bryanhundven@2201
    25
 # MULTILIB_DIRNAMES = hard-float soft-float
bryanhundven@2201
    26
Index: gcc-4.4.0/gcc/config/arm/linux-elf.h
bryanhundven@2201
    27
===================================================================
bryanhundven@2201
    28
--- gcc-4.4.0.orig/gcc/config/arm/linux-elf.h
bryanhundven@2201
    29
+++ gcc-4.4.0/gcc/config/arm/linux-elf.h
bryanhundven@2201
    30
@@ -60,7 +60,7 @@
bryanhundven@2201
    31
    %{shared:-lc} \
bryanhundven@2201
    32
    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
bryanhundven@2201
    33
 
bryanhundven@2201
    34
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
bryanhundven@2201
    35
+#define LIBGCC_SPEC "-lgcc"
bryanhundven@2201
    36
 
bryanhundven@2201
    37
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
bryanhundven@2201
    38