diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-04-16 14:13:57 -0700 |
---|---|---|
committer | Dan McGregor <dan.mcgregor@usask.ca> | 2016-04-19 21:33:53 -0600 |
commit | 8689977965443b6f39211b354816ab450c35145d (patch) | |
tree | b03d0e03a0f96bb2c085529b88842f463689b67f /meta/recipes-devtools/elfutils/elfutils-0.166/0001-fix-a-stack-usage-warning.patch | |
parent | 0bebdde16a7136b3a446fddb7feffda2501736af (diff) | |
download | openembedded-core-contrib-8689977965443b6f39211b354816ab450c35145d.tar.gz |
elfutils: Upgrade to 0.166
Has many fixes for compiling it with gcc-6
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.166/0001-fix-a-stack-usage-warning.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.166/0001-fix-a-stack-usage-warning.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.166/0001-fix-a-stack-usage-warning.patch b/meta/recipes-devtools/elfutils/elfutils-0.166/0001-fix-a-stack-usage-warning.patch new file mode 100644 index 0000000000..6923bf7053 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.166/0001-fix-a-stack-usage-warning.patch @@ -0,0 +1,28 @@ +[PATCH] 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> +--- + 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 64f5379..52dde3e 100644 +--- a/backends/ppc_initreg.c ++++ b/backends/ppc_initreg.c +@@ -93,7 +93,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)) +-- +1.9.1 + |