diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-27 04:24:09 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-27 04:24:09 +0000 |
commit | 958f6a13103020396908a2252cf42d6b9a5ff95c (patch) | |
tree | 23c1ae080c173bb4dc3e90eb40e07fd65f9bbc7d /gdb/testsuite/gdb.disasm | |
parent | 669c9fe334b3e9d865026e511c519d926ab6da71 (diff) | |
download | binutils-958f6a13103020396908a2252cf42d6b9a5ff95c.zip binutils-958f6a13103020396908a2252cf42d6b9a5ff95c.tar.gz binutils-958f6a13103020396908a2252cf42d6b9a5ff95c.tar.bz2 |
* gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
for HP assembler versus GNU assembler based on actual behavior of
$(CC), rather than assuming that $(AS) is always the GNU assembler.
Diffstat (limited to 'gdb/testsuite/gdb.disasm')
-rw-r--r-- | gdb/testsuite/gdb.disasm/hppa.mt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.disasm/hppa.mt b/gdb/testsuite/gdb.disasm/hppa.mt index e996a1a..d5ecdc8 100644 --- a/gdb/testsuite/gdb.disasm/hppa.mt +++ b/gdb/testsuite/gdb.disasm/hppa.mt @@ -1,5 +1,14 @@ EXECUTABLES = hppa hppa: hppa.s - $(AS) $(ASFLAGS) $(srcdir)/hppa.s -o hppa.o - $(CC) $(CFLAGS) $(LDFLAGS) -o hppa hppa.o $(LIBS) + if $(CC) -c $(srcdir)/hppa.s 2>errs; then \ + $(CC) $(CFLAGS) $(LDFLAGS) -o hppa hppa.o $(LIBS); \ + true; \ + else \ + if grep 'Opcode not defined - DIAG' errs \ + >/dev/null; then \ + echo HP assembler in use--skipping disasm tests; true; \ + else \ + cat errs; false; \ + fi; \ + fi |