Print this page
saveargs: let disasm do the lifting
3544 save-args matcher could be considerably more robust
3545 save-args matcher should accept saves maybe out-of-order
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
*** 1,5 ****
--- 1,6 ----
+
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
*** 19,37 ****
.KEEP_STATE:
OBJECTS = testmatch.o saveargs.o data.o
PROG = testmatch
CPPFLAGS += -I$(SRC)/common/saveargs
ASFLAGS += -P
AS_CPPFLAGS += -D_ASM
%.o: $(SRC)/common/saveargs/%.c
$(COMPILE.c) -o $@ $<
$(PROG): $(OBJECTS)
! $(LINK.c) -o $@ $(OBJECTS) -lc
clean:
$(RM) $(OBJECTS) $(PROG)
clobber: clean
--- 20,42 ----
.KEEP_STATE:
OBJECTS = testmatch.o saveargs.o data.o
PROG = testmatch
+ LDLIBS64 += -ldisasm
+
CPPFLAGS += -I$(SRC)/common/saveargs
ASFLAGS += -P
AS_CPPFLAGS += -D_ASM
+ CERRWARN += -_gcc=-Wno-parentheses
+ CERRWARN += -_gcc=-Wno-uninitialized
%.o: $(SRC)/common/saveargs/%.c
$(COMPILE.c) -o $@ $<
$(PROG): $(OBJECTS)
! $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS64)
clean:
$(RM) $(OBJECTS) $(PROG)
clobber: clean