This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: -fasynchronous-exceptions
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: -fasynchronous-exceptions
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 26 Apr 2000 11:32:46 -0600
- Reply-To: tromey at cygnus dot com
Andrew notes that gcc's exception handling in leaf functions is
currently broken, but that using -fasynchronous-exceptions works
around it. So, I'm committing this patch.
2000-04-26 Tom Tromey <tromey@cygnus.com>
* Makefile.in: Rebuilt.
* Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
Tom
Index: Makefile.am
===================================================================
RCS file: /cvs/java/libgcj/libjava/Makefile.am,v
retrieving revision 1.59
diff -u -r1.59 Makefile.am
--- Makefile.am 2000/04/21 14:23:44 1.59
+++ Makefile.am 2000/04/26 17:26:51
@@ -80,8 +80,11 @@
WARNINGS = -W -Wall
## We need _GNU_SOURCE defined for some Linux builds. It doesn't hurt
## to always define it.
-AM_CXXFLAGS = -fno-rtti -fvtable-thunks @LIBGCJ_CXXFLAGS@ @EXCEPTIONSPEC@ \
- $(WARNINGS) -D_GNU_SOURCE
+## Note that we need -fasynchronous-exceptions because gcc is
+## currently broken with respect to exception handling in leaf
+## functions.
+AM_CXXFLAGS = -fno-rtti -fvtable-thunks -fasynchronous-exceptions \
+ @LIBGCJ_CXXFLAGS@ @EXCEPTIONSPEC@ $(WARNINGS) -D_GNU_SOURCE
if USING_GCC
AM_CFLAGS = @LIBGCJ_CFLAGS@ $(WARNINGS)
else