summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-05-17 12:06:54 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-05-17 12:06:54 +0000
commit52eaf820105e86343f1d72a37e1ed55cb91c8f2d (patch)
treecfcc7fa9c4eec35b60c12099a123bf560b10ffa9
parent6588cd22682a4d188024397ec58cfa700a79d298 (diff)
downloadbinutils-redhat-52eaf820105e86343f1d72a37e1ed55cb91c8f2d.tar.gz
* lib/ld-lib.exp (run_dump_test): For options "warning" and
"error", append to earlier option values without adding a space.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/lib/ld-lib.exp13
2 files changed, 17 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index e726c76ff4..91ad2040e6 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-17 Hans-Peter Nilsson <hp@axis.com>
+
+ * lib/ld-lib.exp (run_dump_test): For options "warning" and
+ "error", append to earlier option values without adding a space.
+
2012-05-17 Alan Modra <amodra@gmail.com>
* ld-m68k/tls-ld-1.d: Update.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 9797dffe0f..a481ce7219 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -623,7 +623,18 @@ proc run_dump_test { name } {
if { $opt_name == "as" || $opt_name == "ld" } {
set opt_val [subst $opt_val]
}
- set opts($opt_name) [concat $opts($opt_name) $opt_val]
+
+ # Append differently whether it's a message (without space) or
+ # an option or list (with space).
+ switch -- $opt_name {
+ warning -
+ error {
+ append opts($opt_name) $opt_val
+ }
+ default {
+ set opts($opt_name) [concat $opts($opt_name) $opt_val]
+ }
+ }
}
foreach opt { as ld } {
regsub {\[big_or_little_endian\]} $opts($opt) \