"untested" instead of "failed".
+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
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
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"] {