Use -O3 for IBM XL C/C++ (GH #502)

We held back XL C/C++ due to warnings and self test failures. Since clearing Issue 502, we are OK for -O3 so we can live with the warnings.
This commit is contained in:
Jeffrey Walton 2017-09-16 02:19:06 -04:00
parent 205ebe0871
commit aa348abd15
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -379,9 +379,9 @@ ifeq ($(XLC_COMPILER),1)
CXXFLAGS := $(CXXFLAGS:-fPIC=-qpic)
endif
# Warnings and intermittent failures on early IBM XL C/C++
ifneq ($(findstring -O3,$(CXXFLAGS)),)
CXXFLAGS := $(CXXFLAGS:-O3=-O2)
endif
#ifneq ($(findstring -O3,$(CXXFLAGS)),)
# CXXFLAGS := $(CXXFLAGS:-O3=-O2)
#endif
endif
endif # IS_X86