[source] gdb: fix build with gcc 4.1.2 as host compiler

LEDE Commits lede-commits at lists.infradead.org
Mon Aug 1 13:31:24 PDT 2016


hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=2694d43b052a1bf1721ae477dcdbe787f5995d35

commit 2694d43b052a1bf1721ae477dcdbe787f5995d35
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Aug 1 22:25:54 2016 +0200

    gdb: fix build with gcc 4.1.2 as host compiler
    
    The additional warnings are causing compile errors on gcc version 4.1.2
    as a host compiler.
    
    cc -c  -Wall -Wdeclaration-after-statement -Wpointer-arith
    -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
    -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
    -Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-
    style-definition -Wformat-nonliteral  -I. -I. -I./../../include
    filter_host.c
    cc1: error: unrecognized command line option "-Wempty-body"
    cc1: error: unrecognized command line option "-Wmissing-parameter-type"
    cc1: error: unrecognized command line option "-Wold-style-declaration"
    cc1: error: unrecognized command line option "-Wempty-body"
    cc1: error: unrecognized command line option "-Wmissing-parameter-type"
    cc1: error: unrecognized command line option "-Wold-style-declaration"
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/devel/gdb/patches/002-remove-arguments.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/package/devel/gdb/patches/002-remove-arguments.patch b/package/devel/gdb/patches/002-remove-arguments.patch
new file mode 100644
index 0000000..a263cb3
--- /dev/null
+++ b/package/devel/gdb/patches/002-remove-arguments.patch
@@ -0,0 +1,16 @@
+# The additional warnings are causing compile errors on gcc version 4.1.2 as
+# a host compiler.
+
+--- a/sim/igen/configure
++++ b/sim/igen/configure
+@@ -4768,8 +4768,8 @@ build_warnings="-Wall -Wdeclaration-afte
+ -Wpointer-sign \
+ -Wno-unused -Wunused-value -Wunused-function \
+ -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+--Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+--Wold-style-declaration -Wold-style-definition"
++-Wdeclaration-after-statement \
++-Wold-style-definition"
+ 
+ # Enable -Wno-format by default when using gcc on mingw since many
+ # GCC versions complain about %I64.



More information about the lede-commits mailing list