loader.exp (gcj_loader_test_one): Use libjava_prune_warnings.
* libjava.loader/loader.exp (gcj_loader_test_one): Use libjava_prune_warnings. (gcj_loader_run): Likewise. * libjava.mauve/mauve.exp (test_mauve): Use libjava_prune_warnings. (test_mauve_sim): Likewise. * libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Use libjava_prune_warnings. (gcj_jni_build_header): Likewise. * lib/libjava.exp (libjava_prune_warnings): New proc. (gcj_link): Use it. (test_libjava_from_source): Likewise. (test_libjava_from_javac): Likewise. From-SVN: r60089
This commit is contained in:
parent
dd05b1b461
commit
19eaa5a38b
5 changed files with 56 additions and 21 deletions
|
@ -15,7 +15,8 @@ proc gcj_jni_compile_c_to_so {file {options {}}} {
|
|||
# Find jni.h.
|
||||
lappend options "additional_flags=-I$srcdir/../include"
|
||||
|
||||
set x [prune_warnings [target_compile $file $soname executable $options]]
|
||||
set x [libjava_prune_warnings \
|
||||
[target_compile $file $soname executable $options]]
|
||||
if {$x != ""} {
|
||||
verbose "target_compile failed: $x" 2
|
||||
fail "$name.c compilation"
|
||||
|
@ -30,7 +31,7 @@ proc gcj_jni_compile_c_to_so {file {options {}}} {
|
|||
proc gcj_jni_build_header {file} {
|
||||
set gcjh [find_gcjh]
|
||||
set file [file rootname $file]
|
||||
set x [string trim [prune_warnings \
|
||||
set x [string trim [libjava_prune_warnings \
|
||||
[lindex [local_exec "$gcjh -jni $file" "" "" 300] 1]]]
|
||||
if {$x != ""} {
|
||||
verbose "local_exec failed: $x" 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue