From 7b48b069d1f78bec084383bf4f224a2d2d86416e Mon Sep 17 00:00:00 2001 From: Yoshikatsu Fujita Date: Tue, 24 May 2016 22:25:15 -0700 Subject: [PATCH] change -O3 to -O2 due to core dump --- Makefile | 4 ++-- src/core.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 46ce1fcf..7cfd3157 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ PREFIX = /usr/local CPPFLAGS = -DNDEBUG -DSYSTEM_SHARE_PATH='"$(DESTDIR)$(PREFIX)/share/$(PROG)"' -DSYSTEM_EXTENSION_PATH='"$(DESTDIR)$(PREFIX)/lib/$(PROG)"' -CXXFLAGS = -pipe -O3 -fstrict-aliasing +CXXFLAGS = -pipe -O2 -fstrict-aliasing SRCS = file.cpp main.cpp vm0.cpp object_heap_compact.cpp subr_flonum.cpp vm1.cpp object_set.cpp \ subr_hash.cpp vm2.cpp object_slab.cpp subr_list.cpp interpreter.cpp serialize.cpp nanoasm.cpp \ @@ -115,7 +115,7 @@ ifneq (,$(findstring Linux, $(UNAME))) ASFLAGS = --64 SRCS += ffi_stub_linux64.s endif - LDLIBS = -lpthread -ldl + LDLIBS = -pthread -Wl,--no-as-needed -ldl endif endif endif diff --git a/src/core.h b/src/core.h index 59a24340..c7fc8159 100644 --- a/src/core.h +++ b/src/core.h @@ -61,14 +61,14 @@ #define PREBIND_CLOSE 1 #define THREAD_LOCAL_SLAB_CACHE 1 #define LOCKFREE_ALLOC 1 -#define CONCURRENT_COLLECT 1 // 1 +#define CONCURRENT_COLLECT 1 #define PARALLEL_COLLECT 0 #define BOOT_R6RS_COMPLIANT_SYNTAX 1 #define UNSPECIFIED_GLOC_IS_SPECIAL 0 #define USE_DEBUG_BOOT 0 #define USE_DEBUG_CORE 0 -#define USE_INTERNED_CORE 1 // 1 +#define USE_INTERNED_CORE 1 #define USE_SNPRINT_FOR_FLONUM 0 #define USE_INLINED_CXR 0 #define USE_FLONUM_CONST 1