ports/184119: [MAINTAINER] Fix the build with gcc 4.8
Luca Pizzamiglio
luca.pizzamiglio at gmail.com
Wed Nov 20 17:10:00 UTC 2013
>Number: 184119
>Category: ports
>Synopsis: [MAINTAINER] Fix the build with gcc 4.8
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 20 17:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Luca Pizzamiglio
>Release: FreeBSD 9.2-RELEASE
>Organization:
>Environment:
FreeBSD pizzamig 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
avg@ reported me an issue (and relative solution) about a bug in gcc 4.8 that prevent gdb to be build.
This patch solves the issue.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: devel/gdb/files/patch-opcodes-rl78-dis.c
===================================================================
--- devel/gdb/files/patch-opcodes-rl78-dis.c (revision 0)
+++ devel/gdb/files/patch-opcodes-rl78-dis.c (working copy)
@@ -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))
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list