2005-07-14 H.J. Lu <hongjiu.lu@intel.com>

* lib/ld-lib.exp (run_ld_link_exec_tests): Ignore assembler
	warnings.
This commit is contained in:
H.J. Lu 2005-07-14 18:42:01 +00:00
parent 955057fccb
commit 22ec3bd171
2 changed files with 12 additions and 19 deletions

View File

@ -1,3 +1,8 @@
2005-07-14 H.J. Lu <hongjiu.lu@intel.com>
* lib/ld-lib.exp (run_ld_link_exec_tests): Ignore assembler
warnings.
2005-07-14 H.J. Lu <hongjiu.lu@intel.com> 2005-07-14 H.J. Lu <hongjiu.lu@intel.com>
* lib/ld-lib.exp (run_ld_link_exec_tests): Update comments. * lib/ld-lib.exp (run_ld_link_exec_tests): Update comments.

View File

@ -1281,6 +1281,7 @@ proc run_ld_link_exec_tests { ldtests } {
global env global env
global CC global CC
global CFLAGS global CFLAGS
global errcnt
foreach testitem $ldtests { foreach testitem $ldtests {
set testname [lindex $testitem 0] set testname [lindex $testitem 0]
@ -1291,7 +1292,6 @@ proc run_ld_link_exec_tests { ldtests } {
set expfile [lindex $testitem 5] set expfile [lindex $testitem 5]
set cflags [lindex $testitem 6] set cflags [lindex $testitem 6]
set objfiles {} set objfiles {}
set is_unresolved 0
set failed 0 set failed 0
# verbose -log "Testname is $testname" # verbose -log "Testname is $testname"
@ -1306,17 +1306,10 @@ proc run_ld_link_exec_tests { ldtests } {
set objfile "tmpdir/[file rootname $src_file].o" set objfile "tmpdir/[file rootname $src_file].o"
lappend objfiles $objfile lappend objfiles $objfile
if ![ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/$src_file $objfile] { # We ignore warnings since some compilers may generate
set is_unresolved 1 # incorrect section attributes and the assembler will warn
break # them.
} ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/$src_file $objfile
}
# Catch assembler errors.
if { $is_unresolved != 0 } {
unresolved $testname
continue
}
if ![ld_link $ld $binfile "-L$srcdir/$subdir $ld_options $objfiles"] { if ![ld_link $ld $binfile "-L$srcdir/$subdir $ld_options $objfiles"] {
set failed 1 set failed 1
@ -1345,15 +1338,10 @@ proc run_ld_link_exec_tests { ldtests } {
if { $failed != 0 } { if { $failed != 0 } {
fail $testname fail $testname
} else { if { $is_unresolved == 0 } { } else {
set errcnt 0
pass $testname pass $testname
} } } }
} }
# Catch action errors.
if { $is_unresolved != 0 } {
unresolved $testname
continue
}
} }
} }