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]

RFC: run testsuite with -O3


I've been testing gcj with the following in my tree.  From having no
regular test coverage for -O3, I found that some regressions had crept
into gcj.  Testing regularly with -O3 should prevent that.

The obvious drawback is longer times to run the testsuite.  As a
compromise, we could add -O3 to compile.exp only with just a small
increase.

I ran some timings on my i686-pc-linux-gnu machine:

unmodified testsuite:   10:44
compile.exp with -O3:   12:04
compile.exp and
lang.exp with -O3:      16:12

That's a 12% increase for compile.exp, 50% for both.

Does anyone else think this is worthwhile?


2003-09-03  Jeff Sturm  <jsturm@one-point.com>

	* libjava.compile/compile.exp: Add test_libjava with -O3.
	* libjava.lang/lang.exp: Likewise.

Index: libjava.compile/compile.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.compile/compile.exp,v
retrieving revision 1.3
diff -u -p -r1.3 compile.exp
--- libjava.compile/compile.exp	18 Jul 2002 17:42:31 -0000	1.3
+++ libjava.compile/compile.exp	4 Sep 2003 01:30:12 -0000
@@ -13,6 +13,7 @@ foreach x $srcfiles {

     test_libjava "" "$x" "" "" "" $args
     test_libjava "" "$x" "-O" "" "" $args
+    test_libjava "" "$x" "-O3" "" "" $args
 }

 # Local Variables:
Index: libjava.lang/lang.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.lang/lang.exp,v
retrieving revision 1.2
diff -u -p -r1.2 lang.exp
--- libjava.lang/lang.exp	18 Jul 2002 17:42:31 -0000	1.2
+++ libjava.lang/lang.exp	4 Sep 2003 01:30:12 -0000
@@ -28,6 +28,7 @@ foreach x $srcfiles {

     test_libjava $options "${prefix}.java" "" $inpfile $resfile $args
     test_libjava $options "${prefix}.java" "-O" $inpfile $resfile $args
+    test_libjava $options "${prefix}.java" "-O3" $inpfile $resfile $args
 }

 # Local Variables:



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