Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2014 07:06:31 +0000 (UTC)
From:      Joerg Wunsch <joerg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370895 - in head/devel/as31: . files
Message-ID:  <201410150706.s9F76VrX062287@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: joerg
Date: Wed Oct 15 07:06:31 2014
New Revision: 370895
URL: https://svnweb.freebsd.org/changeset/ports/370895
QAT: https://qat.redports.org/buildarchive/r370895/

Log:
  Fix a bug with the location counter calculation that becomes obvious
  when running on 64-bit machines.
  
  Submitted by:	Holm Tiffe <holm@freibergnet.de>
  Obtained from:	https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655487

Added:
  head/devel/as31/files/patch-debianbug655487   (contents, props changed)
Modified:
  head/devel/as31/Makefile

Modified: head/devel/as31/Makefile
==============================================================================
--- head/devel/as31/Makefile	Wed Oct 15 02:14:21 2014	(r370894)
+++ head/devel/as31/Makefile	Wed Oct 15 07:06:31 2014	(r370895)
@@ -3,7 +3,7 @@
 
 PORTNAME=	as31
 PORTVERSION=	2.0.b3
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	devel
 MASTER_SITES=	http://www.pjrc.com/tech/8051/tools/
 DISTNAME=	${PORTNAME}_beta3

Added: head/devel/as31/files/patch-debianbug655487
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/as31/files/patch-debianbug655487	Wed Oct 15 07:06:31 2014	(r370895)
@@ -0,0 +1,19 @@
+--- parser.y~	2014-10-15 09:01:14.265779740 +0200
++++ parser.y	2014-10-15 09:02:26.951775397 +0200
+@@ -1016,13 +1016,13 @@
+  *
+  */
+ 
+-#define indx(a) ( (a)/(sizeof(long)*8) )
+-#define bit(a)	( 1 << ((a)%(sizeof(long)*8)) )
++#define indx(a) ( (a)/(32) )
++#define bit(a)	( 1 << ((a)%(32)) )
+ 
+ #define getloc(a) (regions[indx(a)] & bit(a))
+ #define setloc(a) (regions[indx(a)] |= bit(a))
+ 
+-static unsigned long regions[ 0x10000/(sizeof(long)*8) ];
++static unsigned long regions[ 0x10000/(32) ];
+ 
+ void inclc(int i)
+ {



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