Bug 184119 - [MAINTAINER] devel/gdb: Fix the build with gcc 4.8
Summary: [MAINTAINER] devel/gdb: Fix the build with gcc 4.8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 17:10 UTC by luca.pizzamiglio
Modified: 2013-12-01 12:40 UTC (History)
0 users

See Also:


Attachments
file.diff (611 bytes, patch)
2013-11-20 17:10 UTC, luca.pizzamiglio
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description luca.pizzamiglio 2013-11-20 17:10:00 UTC
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.

Fix: Patch attached with submission follows:
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-12-01 12:31:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-12-01 12:32:18 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-12-01 12:32:21 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"