Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2013 17:09:20 GMT
From:      Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184119: [MAINTAINER] Fix the build with gcc 4.8
Message-ID:  <201311201709.rAKH9K7k082685@oldred.freebsd.org>
Resent-Message-ID: <201311201710.rAKHA0AK091617@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311201709.rAKH9K7k082685>