pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/sr Fix SR optimizer bug: with -O, the char-intege...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b0512fcd9a7
branches:  trunk
changeset: 492168:1b0512fcd9a7
user:      is <is%pkgsrc.org@localhost>
date:      Tue Apr 05 15:58:05 2005 +0000

description:
Fix SR optimizer bug: with -O, the char-integer-conversion was unsigned,
while it is signed without.

diffstat:

 lang/sr/Makefile         |   4 ++--
 lang/sr/distinfo         |   3 ++-
 lang/sr/patches/patch-bj |  13 +++++++++++++
 3 files changed, 17 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r ef9331dc07a9 -r 1b0512fcd9a7 lang/sr/Makefile
--- a/lang/sr/Makefile  Tue Apr 05 15:55:54 2005 +0000
+++ b/lang/sr/Makefile  Tue Apr 05 15:58:05 2005 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2005/04/05 15:55:54 is Exp $
+# $NetBSD: Makefile,v 1.10 2005/04/05 15:58:05 is Exp $
 #
 
 DISTNAME=              sr233
 PKGNAME=               sr-2.3.3
-PKGREVISION=           5
+PKGREVISION=           6
 CATEGORIES=            lang parallel
 MASTER_SITES=          ftp://ftp.cs.arizona.edu/sr/
 EXTRACT_SUFX=          .tar.Z
diff -r ef9331dc07a9 -r 1b0512fcd9a7 lang/sr/distinfo
--- a/lang/sr/distinfo  Tue Apr 05 15:55:54 2005 +0000
+++ b/lang/sr/distinfo  Tue Apr 05 15:58:05 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2005/04/05 15:55:54 is Exp $
+$NetBSD: distinfo,v 1.19 2005/04/05 15:58:05 is Exp $
 
 SHA1 (sr233.tar.Z) = 0354987527ed1e84c32d3b1fc6bacb65d647f337
 RMD160 (sr233.tar.Z) = 58c90c06abede7a15ca8a68f53b6fdfa575c79df
@@ -24,3 +24,4 @@
 SHA1 (patch-bg) = 3d3357f00129d8b6141506e700c4ae4da556a39a
 SHA1 (patch-bh) = c880064e871297a411e2292f78d82222bb46dac4
 SHA1 (patch-bi) = ad6706295ff164fe6df257d325a06f9b157175d1
+SHA1 (patch-bj) = cd46d268fc173fe02efa8338ebf3f664ff2e5b94
diff -r ef9331dc07a9 -r 1b0512fcd9a7 lang/sr/patches/patch-bj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/sr/patches/patch-bj  Tue Apr 05 15:58:05 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-bj,v 1.1 2005/04/05 15:58:05 is Exp $
+
+--- sr/gexpr.c.orig    1999-10-26 03:06:20.000000000 +0200
++++ sr/gexpr.c
+@@ -942,7 +942,7 @@ Nodeptr e;
+       r = RNODE (e);
+       if (l->e_sig->g_type == T_STRING) {
+           if (option_O)
+-              cprintf ("(DATA(%e)+%e-1)", l, r);
++              cprintf ("((Char*)DATA(%e)+%e-1)", l, r);
+           else {
+               cprintf ("(");
+               once (l, ',');



Home | Main Index | Thread Index | Old Index