2018-03-13 16:01:52 +00:00
|
|
|
From 34365c8c021a32150935d0af3087195e3e99eef9 Mon Sep 17 00:00:00 2001
|
2017-02-28 16:55:01 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Fri, 10 Feb 2017 15:16:42 -0500
|
2018-03-13 16:01:52 +00:00
|
|
|
Subject: [PATCH 13/22] make clang not complain about -fno-merge-all-constants
|
2017-02-28 16:55:01 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
Make.defaults | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/Make.defaults b/Make.defaults
|
2018-03-13 16:01:52 +00:00
|
|
|
index 6d300fb0f24..a457190aa3a 100755
|
2017-02-28 16:55:01 +00:00
|
|
|
--- a/Make.defaults
|
|
|
|
+++ b/Make.defaults
|
2018-03-13 16:01:52 +00:00
|
|
|
@@ -170,8 +170,9 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \
|
2017-02-28 16:55:01 +00:00
|
|
|
else
|
|
|
|
CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \
|
|
|
|
-fshort-wchar -fno-strict-aliasing \
|
2018-03-13 16:01:52 +00:00
|
|
|
- -fno-merge-all-constants -ffreestanding -fno-stack-protector \
|
2017-02-28 16:55:01 +00:00
|
|
|
- -fno-stack-check
|
2018-03-13 16:01:52 +00:00
|
|
|
+ -ffreestanding -fno-stack-protector -fno-stack-check \
|
2017-02-28 16:55:01 +00:00
|
|
|
+ -fno-stack-check \
|
2018-03-13 16:01:52 +00:00
|
|
|
+ $(if $(findstring gcc,$(CC)),-fno-merge-all-constants,)
|
2017-02-28 16:55:01 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ARFLAGS += -U
|
|
|
|
--
|
2018-03-13 16:01:52 +00:00
|
|
|
2.14.3
|
2017-02-28 16:55:01 +00:00
|
|
|
|