mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
Tidy gas i386.exp
Possibly a quirk of my version of tcl, but I see "nm-new --help" being run on non-x86 targets. * testsuite/gas/i386/i386.exp: Return early if not x86.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-09-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/gas/i386/i386.exp: Return early if not x86.
|
||||||
|
|
||||||
2020-09-16 Alan Modra <amodra@gmail.com>
|
2020-09-16 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* config/obj-elf.c (obj_elf_visibility, elf_frob_symbol): Adjust
|
* config/obj-elf.c (obj_elf_visibility, elf_frob_symbol): Adjust
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
#
|
#
|
||||||
# i386 tests
|
# i386 tests
|
||||||
#
|
#
|
||||||
|
if { ![istarget "i*86-*-*"] && ![istarget "x86_64-*-*"] } then {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
proc gas_64_check { } {
|
proc gas_64_check { } {
|
||||||
global NM
|
global NM
|
||||||
global NMFLAGS
|
global NMFLAGS
|
||||||
@ -40,8 +44,7 @@ proc gas_bfd64_check { } {
|
|||||||
return [regexp "32bit/64bit/x32" [lindex $status 1]];
|
return [regexp "32bit/64bit/x32" [lindex $status 1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] then {
|
if [gas_32_check] then {
|
||||||
|
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
set old_ASFLAGS "$ASFLAGS"
|
set old_ASFLAGS "$ASFLAGS"
|
||||||
set ASFLAGS "$ASFLAGS --32"
|
set ASFLAGS "$ASFLAGS --32"
|
||||||
@ -674,7 +677,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Common tests
|
# Common tests
|
||||||
if [expr [istarget "i*86-*-*"] || [istarget "x86_64-*-*"]] then {
|
|
||||||
if {![istarget "i*86-*-elfiamcu"] && [gas_64_check]} then {
|
if {![istarget "i*86-*-elfiamcu"] && [gas_64_check]} then {
|
||||||
run_dump_test "intel-expr"
|
run_dump_test "intel-expr"
|
||||||
run_dump_test "string-ok"
|
run_dump_test "string-ok"
|
||||||
@ -706,10 +708,8 @@ if [expr [istarget "i*86-*-*"] || [istarget "x86_64-*-*"]] then {
|
|||||||
run_dump_test "svr4"
|
run_dump_test "svr4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] then {
|
|
||||||
|
|
||||||
|
if [gas_64_check] then {
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
set old_ASFLAGS "$ASFLAGS"
|
set old_ASFLAGS "$ASFLAGS"
|
||||||
set ASFLAGS "$ASFLAGS --64 --defsym x86_64=1 --strip-local-absolute"
|
set ASFLAGS "$ASFLAGS --64 --defsym x86_64=1 --strip-local-absolute"
|
||||||
|
Reference in New Issue
Block a user