Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Dec 2013 12:32:13 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335377 - head/devel/gdb/files
Message-ID:  <201312011232.rB1CWEff029643@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



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