patches/gcc/4.4.4/400-pr42289-fix-libffi-build-on-arm-oabi.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>
yann@2202
     1
--- gcc-4.3.4/libffi/src/arm/sysv.S	
yann@2202
     2
+++ gcc-4.3.4/libffi/src/arm/sysv.S	
yann@2202
     3
@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
yann@2202
     4
 	stmfd	sp!, {ip, lr}
yann@2202
     5
 	UNWIND .save	{r0, lr}
yann@2202
     6
 	add	r2, sp, #8
yann@2202
     7
-	.pad #16
yann@2202
     8
+	UNWIND .pad #16
yann@2202
     9
 	sub	sp, sp, #16
yann@2202
    10
 	str	sp, [sp, #8]
yann@2202
    11
 	add	r1, sp, #8