Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Makefiles: switch -O6 to -O3

It's absurdly high and clang doesn't like it. This should make it easier
to build the first-stage under clang (second-stage and SWIG wrappers
reamin a large problem there). Also set the non-SWIG compilation options
by default.
  • Loading branch information...
commit 2a9cac6845dfe372654873c467d38b9e0e14eedb 1 parent 589c1bd
David McClosky dmcc authored
8 Makefile
View
@@ -72,15 +72,15 @@
# CFLAGS is used for all C and C++ compilation
#
-CFLAGS = -MMD -O6 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fstrict-aliasing $(GCCFLAGS)
+CFLAGS = -MMD -O3 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fstrict-aliasing $(GCCFLAGS)
LDFLAGS = $(GCCLDFLAGS)
EXEC = time
# for SWIG wrappers, use these flags instead
#
-CFLAGS = -MMD -O6 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fno-strict-aliasing -fPIC $(GCCFLAGS)
-LDFLAGS = $(GCCLDFLAGS)
-EXEC = time
+# CFLAGS = -MMD -O3 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fno-strict-aliasing -fPIC $(GCCFLAGS)
+# LDFLAGS = $(GCCLDFLAGS)
+# EXEC = time
# for debugging, uncomment the following CFLAGS, LDFLAGS and EXEC
#
2  Makefile.gavper
View
@@ -71,7 +71,7 @@
# CFLAGS is used for all C and C++ compilation
#
-CFLAGS = -MMD -O6 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fstrict-aliasing $(GCCFLAGS)
+CFLAGS = -MMD -O3 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fstrict-aliasing $(GCCFLAGS)
# for debugging, uncomment the following CFLAGS and LDFLAGS
#
2  Makefile.splh
View
@@ -71,7 +71,7 @@
# CFLAGS is used for all C and C++ compilation
#
-CFLAGS = -MMD -O6 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fstrict-aliasing $(GCCFLAGS)
+CFLAGS = -MMD -O3 -Wall -ffast-math -finline-functions -fomit-frame-pointer -fstrict-aliasing $(GCCFLAGS)
# for debugging, uncomment the following CFLAGS and LDFLAGS
#
2  second-stage/programs/prepare-data/Makefile
View
@@ -16,7 +16,7 @@ top: $(TARGETS)
# CXX = g++
# CC = $(CXX)
-# CFLAGS = -MMD -O6 -Wall -ffast-math -finline-functions -fstrict-aliasing $(GCCFLAGS)
+# CFLAGS = -MMD -O3 -Wall -ffast-math -finline-functions -fstrict-aliasing $(GCCFLAGS)
# CFLAGS = -g -MMD -Wall
2  second-stage/programs/wlle/Makefile
View
@@ -52,7 +52,7 @@ CC=gcc
# Compilation help: you may need to remove -march=native on older compilers.
GCCFLAGS=-march=native -mfpmath=sse -msse2 -mmmx
FOPENMP=-fopenmp
-CFLAGS=-MMD -O6 -ffast-math -fstrict-aliasing -Wall -finline-functions $(GCCFLAGS) $(FOPENMP)
+CFLAGS=-MMD -O3 -ffast-math -fstrict-aliasing -Wall -finline-functions $(GCCFLAGS) $(FOPENMP)
LDFLAGS=$(FOPENMP)
CXXFLAGS=${CFLAGS} -Wno-deprecated
Please sign in to comment.
Something went wrong with that request. Please try again.