From 6dad94c5e5f7e7ab396396892cbe26c15c480694 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 7 Aug 2018 23:24:49 -0700 Subject: [PATCH] makefile: Disable optimization on OS X compiling with clang The VAX simulator is counting on undefined C language behaviors which allow the optimizer to correctly produce unexpected results. Hopefully this will be sufficient until the VAX architecture verifier (AXE) can be found to validate a rewritten simulator. As reported in #598 --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 465c46d4..a79f2b04 100644 --- a/makefile +++ b/makefile @@ -1042,7 +1042,7 @@ ifneq ($(DEBUG),) BUILD_FEATURES = - debugging support else ifneq (clang,$(findstring clang,$(COMPILER_NAME))) - CFLAGS_O = -O2 + CFLAGS_O = -O0 ifeq (Darwin,$(OSTYPE)) NO_LTO = 1 endif