* ld-gc/gc.exp (test_gc): Let missing C compiler make tests

"untested" instead of "failed".
This commit is contained in:
Hans-Peter Nilsson 2008-01-14 19:52:43 +00:00
parent cc86f28f31
commit 3becfab9d2
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-14 Tristan Gingold <gingold@adacore.com>
* ld-gc/gc.exp (test_gc): Let missing C compiler make tests
"untested" instead of "failed".
2008-01-10 Tristan Gingold <gingold@adacore.com>
* lib/ld-lib.exp (check_gc_sections_available): Now available on

View File

@ -27,7 +27,9 @@ if ![check_gc_sections_available] {
set cflags "-ffunction-sections -fdata-sections"
set objfile "tmpdir/gc.o"
ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/gc.c $objfile
if { [is_remote host] || [which $CC] } {
ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/gc.c $objfile
}
proc test_gc { testname filename linker ldflags} {
global nm
@ -36,6 +38,11 @@ proc test_gc { testname filename linker ldflags} {
global nm_output
global objfile
if ![file readable $objfile ] {
untested $testname
return
}
set outfile "tmpdir/$filename"
if ![ld_simple_link $linker $outfile "-L$srcdir/$subdir $ldflags $objfile"] {