From e1b3d3912f4cf3696bd4acc1d551aa3a343a5145 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Mon, 13 Feb 2017 18:20:56 +0100 Subject: Disable strict-aliasing optimizations GCC 4.9.2 produces type-punning warnings about some LLVM headers. Don't take any chance and just squash the issue by ignoring strict aliasing rules altogether. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 674dbbd..d4c4ff3 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ LLVM_COMPONENTS = all LLVM_CXXFLAGS = $(shell llvm-config --cxxflags) LLVM_LDFLAGS = $(shell llvm-config --ldflags) -CXXFLAGS = -std=c++11 -fPIC -Wall +CXXFLAGS = -std=c++11 -fPIC -Wall -fno-strict-aliasing CXXFLAGS += -fvisibility-inlines-hidden -fno-exceptions -fno-rtti CXXFLAGS += $(LLVM_CXXFLAGS) -- cgit v1.2.3