diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-01-31 10:45:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-31 15:44:22 +0000 |
commit | 5e6db9dc4ddbd055c72b02437bfeae942259ef9a (patch) | |
tree | 9b1f050e525b74fdf6f88ca53e70ca6eb5a5faba /meta/recipes-devtools/gcc | |
parent | 964a590539d0f28da160fb1a94e8b417b6a9b9af (diff) | |
download | poky-5e6db9dc4ddbd055c72b02437bfeae942259ef9a.tar.gz |
gcc: Include patch scheduled for GCC 4.8.3 to fix epilogue on ARM
GCC 4.8.0, 4.8.1 and 4.8.2 can generate broken epilogues for the
ABI used by the kernel. Apply the patch that is included for GCC
4.8.3 from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854.
The issue was found on Yocto/Dora and the patch should be backported
to this branch. A kernel built with Dora's GCC 4.8.1 misbehaved on:
while true;
do
(for i in `seq 1 100`;
do
echo "Log message... $RANDOM";
done) | logger;
done
busybox's syslogd would from time to read a huge negative value and
then exit, strace would get stuck waiting on a syscall. After this
patch it appears to work better.
(From OE-Core rev: 3004eb3b7ee5fd8dfe9c4e5749b4e125d0bd4b59)
Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc index a140573d71..fdd0c12ae0 100644 --- a/meta/recipes-devtools/gcc/gcc-4.8.inc +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc | |||
@@ -68,6 +68,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | |||
68 | file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \ | 68 | file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \ |
69 | file://0046-libatomic-deptracking.patch \ | 69 | file://0046-libatomic-deptracking.patch \ |
70 | file://0047-repomembug.patch \ | 70 | file://0047-repomembug.patch \ |
71 | file://0048-PR58854_fix_arm_apcs_epilogue.patch \ | ||
71 | " | 72 | " |
72 | SRC_URI[md5sum] = "a3d7d63b9cb6b6ea049469a0c4a43c9d" | 73 | SRC_URI[md5sum] = "a3d7d63b9cb6b6ea049469a0c4a43c9d" |
73 | SRC_URI[sha256sum] = "09dc2276c73424bbbfda1dbddc62bbbf900c9f185acf7f3e1d773ce2d7e3cdc8" | 74 | SRC_URI[sha256sum] = "09dc2276c73424bbbfda1dbddc62bbbf900c9f185acf7f3e1d773ce2d7e3cdc8" |
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch new file mode 100644 index 0000000000..0ef245a17f --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Backport fix for PR target/58854 | ||
2 | |||
3 | 2013-11-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> | ||
4 | |||
5 | Backported from mainline | ||
6 | 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> | ||
7 | |||
8 | PR target/58854 | ||
9 | * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage | ||
10 | |||
11 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | --- gcc-4_8-branch/gcc/config/arm/arm.c 2013/11/11 08:00:45 204664 | ||
15 | +++ gcc-4_8-branch/gcc/config/arm/arm.c 2013/11/11 09:38:14 204665 | ||
16 | @@ -23555,6 +23555,7 @@ | ||
17 | num_regs = bit_count (saved_regs_mask); | ||
18 | if ((offsets->outgoing_args != (1 + num_regs)) || cfun->calls_alloca) | ||
19 | { | ||
20 | + emit_insn (gen_blockage ()); | ||
21 | /* Unwind the stack to just below the saved registers. */ | ||
22 | emit_insn (gen_addsi3 (stack_pointer_rtx, | ||
23 | hard_frame_pointer_rtx, | ||