This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
RFC: run testsuite with -O3
- From: Jeff Sturm <jsturm at one-point dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 3 Sep 2003 21:45:16 -0400 (EDT)
- Subject: 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: