cc/gcc: fix pr42289: incorrect alignment on OABI
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Nov 13 23:26:21 2010 +0100 (2010-11-13)
changeset 2202208b2db4a8a3
parent 2201 c26a78f260a7
child 2203 ac3e215141a1
cc/gcc: fix pr42289: incorrect alignment on OABI

Fix building libffi on OABI.
Although it has been marked as 4.3-only, it is stil not fixed,
and also applies to 4.4.x

See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42289

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
patches/gcc/4.3.5/410-pr42289-fix-libffi-build-on-arm-oabi.patch
patches/gcc/4.4.0/400-pr42289-fix-libffi-build-on-arm-oabi.patch
patches/gcc/4.4.1/400-pr42289-fix-libffi-build-on-arm-oabi.patch
patches/gcc/4.4.2/400-pr42289-fix-libffi-build-on-arm-oabi.patch
patches/gcc/4.4.3/400-pr42289-fix-libffi-build-on-arm-oabi.patch
patches/gcc/4.4.4/400-pr42289-fix-libffi-build-on-arm-oabi.patch
patches/gcc/4.4.5/400-pr42289-fix-libffi-build-on-arm-oabi.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.3.5/410-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     1.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     1.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     1.7 + 	stmfd	sp!, {ip, lr}
     1.8 + 	UNWIND .save	{r0, lr}
     1.9 + 	add	r2, sp, #8
    1.10 +-	.pad #16
    1.11 ++	UNWIND .pad #16
    1.12 + 	sub	sp, sp, #16
    1.13 + 	str	sp, [sp, #8]
    1.14 + 	add	r1, sp, #8
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/patches/gcc/4.4.0/400-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     2.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     2.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     2.7 + 	stmfd	sp!, {ip, lr}
     2.8 + 	UNWIND .save	{r0, lr}
     2.9 + 	add	r2, sp, #8
    2.10 +-	.pad #16
    2.11 ++	UNWIND .pad #16
    2.12 + 	sub	sp, sp, #16
    2.13 + 	str	sp, [sp, #8]
    2.14 + 	add	r1, sp, #8
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/patches/gcc/4.4.1/400-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     3.3 @@ -0,0 +1,11 @@
     3.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     3.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     3.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     3.7 + 	stmfd	sp!, {ip, lr}
     3.8 + 	UNWIND .save	{r0, lr}
     3.9 + 	add	r2, sp, #8
    3.10 +-	.pad #16
    3.11 ++	UNWIND .pad #16
    3.12 + 	sub	sp, sp, #16
    3.13 + 	str	sp, [sp, #8]
    3.14 + 	add	r1, sp, #8
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/patches/gcc/4.4.2/400-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     4.3 @@ -0,0 +1,11 @@
     4.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     4.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     4.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     4.7 + 	stmfd	sp!, {ip, lr}
     4.8 + 	UNWIND .save	{r0, lr}
     4.9 + 	add	r2, sp, #8
    4.10 +-	.pad #16
    4.11 ++	UNWIND .pad #16
    4.12 + 	sub	sp, sp, #16
    4.13 + 	str	sp, [sp, #8]
    4.14 + 	add	r1, sp, #8
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/patches/gcc/4.4.3/400-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     5.3 @@ -0,0 +1,11 @@
     5.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     5.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     5.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     5.7 + 	stmfd	sp!, {ip, lr}
     5.8 + 	UNWIND .save	{r0, lr}
     5.9 + 	add	r2, sp, #8
    5.10 +-	.pad #16
    5.11 ++	UNWIND .pad #16
    5.12 + 	sub	sp, sp, #16
    5.13 + 	str	sp, [sp, #8]
    5.14 + 	add	r1, sp, #8
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/patches/gcc/4.4.4/400-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     6.3 @@ -0,0 +1,11 @@
     6.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     6.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     6.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     6.7 + 	stmfd	sp!, {ip, lr}
     6.8 + 	UNWIND .save	{r0, lr}
     6.9 + 	add	r2, sp, #8
    6.10 +-	.pad #16
    6.11 ++	UNWIND .pad #16
    6.12 + 	sub	sp, sp, #16
    6.13 + 	str	sp, [sp, #8]
    6.14 + 	add	r1, sp, #8
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/patches/gcc/4.4.5/400-pr42289-fix-libffi-build-on-arm-oabi.patch	Sat Nov 13 23:26:21 2010 +0100
     7.3 @@ -0,0 +1,11 @@
     7.4 +--- gcc-4.3.4/libffi/src/arm/sysv.S	
     7.5 ++++ gcc-4.3.4/libffi/src/arm/sysv.S	
     7.6 +@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
     7.7 + 	stmfd	sp!, {ip, lr}
     7.8 + 	UNWIND .save	{r0, lr}
     7.9 + 	add	r2, sp, #8
    7.10 +-	.pad #16
    7.11 ++	UNWIND .pad #16
    7.12 + 	sub	sp, sp, #16
    7.13 + 	str	sp, [sp, #8]
    7.14 + 	add	r1, sp, #8