This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for java/2607
- To: "Gcc-Gnats at Gcc dot Gnu. Org" <gcc-gnats at gcc dot gnu dot org>, "Gcc-Patches at Gcc dot Gnu. Org" <gcc-patches at gcc dot gnu dot org>
- Subject: Patch for java/2607
- From: "Anthony Green" <green at redhat dot com>
- Date: Wed, 16 May 2001 17:25:12 -0700
- Reply-To: <green at redhat dot com>
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2607&database=gcc
There are two off-by-one errors in the routine we use to split overlapping
exception regions. This was preventing part of the Volano benchmark from
building. Ok for branch and trunk?
AG
2001-05-16 Anthony Green <green@redhat.com>
* except.c (link_handler): Fix off-by-one error in creating new
exception regions.
Index: java/except.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/except.c,v
retrieving revision 1.25.4.1
diff -u -p -r1.25.4.1 except.c
--- except.c 2001/05/13 07:10:21 1.25.4.1
+++ except.c 2001/05/17 00:05:53
@@ -161,11 +161,11 @@ link_handler (range, outer)
{
h->start_pc = range->start_pc;
h->end_pc = outer->start_pc;
- range->start_pc = outer->start_pc;
+ range->start_pc = outer->start_pc + 1;
}
else
{
- h->start_pc = outer->end_pc;
+ h->start_pc = outer->end_pc + 1;
h->end_pc = range->end_pc;
range->end_pc = outer->end_pc;
}