mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 03:24:41 +08:00
* lib/ld-lib.exp (run_dump_test): For options "warning" and
"error", append to earlier option values without adding a space.
This commit is contained in:
parent
3daa201b39
commit
134fa82ef4
@ -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.
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user