aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-12-01 20:32:13 +0800
committerwg <wg@FreeBSD.org>2013-12-01 20:32:13 +0800
commit6903e63995c5496be45894f3052accd850980609 (patch)
tree92ed71f9423c5366933e34562ed05fde6cc09a3e
parent2641fbae92fbddf4797f67f3bd042a925e4100fa (diff)
downloadfreebsd-ports-gnome-6903e63995c5496be45894f3052accd850980609.tar.gz
freebsd-ports-gnome-6903e63995c5496be45894f3052accd850980609.tar.zst
freebsd-ports-gnome-6903e63995c5496be45894f3052accd850980609.zip
devel/gdb: fix build with gcc 4.8
PR: ports/184119 Submitted by: maintainer
-rw-r--r--devel/gdb/files/patch-opcodes-rl78-dis.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/gdb/files/patch-opcodes-rl78-dis.c b/devel/gdb/files/patch-opcodes-rl78-dis.c
new file mode 100644
index 000000000000..5305b44a68ae
--- /dev/null
+++ b/devel/gdb/files/patch-opcodes-rl78-dis.c
@@ -0,0 +1,11 @@
+--- opcodes/rl78-dis.c.orig 2013-11-20 14:18:22.940364966 +0100
++++ opcodes/rl78-dis.c 2013-11-20 15:25:32.745367278 +0100
+@@ -217,7 +217,7 @@
+
+ case '0':
+ case '1':
+- oper = opcode.op + *s - '0';
++ oper = *s == '0' ? &opcode.op[0] : &opcode.op[1];
+ if (do_es)
+ {
+ if (oper->use_es && indirect_type (oper->type))