From: Denys Dmytriyenko <[email protected]>

It's an old bfd/coff code, will need to be updated in the future.

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 ...bbfd.h-suppress-GCC9-Wstringop-truncation.patch | 28 ++++++++++++++++++++++
 recipes-devtools/gdbc6x/gdbc6x_git.bb              |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 
recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch

diff --git 
a/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
 
b/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
new file mode 100644
index 0000000..1cc23b3
--- /dev/null
+++ 
b/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
@@ -0,0 +1,28 @@
+From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Sat, 15 Feb 2020 15:59:37 -0500
+Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ gdbc6x/bfd/libbfd.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h
+index 72d3c50..3465f89 100644
+--- a/gdbc6x/bfd/libbfd.h
++++ b/gdbc6x/bfd/libbfd.h
+@@ -34,6 +34,10 @@
+ #pragma GCC diagnostic ignored "-Wcast-function-type"
+ #endif
+ 
++#if __GNUC__ >= 9
++#pragma GCC diagnostic ignored "-Wstringop-truncation"
++#endif
++
+ #include "hashtab.h"
+ 
+ /* Align an address upward to a boundary, expressed as a number of bytes.
+-- 
+2.7.4
+
diff --git a/recipes-devtools/gdbc6x/gdbc6x_git.bb 
b/recipes-devtools/gdbc6x/gdbc6x_git.bb
index 8ab9cf9..2d2f6c1 100644
--- a/recipes-devtools/gdbc6x/gdbc6x_git.bb
+++ b/recipes-devtools/gdbc6x/gdbc6x_git.bb
@@ -11,6 +11,7 @@ PR = "${INC_PR}.1"
 
 SRC_URI_append = " \
     file://init \
+    file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 
\
 "
 
 S = "${WORKDIR}/git/gdbc6x"
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12711): 
https://lists.yoctoproject.org/g/meta-ti/message/12711
Mute This Topic: https://lists.yoctoproject.org/mt/71310708/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to