aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-10 13:31:59 +0000
committerAlan Modra <amodra@gmail.com>2003-06-10 13:31:59 +0000
commitd04428bdb429aa7206e45f5273898b5918ae2f18 (patch)
tree8a7690eb0a1d760669221e2e16eaf4bf39b41dee /gas/testsuite/lib
parentd199a636532144ffb0a8a3d2fae5fc5744558480 (diff)
downloadgdb-d04428bdb429aa7206e45f5273898b5918ae2f18.zip
gdb-d04428bdb429aa7206e45f5273898b5918ae2f18.tar.gz
gdb-d04428bdb429aa7206e45f5273898b5918ae2f18.tar.bz2
* gas/cfi/cfi.exp: Use here. Only run tests when ELF.
* gas/macros/and.s: Avoid .set so we don't break mips.
Diffstat (limited to 'gas/testsuite/lib')
-rw-r--r--gas/testsuite/lib/gas-defs.exp37
1 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp
index 5a3af8c..c82bd8a 100644
--- a/gas/testsuite/lib/gas-defs.exp
+++ b/gas/testsuite/lib/gas-defs.exp
@@ -182,6 +182,43 @@ proc gas_init { args } {
return
}
+#
+# is_elf_format
+# true if the object format is known to be ELF
+#
+proc is_elf_format {} {
+ if { ![istarget *-*-sysv4*] \
+ && ![istarget *-*-unixware*] \
+ && ![istarget *-*-elf*] \
+ && ![istarget *-*-eabi*] \
+ && ![istarget hppa*64*-*-hpux*] \
+ && ![istarget *-*-linux*] \
+ && ![istarget *-*-irix5*] \
+ && ![istarget *-*-irix6*] \
+ && ![istarget *-*-netbsd*] \
+ && ![istarget *-*-solaris2*] } {
+ return 0
+ }
+
+ if { [istarget *-*-linux*aout*] \
+ || [istarget *-*-linux*oldld*] } {
+ return 0
+ }
+
+ if { ![istarget *-*-netbsdelf*] \
+ && ([istarget *-*-netbsd*aout*] \
+ || [istarget *-*-netbsdpe*] \
+ || [istarget arm*-*-netbsd*] \
+ || [istarget sparc-*-netbsd*] \
+ || [istarget i*86-*-netbsd*] \
+ || [istarget m68*-*-netbsd*] \
+ || [istarget vax-*-netbsd*] \
+ || [istarget ns32k-*-netbsd*]) } {
+ return 0
+ }
+ return 1
+}
+
# run_dump_test FILE (optional:) EXTRA_OPTIONS
#