mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 01:06:37 +01:00
- Update debian 0.170 patches and rebase them for 0.172; - Drop 0001-Use-fallthrough-attribute.patch which was accepted by upstream; - Drop 0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch which was backported from upstream; (From OE-Core rev: dbbe9c1d1f822cf13a4c16b79bccf6bf5c4b91e4) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 4d7ea681932556ad881f6841de90d0bfff56f8d7 Mon Sep 17 00:00:00 2001
|
|
From: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Date: Tue, 15 Aug 2017 17:25:16 +0800
|
|
Subject: [PATCH 5/7] fix a stack-usage warning
|
|
|
|
Upstream-Status: Pending
|
|
|
|
not use a variable to as a array size, otherwise the warning to error
|
|
that
|
|
stack usage might be unbounded [-Werror=stack-usage=] will happen
|
|
|
|
Signed-off-by: Roy Li <rongqing.li@windriver.com>
|
|
|
|
Rebase to 0.170
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
---
|
|
backends/ppc_initreg.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
|
|
index 3e4432f..59c2d97 100644
|
|
--- a/backends/ppc_initreg.c
|
|
+++ b/backends/ppc_initreg.c
|
|
@@ -94,7 +94,7 @@ ppc_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
|
|
return false;
|
|
}
|
|
const size_t gprs = sizeof (user_regs.r.gpr) / sizeof (*user_regs.r.gpr);
|
|
- Dwarf_Word dwarf_regs[gprs];
|
|
+ Dwarf_Word dwarf_regs[sizeof (user_regs.r.gpr) / sizeof (*user_regs.r.gpr)];
|
|
for (unsigned gpr = 0; gpr < gprs; gpr++)
|
|
dwarf_regs[gpr] = user_regs.r.gpr[gpr];
|
|
if (! setfunc (0, gprs, dwarf_regs, arg))
|
|
--
|
|
2.7.4
|
|
|