aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-07-14 18:42:01 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-07-14 18:42:01 +0000
commit22ec3bd17134c0f453f6ca23350daca6463a4258 (patch)
tree2163181e9c6dfde3ac7f9660dfd370e1c5e737fa
parent955057fccb786383d2e3a756ddd85e012fa7663f (diff)
downloadbinutils-22ec3bd17134c0f453f6ca23350daca6463a4258.zip
binutils-22ec3bd17134c0f453f6ca23350daca6463a4258.tar.gz
binutils-22ec3bd17134c0f453f6ca23350daca6463a4258.tar.bz2
2005-07-14 H.J. Lu <hongjiu.lu@intel.com>
* lib/ld-lib.exp (run_ld_link_exec_tests): Ignore assembler warnings.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/lib/ld-lib.exp26
2 files changed, 12 insertions, 19 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 52102f0..bc42d5a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* lib/ld-lib.exp (run_ld_link_exec_tests): Update comments.
2005-07-14 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 7f2f386..ca260c8 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1281,6 +1281,7 @@ proc run_ld_link_exec_tests { ldtests } {
global env
global CC
global CFLAGS
+ global errcnt
foreach testitem $ldtests {
set testname [lindex $testitem 0]
@@ -1291,7 +1292,6 @@ proc run_ld_link_exec_tests { ldtests } {
set expfile [lindex $testitem 5]
set cflags [lindex $testitem 6]
set objfiles {}
- set is_unresolved 0
set failed 0
# verbose -log "Testname is $testname"
@@ -1306,17 +1306,10 @@ proc run_ld_link_exec_tests { ldtests } {
set objfile "tmpdir/[file rootname $src_file].o"
lappend objfiles $objfile
- if ![ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/$src_file $objfile] {
- set is_unresolved 1
- break
- }
- }
-
- # Catch assembler errors.
- if { $is_unresolved != 0 } {
- unresolved $testname
- continue
- }
+ # We ignore warnings since some compilers may generate
+ # incorrect section attributes and the assembler will warn
+ # them.
+ ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/$src_file $objfile
if ![ld_link $ld $binfile "-L$srcdir/$subdir $ld_options $objfiles"] {
set failed 1
@@ -1345,15 +1338,10 @@ proc run_ld_link_exec_tests { ldtests } {
if { $failed != 0 } {
fail $testname
- } else { if { $is_unresolved == 0 } {
+ } else {
+ set errcnt 0
pass $testname
} }
}
-
- # Catch action errors.
- if { $is_unresolved != 0 } {
- unresolved $testname
- continue
- }
}
}