summaryrefslogtreecommitdiffstats
path: root/package/gdb/7.10.1/0005-fix-sim-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/gdb/7.10.1/0005-fix-sim-compile.patch')
-rw-r--r--package/gdb/7.10.1/0005-fix-sim-compile.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/gdb/7.10.1/0005-fix-sim-compile.patch b/package/gdb/7.10.1/0005-fix-sim-compile.patch
new file mode 100644
index 0000000000..c88636304b
--- /dev/null
+++ b/package/gdb/7.10.1/0005-fix-sim-compile.patch
@@ -0,0 +1,16 @@
+Fix compile on older systems with gcc 4.4.x.
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur gdb-7.10.1.orig//sim/common/sim-base.h gdb-7.10.1/sim/common/sim-base.h
+--- gdb-7.10.1.orig//sim/common/sim-base.h 2015-05-13 13:03:56.000000000 -0500
++++ gdb-7.10.1/sim/common/sim-base.h 2016-07-08 07:44:17.000000000 -0500
+@@ -72,8 +72,6 @@
+ #define INVALID_INSTRUCTION_ADDRESS ((address_word)0 - 1)
+ #endif
+
+-/* TODO: Probably should just delete SIM_CPU. */
+-typedef struct _sim_cpu SIM_CPU;
+ typedef struct _sim_cpu sim_cpu;
+
+ #include "sim-module.h"
OpenPOWER on IntegriCloud