diff options
author | wg <wg@FreeBSD.org> | 2013-12-01 20:32:13 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-12-01 20:32:13 +0800 |
commit | 6903e63995c5496be45894f3052accd850980609 (patch) | |
tree | 92ed71f9423c5366933e34562ed05fde6cc09a3e | |
parent | 2641fbae92fbddf4797f67f3bd042a925e4100fa (diff) | |
download | freebsd-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.c | 11 |
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)) |