From ef2b0f89a0dfa8ed3ebf1aaa683a1c24e6a26939 Mon Sep 17 00:00:00 2001 From: weiyu Date: Mon, 8 Jul 2019 16:51:25 -0700 Subject: [PATCH] update Makefile and fix compilation error for printf.o temporarily --- Makefile | 5 ++++- classlist.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f03c7ca6..e5fc14f7 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ OBJECTS := libthreads.o schedule.o model.o threads.o librace.o action.o \ datarace.o impatomic.o cmodelint.o \ snapshot.o malloc.o mymemory.o common.o mutex.o conditionvariable.o \ context.o execution.o libannotate.o plugins.o pthread.o futex.o fuzzer.o \ - sleeps.o history.o funcnode.o printf.o + sleeps.o history.o funcnode.o funcinst.o printf.o CPPFLAGS += -Iinclude -I. LDFLAGS := -ldl -lrt -rdynamic @@ -36,6 +36,9 @@ README.html: README.md malloc.o: malloc.c $(CC) -fPIC -c malloc.c -DMSPACES -DONLY_MSPACES -DHAVE_MMAP=1 $(CPPFLAGS) -Wno-unused-variable +printf.o: printf.c + $(CC) -fPIC -c printf.c $(CPPFLAGS) + futex.o: futex.cc $(CXX) -fPIC -c futex.cc -std=c++11 $(CPPFLAGS) diff --git a/classlist.h b/classlist.h index 3aca3e11..d3d9d3d2 100644 --- a/classlist.h +++ b/classlist.h @@ -21,6 +21,7 @@ struct model_snapshot_members; struct bug_message; typedef SnapList action_list_t; typedef SnapList func_id_list_t; +typedef SnapList func_inst_list_t; extern volatile int forklock; #endif -- 2.34.1