This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
gcc-4.3.0-RC-20080301 test failures on ARM EABI
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Java Patch List <java-patches at gcc dot gnu dot org>, Andreas Tobler <andreast-list at fgznet dot ch>
- Date: Mon, 03 Mar 2008 17:04:42 +0000
- Subject: gcc-4.3.0-RC-20080301 test failures on ARM EABI
This is a testsuite bug that I'd like to fix on gcc 4.3 branch. It means
that all gcj tests fail on ARM EABI.
TCL's string match command doesn't have the semantics that the patch author
thought it had, and so a vital piece of logic isn't being executed in the
testsuite. string match has glob semantics rather than regexp semantics,
and this is needlessly obscure. Fixed thusly.
Andrew.
2008-03-03 Andrew Haley <aph@littlepinkcloud.com>
* testsuite/lib/libjava.exp (libjava_arguments): Use regexp
instead of string match when checking for linux targets.
Index: testsuite/lib/libjava.exp
===================================================================
--- testsuite/lib/libjava.exp (revision 131034)
+++ testsuite/lib/libjava.exp (working copy)
@@ -380,7 +380,7 @@
global wrapper_file wrap_compile_flags
lappend args "additional_flags=$wrap_compile_flags"
- if { [string match "linux" $target_triplet] } {
+ if { [regexp "linux" $target_triplet] } {
lappend args "additional_flags=-specs=libgcj-test.spec"
}