rpms/frysk/F-12 frysk-0.4-gccjint.patch, NONE, 1.1 frysk.spec, 1.160, 1.161

cagney cagney at fedoraproject.org
Mon Mar 29 21:46:21 UTC 2010


Author: cagney

Update of /cvs/pkgs/rpms/frysk/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv9578/F-12

Modified Files:
	frysk.spec 
Added Files:
	frysk-0.4-gccjint.patch 
Log Message:
* Mon Mar 29 2010 Andrew Cagney <cagney [at] fedoraproject.org> - 0.4-22
- Work around gcc bug where MAX_INT+1 isn't -ve - gccjint.patch.


frysk-0.4-gccjint.patch:
 Errno.cxx |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

--- NEW FILE frysk-0.4-gccjint.patch ---
diff -up frysk-0.4/frysk-sys/frysk/sys/cni/Errno.cxx.gccjint frysk-0.4/frysk-sys/frysk/sys/cni/Errno.cxx
--- frysk-0.4/frysk-sys/frysk/sys/cni/Errno.cxx.gccjint	2010-03-29 17:19:01.000000000 -0400
+++ frysk-0.4/frysk-sys/frysk/sys/cni/Errno.cxx	2010-03-29 17:22:06.000000000 -0400
@@ -291,8 +291,15 @@ verifyBounds (jbyteArray bytes, jint sta
     throw new java::lang::ArrayIndexOutOfBoundsException ();
   if (length < 0)
     throw new java::lang::ArrayIndexOutOfBoundsException ();
-  if (start + length < 0)
+#if 0
+  jint end = start + length;
+#else
+  // Work around GCC bug where test for (MAX_INT+1)<0 fails - the
+  // arrithmetic should have wrapped the value to -ve.
+  long end = start + length;
+#endif
+  if (end < 0)
     throw new java::lang::ArrayIndexOutOfBoundsException ();
-  if (start + length > bytes->length)
+  if (end > bytes->length)
     throw new java::lang::ArrayIndexOutOfBoundsException ();
 }


Index: frysk.spec
===================================================================
RCS file: /cvs/pkgs/rpms/frysk/F-12/frysk.spec,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -p -r1.160 -r1.161
--- frysk.spec	25 Mar 2010 22:53:51 -0000	1.160
+++ frysk.spec	29 Mar 2010 21:46:21 -0000	1.161
@@ -1,7 +1,7 @@
 Summary:	Execution analysis and debugging tool-suite.
 Name:		frysk
 Version:	0.4
-Release:	21%{?dist}
+Release:	22%{?dist}
 
 # antlrv2 is Public Domain; antlrv3 is BSD.
 # getopt is GPLv2 with exception
@@ -30,6 +30,7 @@ Patch7:		frysk-0.4-mvtesttomain.patch
 Patch8:		frysk-0.4-taskstoputil.patch
 Patch9:		frysk-0.4-publictestbedsymtab.patch
 Patch10:	frysk-0.4-noelfmem.patch
+Patch11:	frysk-0.4-gccjint.patch
 
 Patch100:	frysk-0.4-aclocaljavac.patch
 
@@ -157,6 +158,7 @@ mv frysk-core/frysk/util/ProcStopUtil.ja
 %patch8 -p1 -z .taskstoputil -F 3
 %patch9 -p1 -z .publictestbedsymtab
 %patch10 -p1 -z .noelfmem
+%patch11 -p1 -z .gccjint
 
 %if %{fedora}0 >= 130
 %patch100 -p1 -z .aclocaljavac
@@ -348,6 +350,9 @@ rm -rf %{buildroot}
 %{_mandir}/man1/frysk.1.gz
 
 %changelog
+* Mon Mar 29 2010 Andrew Cagney <cagney [at] fedoraproject.org> - 0.4-22
+- Work around gcc bug where MAX_INT+1 isn't -ve - gccjint.patch.
+
 * Thu Mar 25 2010 Andrew Cagney <cagney [at] fedoraproject.org> - 0.4-21
 - Merge 0.145 elfutils and local fixes.  This is Plan B, Plan A was to
   use the installed elfutils.



More information about the scm-commits mailing list