Skip to content

Commit

Permalink
change -O3 to -O2 due to core dump
Browse files Browse the repository at this point in the history
  • Loading branch information
fujita-y committed May 25, 2016
1 parent f25bb08 commit 7b48b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b48b06

Please sign in to comment.