* 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.
This commit is contained in:
parent
669c9fe334
commit
958f6a1310
3 changed files with 25 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
Thu Jan 26 19:20:34 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Thu Jan 26 19:20:34 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* TODO: Suggest a few more stepping tests.
|
* TODO: Suggest a few more stepping tests.
|
||||||
|
|
||||||
Wed Jan 25 14:52:41 1995 Stan Shebs <shebs@andros.cygnus.com>
|
Wed Jan 25 14:52:41 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
EXECUTABLES = hppa
|
EXECUTABLES = hppa
|
||||||
hppa: hppa.s
|
hppa: hppa.s
|
||||||
$(AS) $(ASFLAGS) $(srcdir)/hppa.s -o hppa.o
|
if $(CC) -c $(srcdir)/hppa.s 2>errs; then \
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o hppa hppa.o $(LIBS)
|
$(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
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
weird.o: $(srcdir)/weird.def $(srcdir)/hppa.sed
|
weird.o: $(srcdir)/weird.def $(srcdir)/hppa.sed
|
||||||
sed -f $(srcdir)/hppa.sed <$(srcdir)/weird.def >weird.s
|
sed -f $(srcdir)/hppa.sed <$(srcdir)/weird.def >weird.s
|
||||||
$(AS) weird.s -o weird.o
|
if $(CC) -c weird.s 2>errs; then \
|
||||||
|
true; \
|
||||||
|
else \
|
||||||
|
if grep 'Directive name not recognized - STABS' errs \
|
||||||
|
>/dev/null; then \
|
||||||
|
echo HP assembler in use--skipping stabs tests; true; \
|
||||||
|
else \
|
||||||
|
cat errs; false; \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue