svn commit: r370895 - in head/devel/as31: . files

Joerg Wunsch joerg at FreeBSD.org
Wed Oct 15 07:06:32 UTC 2014


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 at 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)
+ {


More information about the svn-ports-all mailing list