[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-sparse
Subject:    [PATCH v4 38/38] build: let -fno-strict-aliasing be a mandatory flag
From:       Luc Van Oostenryck <luc.vanoostenryck () gmail ! com>
Date:       2017-11-11 14:24:37
Message-ID: 20171111142437.67359-39-luc.vanoostenryck () gmail ! com
[Download RAW message or body]

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a2d3e8c89..f26c1f962 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ OS = linux
 
 
 CC = gcc
-CFLAGS = -O2 -finline-functions -fno-strict-aliasing -g
+CFLAGS = -O2 -finline-functions -g
 CFLAGS += -Wall -Wwrite-strings
 LD = gcc
 AR = ar
@@ -79,6 +79,11 @@ INST_MAN1=sparse.1 cgcc.1
 
 all:
 
+########################################################################
+# common flags/options/...
+
+cflags = -fno-strict-aliasing
+
 GCC_BASE := $(shell $(CC) --print-file-name=)
 cflags += -DGCC_BASE=\"$(GCC_BASE)\"
 
-- 
2.14.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic