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]

FYI: Add -findirect-dispatch support to the testsuite


The libjava testsuite was not checking BC-ABI compilation and execution. This patch adds an -findirect-dispatch configuration to the options that are used when building & running the tests.

It reveals one failure:

FAIL: assign -findirect-dispatch execution - bytecode->native test
FAIL: assign -O3 -findirect-dispatch execution - bytecode->native test

I'm checking this in to the trunk.

Bryce


2006-05-02  Bryce McKinlay  <mckinlay@redhat.com>

	* testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
	-findirect-dispatch compilation.

Index: testsuite/lib/libjava.exp
===================================================================
--- testsuite/lib/libjava.exp	(revision 113122)
+++ testsuite/lib/libjava.exp	(working copy)
@@ -908,6 +908,12 @@
 proc test_libjava { options srcfile compile_args inpfile resultfile exec_args } {
     test_libjava_from_source $options $srcfile $compile_args $inpfile $resultfile $exec_args
     test_libjava_from_javac $options $srcfile $compile_args $inpfile $resultfile $exec_args
+    
+    # Test BC-ABI compilation, currently for bytecode->native only
+    set compile_args_bcabi $compile_args
+    lappend compile_args_bcabi "-findirect-dispatch"
+
+    test_libjava_from_javac $options $srcfile $compile_args_bcabi $inpfile $resultfile $exec_args
  }
 
 #

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