blob: aa6600472e3d97752195937c4fe3846f87090116 [file] [log] [blame]
From 3e17aa937155660b6f9cb788e9c31b808eeee126 Mon Sep 17 00:00:00 2001
From: Tim Stahlhut <stahta01@gmail.com>
Date: Sat, 9 May 2020 17:19:23 -0400
Subject: mingw GCC option O3 has bugs too often;
use O2 instead. The problem is not in GCC; but,
the libraries that use it tend to use things that
are undefined behavior reveiled by O3 option.
---
Make.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Make.inc b/Make.inc
index 47c8a9adaa..455707e5f7 100644
--- a/Make.inc
+++ b/Make.inc
@@ -408,7 +408,7 @@ ifneq ($(OS), WINNT)
JCXXFLAGS += -pedantic
endif
DEBUGFLAGS := -O0 -ggdb2 -DJL_DEBUG_BUILD -fstack-protector-all
-SHIPFLAGS := -O3 -ggdb2 -falign-functions
+SHIPFLAGS := -O2 -ggdb2 -falign-functions
endif
ifeq ($(USECLANG),1)
--