Patch: -fasynchronous-exceptions

Tom Tromey tromey@cygnus.com
Wed Apr 26 10:28:00 GMT 2000


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


More information about the Java-patches mailing list