Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2015 08:42:23 -0300
From:      Pedro Arthur <bygrandao@gmail.com>
To:        "<freebsd-hackers@freebsd.org>" <freebsd-hackers@freebsd.org>
Subject:   [PATCH] fix CLANG_OPT_SMALL flags
Message-ID:  <CAKN1MR77Zjxow3FHPJQD8OJKUYmXQXb6tPHgo0PoPfdNi1FadA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,
Here is a patch which fix the CLANG_OPT_SMALL flags.

---
 share/mk/bsd.sys.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 3cb44c5..286fa4f 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -128,9 +128,9 @@ CWARNFLAGS+=    -Wno-unknown-pragmas
 CLANG_NO_IAS=     -no-integrated-as
 .endif
 CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\
-         -mllvm -simplifycfg-dup-ret -mllvm
+         -mllvm -simplifycfg-dup-ret
 .if ${COMPILER_VERSION} >= 30500
-CLANG_OPT_SMALL+= -enable-gvn=false
+CLANG_OPT_SMALL+= -mllvm -enable-gvn=false
 .endif
 CFLAGS.clang+=     -Qunused-arguments
 .if ${MACHINE_CPUARCH} == "sparc64"
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKN1MR77Zjxow3FHPJQD8OJKUYmXQXb6tPHgo0PoPfdNi1FadA>