Darwin compilation settings; optimiser bug requires lower compiler opt level

This commit is contained in:
Hrvoje Jasak 2019-05-01 13:55:56 +02:00
parent b71851619f
commit 99a5e3ecc8
6 changed files with 8 additions and 13 deletions

View file

@ -1,8 +1,8 @@
.SUFFIXES: .C .cxx .cc .cpp
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-unused-comparison
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wno-overloaded-virtual -Wno-unused-comparison -Wno-undefined-var-template -Wno-null-dereference
CC = $(WM_CXX) -m64 -ftrapping-math
CC = $(WM_CXX) -m64 -std=c++11 -ftrapping-math
# -fsignaling-nans
include $(RULES)/c++$(WM_COMPILE_OPTION)

View file

@ -1,5 +1,2 @@
c++DBUG =
# c++OPT = -O4
c++OPT = -O3
#c++OPT = -march=nocona -O3
# -ftree-vectorize -ftree-vectorizer-verbose=3
c++OPT = -O1 -ftree-vectorize

View file

@ -1,8 +1,8 @@
.SUFFIXES: .C .cxx .cc .cpp
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wno-overloaded-virtual -Wno-unsequenced -Wno-c++11-extensions -Wno-unused-comparison -Wno-undefined-var-template -Wno-null-dereference
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wno-overloaded-virtual -Wno-unsequenced -Wno-unused-comparison -Wno-undefined-var-template -Wno-null-dereference
CC = $(WM_CXX) $(WM_CXXFLAGS) -ftrapping-math
CC = $(WM_CXX) -g -std=c++11 $(WM_CXXFLAGS) -ftrapping-math
include $(RULES)/c++$(WM_COMPILE_OPTION)

View file

@ -1,2 +1,2 @@
c++DBUG = -ggdb2 -DFULLDEBUG
c++OPT = -O0 -fdefault-inline
c++OPT = -O0

View file

@ -1,4 +1,2 @@
c++DBUG =
c++OPT = -O3
#c++OPT = -march=nocona -O3
# -ftree-vectorize -ftree-vectorizer-verbose=3
c++OPT = -O1

View file

@ -1,2 +1,2 @@
cDBUG = -ggdb -DFULLDEBUG
cOPT = -O1 -fdefault-inline -finline-functions
cOPT = -O1 -finline-functions