This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for java/2607


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;
        }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]