This is the mail archive of the java-patches@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]
Other format: [Raw text]

Patch: enable -fcheck-references for specific targets


This patch lets us enable -fcheck-references for specific targets by
tweaking configure.host.
It also enables the use of -fcheck-references for xscale-elf.

AG



Wed Mar 20 23:55:01 2002  Anthony Green  <green@redhat.com>

	* libgcj.spec.in: Add CHECKREFSPEC.
	* configure.in: Ditto.
	* configure.host: Ditto.  Check references for xscale-elf.
	* configure: Rebuilt.

Index: libjava/configure.host
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.host,v
retrieving revision 1.23.2.3
diff -u -p -r1.23.2.3 configure.host
--- configure.host	2002/03/16 00:35:42	1.23.2.3
+++ configure.host	2002/03/21 19:39:27
@@ -58,6 +58,7 @@ echo "$target"
 
 DIVIDESPEC=-fuse-divide-subroutine
 EXCEPTIONSPEC=-fnon-call-exceptions
+CHECKREFSPEC=
 
 case "${host}" in
   mips-tx39-*|mipstx39-unknown-*)
@@ -108,6 +109,8 @@ case "${host}" in
 	with_libffi_default=no
 	PROCESS=Ecos
 	FILE=Posix
+	CHECKREFSPEC=-fcheck-references
+	EXCEPTIONSPEC=
 	enable_java_net_default=no
 	enable_getenv_properties_default=no
 	enable_main_args_default=no
@@ -117,3 +120,4 @@ esac
 libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
 libgcj_cxxflags="${libgcj_cxxflags} ${libgcj_flags}"
 libgcj_javaflags="${libgcj_javaflags} ${libgcj_flags}"
+
Index: libjava/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.114.2.7
diff -u -p -r1.114.2.7 configure.in
--- configure.in	2002/03/18 06:30:17	1.114.2.7
+++ configure.in	2002/03/21 19:39:27
@@ -736,6 +736,7 @@ AC_SUBST(ZLIBS)
 AC_SUBST(SYS_ZLIBS)
 AC_SUBST(ZINCS)
 AC_SUBST(DIVIDESPEC)
+AC_SUBST(CHECKREFSPEC)
 AC_SUBST(EXCEPTIONSPEC)
 
 AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
Index: libjava/libgcj.spec.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/libgcj.spec.in,v
retrieving revision 1.20
diff -u -p -r1.20 libgcj.spec.in
--- libgcj.spec.in	2001/08/01 12:33:38	1.20
+++ libgcj.spec.in	2002/03/21 19:39:27
@@ -6,4 +6,4 @@
 %rename lib liborig
 *lib: -lgcj -lm @LIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(liborig)
 
-*jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ -fkeep-inline-functions
+*jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @CHECKREFSPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ -fkeep-inline-functions




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