From 958f6a13103020396908a2252cf42d6b9a5ff95c Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 27 Jan 1995 04:24:09 +0000 Subject: * 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. --- gdb/testsuite/gdb.disasm/hppa.mt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.disasm') 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 -- cgit v1.1