From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-oe][PATCH 02/17] ltrace: Fix FTBFS due to invalid code in ARM support
Date: Sun, 23 Apr 2017 22:20:43 -0700 [thread overview]
Message-ID: <20170424052058.4952-2-raj.khem@gmail.com> (raw)
In-Reply-To: <20170424052058.4952-1-raj.khem@gmail.com>
Found with gcc7
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...s-unreachable-code-after-switch-statement.patch | 40 ++++++++++++++++++++++
meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 3 +-
2 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch
new file mode 100644
index 000000000..4d0e0392f
--- /dev/null
+++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ARM-code-has-unreachable-code-after-switch-statement.patch
@@ -0,0 +1,40 @@
+From 95ff340a74af16cca89fd5c5ca99890821053209 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 22 Apr 2017 00:47:16 -0700
+Subject: [PATCH] ARM code has unreachable code after switch statement move
+ initialization
+
+Fixed
+sysdeps/linux-gnu/arm/trace.c:173:33: error: statement will never be executed [-Werror=switch-unreachable]
+ uint32_t operand1, operand2, result = 0;
+ ^~~~~~
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ sysdeps/linux-gnu/arm/trace.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/sysdeps/linux-gnu/arm/trace.c b/sysdeps/linux-gnu/arm/trace.c
+index 5e51e91..f974d1f 100644
+--- a/sysdeps/linux-gnu/arm/trace.c
++++ b/sysdeps/linux-gnu/arm/trace.c
+@@ -155,6 +155,8 @@ arm_get_next_pcs(struct process *proc,
+ const unsigned cond = BITS(this_instr, 28, 31);
+ const unsigned opcode = BITS(this_instr, 24, 27);
+
++ uint32_t operand1, operand2, result = 0;
++
+ if (cond == COND_NV)
+ switch (opcode) {
+ arch_addr_t addr;
+@@ -170,7 +172,6 @@ arm_get_next_pcs(struct process *proc,
+ }
+ else
+ switch (opcode) {
+- uint32_t operand1, operand2, result = 0;
+ case 0x0:
+ case 0x1: /* data processing */
+ case 0x2:
+--
+2.12.2
+
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
index a5960f5b0..60af5425e 100644
--- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
+++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
@@ -20,7 +20,8 @@ SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git;branch=master \
file://0001-replace-readdir_r-with-readdir.patch \
file://0001-Use-correct-enum-type.patch \
file://0002-Fix-const-qualifier-error.patch \
- "
+ file://0001-ARM-code-has-unreachable-code-after-switch-statement.patch \
+ "
S = "${WORKDIR}/git"
inherit autotools
--
2.12.2
next prev parent reply other threads:[~2017-04-24 5:21 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-24 5:20 [meta-multimedia][PATCH 01/17] musicbrainz: Upgrade to 5.1.0 Khem Raj
2017-04-24 5:20 ` Khem Raj [this message]
2017-04-24 5:20 ` [meta-oe][PATCH 03/17] msgpack-c: Upgrade to 2.1.1 Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 04/17] fluentbit: Upgrade to 0.11.3 release Khem Raj
2017-04-24 5:20 ` [meta-networking][PATCH 05/17] ipsec-tools: Fix build with gcc7 Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 06/17] collectd: Upgrade to 5.7.1 Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 07/17] libsigc++: Disable PIE in SECURITY_FLAGS Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 08/17] glibmm: Upgrade to 2.50.1 Khem Raj
2017-04-24 5:20 ` [meta-networking][PATCH 09/17] opensaf: Upgrade to 5.2.0 Khem Raj
2017-04-25 12:12 ` Martin Jansa
2017-04-24 5:20 ` [meta-networking][PATCH 10/17] memcached: Upgrade to 1.4.36 Khem Raj
2017-04-24 5:20 ` [meta-networking][PATCH 11/17] lowpan-tools: Fix build with gcc7 Khem Raj
2017-04-24 5:20 ` [meta-networking][PATCH 12/17] squid: Upgrade to 3.5.25 Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 13/17] glcompbench: Fix build with gcc7 Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 14/17] mariadb: Upgrade to 5.5.55 Khem Raj
2017-04-24 5:20 ` [meta-oe][PATCH 15/17] efivar: Fix multiple definition of `efi_set_variable' Khem Raj
2017-04-24 5:20 ` [meta-networking][PATCH 16/17] libtalloc: Upgrade to 2.1.9 Khem Raj
2017-04-24 5:20 ` [meta-networking][PATCH 17/17] samba: Upgrade to 4.6.2 Khem Raj
2017-04-25 12:11 ` [meta-multimedia][PATCH 01/17] musicbrainz: Upgrade to 5.1.0 Martin Jansa
2017-04-25 13:32 ` Khem Raj
2017-04-25 14:13 ` Martin Jansa
2017-04-25 14:44 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170424052058.4952-2-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox