Update LLVM/Clang snapshot to r191105. This brings in a better detection

of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
This commit is contained in:
joerg 2013-09-21 22:28:12 +00:00
parent 795a6d5517
commit 3657cb7f1d
15 changed files with 42 additions and 27 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: md.amd64,v 1.198 2013/08/11 22:29:02 joerg Exp $
# $NetBSD: md.amd64,v 1.199 2013/09/21 22:28:12 joerg Exp $
./usr/include/amd64 comp-c-include
./usr/include/amd64/ansi.h comp-c-include
./usr/include/amd64/aout_machdep.h comp-c-include
@ -163,6 +163,7 @@
./usr/include/clang-3.4/prfchwintrin.h comp-c-include llvm
./usr/include/clang-3.4/rdseedintrin.h comp-c-include llvm
./usr/include/clang-3.4/rtmintrin.h comp-c-include llvm
./usr/include/clang-3.4/shaintrin.h comp-c-include llvm
./usr/include/clang-3.4/smmintrin.h comp-c-include llvm
./usr/include/clang-3.4/tmmintrin.h comp-c-include llvm
./usr/include/clang-3.4/wmmintrin.h comp-c-include llvm

View File

@ -1,4 +1,4 @@
# $NetBSD: md.i386,v 1.136 2013/08/11 22:29:02 joerg Exp $
# $NetBSD: md.i386,v 1.137 2013/09/21 22:28:12 joerg Exp $
./usr/include/clang-3.0/avx2intrin.h comp-obsolete obsolete
./usr/include/clang-3.0/avxintrin.h comp-obsolete obsolete
./usr/include/clang-3.0/bmi2intrin.h comp-obsolete obsolete
@ -94,6 +94,7 @@
./usr/include/clang-3.4/prfchwintrin.h comp-c-include llvm
./usr/include/clang-3.4/rdseedintrin.h comp-c-include llvm
./usr/include/clang-3.4/rtmintrin.h comp-c-include llvm
./usr/include/clang-3.4/shaintrin.h comp-c-include llvm
./usr/include/clang-3.4/smmintrin.h comp-c-include llvm
./usr/include/clang-3.4/tmmintrin.h comp-c-include llvm
./usr/include/clang-3.4/wmmintrin.h comp-c-include llvm

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.7 2013/08/11 14:42:04 tsutsui Exp $
# $NetBSD: Makefile.inc,v 1.8 2013/09/21 22:28:12 joerg Exp $
WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare
@ -7,7 +7,7 @@ WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare
USE_FORT?= yes # network client/server
CWARNFLAGS.clang+= -Wno-tautological-compare \
-Wno-conversion -Wno-constant-logical-operand \
-Wno-format-security
-Wno-format-security -Wno-error=unused-const-variable
DIST:= ${.PARSEDIR}/dist
BIND:= ${.PARSEDIR}/../bind/dist

View File

@ -1,8 +1,9 @@
# $NetBSD: Makefile.inc,v 1.1 2012/03/23 21:29:44 christos Exp $
# $NetBSD: Makefile.inc,v 1.2 2013/09/21 22:28:12 joerg Exp $
WARNS?= 1 # XXX -Wcast-qual -Wshadow
CWARNFLAGS.clang+= -Wno-format -Wno-tautological-compare \
-Wno-self-assign -Wno-array-bounds
-Wno-self-assign -Wno-array-bounds \
-Wno-error=unused-const-variable
.include <bsd.own.mk>

View File

@ -1,2 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2013/04/11 16:59:16 christos Exp $
# $NetBSD: Makefile.inc,v 1.2 2013/09/21 22:28:12 joerg Exp $
.include "../Makefile.inc"
CWARNFLAGS.clang+= -Wno-error=unused-function

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.54 2013/09/02 14:34:55 joerg Exp $
# $NetBSD: Makefile.inc,v 1.55 2013/09/21 22:28:12 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
@ -7,7 +7,7 @@ LLVM_TOPLEVEL_MK=
SVN_ROOT= http://llvm.org/svn/llvm-project
COMMON_REVISION= 189662
COMMON_REVISION= 191105
CLANG_REVISION= ${COMMON_REVISION}
COMPILER_RT_REVISION= ${COMMON_REVISION}
LLD_REVISION= ${COMMON_REVISION}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2013/07/07 21:36:43 joerg Exp $
# $NetBSD: Makefile,v 1.21 2013/09/21 22:28:12 joerg Exp $
.include <bsd.init.mk>
@ -27,6 +27,7 @@ INCS= __wmmintrin_aes.h \
prfchwintrin.h \
rdseedintrin.h \
rtmintrin.h \
shaintrin.h \
smmintrin.h \
tmmintrin.h \
wmmintrin.h \
@ -71,10 +72,11 @@ CLANG_TABLEGEN_OUTPUT.Attr.td= \
clang/Lex/AttrSpellings.inc|-gen-clang-attr-spelling-list \
clang/Parse/AttrExprArgs.inc|-gen-clang-attr-expr-args-list \
clang/Parse/AttrLateParsed.inc|-gen-clang-attr-late-parsed-list \
clang/Sema/AttrTemplateInstantiate.inc|-gen-clang-attr-template-instantiate \
clang/Sema/AttrParsedAttrImpl.inc|-gen-clang-attr-parsed-attr-impl \
clang/Sema/AttrParsedAttrKinds.inc|-gen-clang-attr-parsed-attr-kinds \
clang/Sema/AttrParsedAttrList.inc|-gen-clang-attr-parsed-attr-list \
clang/Sema/AttrSpellingListIndex.inc|-gen-clang-attr-spelling-index \
clang/Sema/AttrTemplateInstantiate.inc|-gen-clang-attr-template-instantiate \
clang/Serialization/AttrPCHRead.inc|-gen-clang-attr-pch-read \
clang/Serialization/AttrPCHWrite.inc|-gen-clang-attr-pch-write

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2013/09/02 14:34:56 joerg Exp $
# $NetBSD: Makefile,v 1.12 2013/09/21 22:28:12 joerg Exp $
LIB= LLVMScalarOpts
@ -7,7 +7,6 @@ LIB= LLVMScalarOpts
.PATH: ${LLVM_SRCDIR}/lib/Transforms/Scalar
SRCS+= ADCE.cpp \
BasicBlockPlacement.cpp \
CodeGenPrepare.cpp \
ConstantProp.cpp \
CorrelatedValuePropagation.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2013/09/03 14:54:00 joerg Exp $
# $NetBSD: Makefile,v 1.22 2013/09/21 22:28:12 joerg Exp $
LIB= LLVMSupport
@ -64,6 +64,7 @@ SRCS+= APFloat.cpp \
ToolOutputFile.cpp \
Triple.cpp \
Twine.cpp \
Unicode.cpp \
Watchdog.cpp \
YAMLParser.cpp \
YAMLTraits.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $
# $NetBSD: Makefile,v 1.2 2013/09/21 22:28:12 joerg Exp $
LIB= lldDriver
@ -14,14 +14,14 @@ SRCS+= CoreDriver.cpp \
UniversalDriver.cpp \
WinLinkDriver.cpp
TABLEGEN_SRC= CoreOptions.td DarwinOptions.td LDOptions.td WinLinkOptions.td
TABLEGEN_SRC= CoreOptions.td DarwinLdOptions.td GnuLdOptions.td WinLinkOptions.td
TABLEGEN_OUTPUT.CoreOptions.td= \
CoreOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.DarwinOptions.td= \
DarwinOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.LDOptions.td= \
LDOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.DarwinLdOptions.td= \
DarwinLdOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.GnuLdOptions.td= \
GnuLdOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.WinLinkOptions.td= \
WinLinkOptions.inc|-gen-opt-parser-defs

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.11 2012/02/01 20:48:01 kardel Exp $
# $NetBSD: Makefile.inc,v 1.12 2013/09/21 22:28:12 joerg Exp $
.if !defined(NTP_MAKEFILE_INC)
NTP_MAKEFILE_INC=yes
@ -8,7 +8,8 @@ USE_FORT?= yes # network client/server
CWARNFLAGS+= -Wno-missing-noreturn
CWARNFLAGS.clang+= -Wno-unneeded-internal-declaration \
-Wno-format-security \
-Wno-parentheses -Wno-constant-logical-operand
-Wno-parentheses -Wno-constant-logical-operand \
-Wno-error=unused-const-variable
WARNS?= 4

View File

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.8 2013/04/06 19:33:07 christos Exp $
# $NetBSD: Makefile,v 1.9 2013/09/21 22:28:12 joerg Exp $
WARNS?= 1 # XXX: need to cleanup later
CWARNFLAGS.clang+= -Wno-constant-logical-operand
CWARNFLAGS.clang+= -Wno-constant-logical-operand -Wno-error=unused-function
.include <bsd.own.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.141 2013/08/22 08:24:30 martin Exp $
# $NetBSD: Makefile,v 1.142 2013/09/21 22:28:12 joerg Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@ -320,6 +320,9 @@ MLINKS+=fdim.3 fdimf.3
.include "${.CURDIR}/complex/Makefile.inc"
.endif
COPTS.compat_cabs.c+= ${${ACTIVE_CC} == "clang":? -Wno-incompatible-library-redeclaration :}
COPTS.compat_cabsf.c+= ${${ACTIVE_CC} == "clang":? -Wno-incompatible-library-redeclaration :}
.include "${.CURDIR}/gen/Makefile.inc"
.include <bsd.lib.mk>
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.kern.inc,v 1.161 2013/08/09 09:08:47 skrll Exp $
# $NetBSD: Makefile.kern.inc,v 1.162 2013/09/21 22:28:12 joerg Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@ -89,6 +89,8 @@ CWARNFLAGS.clang+= -Wno-unknown-pragmas -Wno-conversion \
CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \
-Wno-shift-count-negative -Wno-shift-count-overflow:}
CWARNFLAGS.ioconf.c= ${${ACTIVE_CC} == "clang":? -Wno-unused-const-variable :}
CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss
CFLAGS+= ${DEBUG} ${COPTS}
AFLAGS+= -D_LOCORE -Wa,--fatal-warnings

View File

@ -1,6 +1,8 @@
# $NetBSD: Makefile.inc,v 1.2 2008/07/13 03:44:41 christos Exp $
# $NetBSD: Makefile.inc,v 1.3 2013/09/21 22:28:12 joerg Exp $
.include <bsd.own.mk>
DIST= ${NETBSDSRCDIR}/dist/nvi
.PATH: ${DIST}
CWARNFLAGS.clang+= -Wno-error=unused-const-variable