This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Allow libgcj to use new exception model


This is needed to allow non-call exceptions (such as divide overflow
and SEGV) to work with the new model.  An alternative to
"-fnon-call-exceptions", which we may one day use on some targets, is
"-fcheck-references".  Only one of these is strictly necessary.

Andrew.


2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>

        * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
        * configure.host (EXCEPTIONSPEC): New.
        * configure.in (EXCEPTIONSPEC): New.
        * configure: Rebuilt.

Index: configure.host
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.host,v
retrieving revision 1.17
diff -p -2 -c -r1.17 configure.host
*** configure.host      2001/04/02 19:51:40     1.17
--- configure.host      2001/04/30 14:54:13
*************** echo "$target"
*** 46,49 ****
--- 46,50 ----
  
  DIVIDESPEC=-fuse-divide-subroutine
+ EXCEPTIONSPEC=-fnon-call-exceptions
  
  case "${host}" in
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.80
diff -p -2 -c -r1.80 configure.in
*** configure.in        2001/04/26 04:29:57     1.80
--- configure.in        2001/04/30 14:54:13
*************** AC_SUBST(ZDEPS)
*** 634,637 ****
--- 634,638 ----
  AC_SUBST(ZINCS)
  AC_SUBST(DIVIDESPEC)
+ AC_SUBST(EXCEPTIONSPEC)
  
  AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
Index: libgcj.spec.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/libgcj.spec.in,v
retrieving revision 1.15
diff -p -2 -c -r1.15 libgcj.spec.in
*** libgcj.spec.in      2001/03/28 11:04:27     1.15
--- libgcj.spec.in      2001/04/30 14:54:13
***************
*** 7,11 ****
  *lib: -lgcj -lm @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(libo
rig)
  
! *jc1:  @DIVIDESPEC@ @JC1GCSPEC@
  
  #
--- 7,11 ----
  *lib: -lgcj -lm @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(libo
rig)
  
! *jc1: @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@
  
  #


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