From nobody@FreeBSD.org  Wed Nov 20 17:09:21 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6D2982C4
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Nov 2013 17:09:21 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 5C31829F2
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Nov 2013 17:09:21 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAKH9LR5082727
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Nov 2013 17:09:21 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAKH9K7k082685;
	Wed, 20 Nov 2013 17:09:20 GMT
	(envelope-from nobody)
Message-Id: <201311201709.rAKH9K7k082685@oldred.freebsd.org>
Date: Wed, 20 Nov 2013 17:09:20 GMT
From: Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [MAINTAINER] Fix the build with gcc 4.8
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184119
>Category:       ports
>Synopsis:       [MAINTAINER] devel/gdb: Fix the build with gcc 4.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 20 17:10:00 UTC 2013
>Closed-Date:    Sun Dec 01 12:32:18 UTC 2013
>Last-Modified:  Sun Dec  1 12:40:00 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->wg 
Responsible-Changed-By: wg 
Responsible-Changed-When: Sun Dec 1 12:31:08 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184119 
State-Changed-From-To: open->closed 
State-Changed-By: wg 
State-Changed-When: Sun Dec 1 12:32:18 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184119 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184119: commit references a PR
Date: Sun,  1 Dec 2013 12:32:21 +0000 (UTC)

 Author: wg
 Date: Sun Dec  1 12:32:13 2013
 New Revision: 335377
 URL: http://svnweb.freebsd.org/changeset/ports/335377
 
 Log:
   devel/gdb: fix build with gcc 4.8
   
   PR:		ports/184119
   Submitted by:	maintainer
 
 Added:
   head/devel/gdb/files/patch-opcodes-rl78-dis.c   (contents, props changed)
 
 Added: head/devel/gdb/files/patch-opcodes-rl78-dis.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/gdb/files/patch-opcodes-rl78-dis.c	Sun Dec  1 12:32:13 2013	(r335377)
 @@ -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))
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
