Update LLVM/Clang snapshot to r164464. This adopts the GCC options for

the SSP parameters and a not-yet-default rewrite of SROA.
This commit is contained in:
joerg 2012-09-23 17:22:22 +00:00
parent 4d3178885d
commit 2b3d1ee8a7
39 changed files with 207 additions and 150 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2012/08/10 16:10:29 joerg Exp $
# $NetBSD: Makefile,v 1.6 2012/09/23 17:22:22 joerg Exp $
.include <bsd.own.mk>
@ -19,6 +19,8 @@ COPTS.${f}.c+= -fno-strict-aliasing
.endfor
.endif
CWARNFLAGS.clang+= -Wno-tautological-constant-out-of-range-compare
.PATH: ${DIST}/unix ${DIST}
SRCS_UNIX= os.c dlz_dlopen_driver.c

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2012/08/10 16:33:41 joerg Exp $
# $NetBSD: Makefile,v 1.8 2012/09/23 17:22:22 joerg Exp $
LIB=dns
@ -12,6 +12,8 @@ DIST= ${IDIST}/lib/dns
.PATH.c: ${DIST}/unix ${DIST}/sec/dst ${DIST}
CPPFLAGS+= -I${BIND_SRCDIR}/include/dns -I${DIST}
CWARNFLAGS.clang+= -Wno-tautological-constant-out-of-range-compare
.for f in lookup byaddr request sdb validator
COPTS.${f}.c+= -Wno-pointer-sign -fno-strict-aliasing
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.40 2012/08/09 14:37:06 joerg Exp $
# $NetBSD: Makefile.inc,v 1.41 2012/09/23 17:22:22 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= 161532
COMMON_REVISION= 164464
LLVM_REVISION= ${COMMON_REVISION}
CLANG_REVISION= ${COMMON_REVISION}
COMPILER_RT_REVISION= ${COMMON_REVISION}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/10/11 13:53:57 joerg Exp $
# $NetBSD: Makefile,v 1.2 2012/09/23 17:22:22 joerg Exp $
PROG_CXX= clang-tblgen
NOMAN= yes
@ -9,6 +9,8 @@ NOMAN= yes
SRCS= ClangASTNodesEmitter.cpp \
ClangAttrEmitter.cpp \
ClangCommentCommandInfoEmitter.cpp \
ClangCommentHTMLTagsEmitter.cpp \
ClangDiagnosticsEmitter.cpp \
ClangSACheckersEmitter.cpp \
NeonEmitter.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2012/04/29 19:19:04 joerg Exp $
# $NetBSD: Makefile,v 1.21 2012/09/23 17:22:22 joerg Exp $
PROG_CXX= clang
NOMAN= yes
@ -30,7 +30,8 @@ CLANG_LIBS+= \
clangParse \
clangSema \
clangAnalysis \
clangRewrite \
clangRewriteFrontend \
clangRewriteCore \
clangAST \
clangLex \
clangBasic

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/10/11 13:53:57 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/09/23 17:22:22 joerg Exp $
PROG_CXX= lli
NOMAN= yes
@ -7,7 +7,9 @@ NOMAN= yes
.PATH: ${LLVM_SRCDIR}/tools/lli
SRCS= lli.cpp
SRCS= lli.cpp \
RecordingMemoryManager.cpp \
RemoteTarget.cpp
LLVM_LIBS+= \
X86CodeGen \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/02/06 01:13:46 joerg Exp $
# $NetBSD: Makefile,v 1.2 2012/09/23 17:22:22 joerg Exp $
PROG_CXX= llvm-extract
NOMAN= yes
@ -13,10 +13,10 @@ LLVM_LIBS+= \
AsmParser \
BitReader \
BitWriter \
Target \
ipo \
TransformsUtils \
Analysis \
Target \
ipa \
Core \
Support

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2012/04/04 10:42:01 joerg Exp $
# $NetBSD: Makefile,v 1.12 2012/09/23 17:22:22 joerg Exp $
PROG_CXX= llvm-mc
NOMAN= yes
@ -21,6 +21,7 @@ LLVM_LIBS+= \
MipsCodeGen \
MipsTargetInfo \
MipsAsmParser \
MipsDisassembler \
MipsMCTargetDesc \
MipsAsmPrinter \
PowerPCCodeGen \

View File

@ -1,24 +1,24 @@
//===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file enumerates all of the assembly-language parsers
// supported by this build of LLVM. Clients of this file should define
// the LLVM_ASM_PARSER macro to be a function-like macro with a
// single parameter (the name of the target whose assembly can be
// generated); including this file will then enumerate all of the
// targets with assembly parsers.
//
// The set of targets supported by LLVM is generated at configuration
// time, at which point this header is generated. Do not modify this
// header directly.
//
//===----------------------------------------------------------------------===//
/*===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* *|
|* This file is distributed under the University of Illinois Open Source *|
|* License. See LICENSE.TXT for details. *|
|* *|
|*===----------------------------------------------------------------------===*|
|* *|
|* This file enumerates all of the assembly-language parsers *|
|* supported by this build of LLVM. Clients of this file should define *|
|* the LLVM_ASM_PARSER macro to be a function-like macro with a *|
|* single parameter (the name of the target whose assembly can be *|
|* generated); including this file will then enumerate all of the *|
|* targets with assembly parsers. *|
|* *|
|* The set of targets supported by LLVM is generated at configuration *|
|* time, at which point this header is generated. Do not modify this *|
|* header directly. *|
|* *|
\*===----------------------------------------------------------------------===*/
#ifndef LLVM_ASM_PARSER
# error Please define the macro LLVM_ASM_PARSER(TargetName)

View File

@ -1,24 +1,24 @@
//===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file enumerates all of the assembly-language printers
// supported by this build of LLVM. Clients of this file should define
// the LLVM_ASM_PRINTER macro to be a function-like macro with a
// single parameter (the name of the target whose assembly can be
// generated); including this file will then enumerate all of the
// targets with assembly printers.
//
// The set of targets supported by LLVM is generated at configuration
// time, at which point this header is generated. Do not modify this
// header directly.
//
//===----------------------------------------------------------------------===//
/*===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* *|
|* This file is distributed under the University of Illinois Open Source *|
|* License. See LICENSE.TXT for details. *|
|* *|
|*===----------------------------------------------------------------------===*|
|* *|
|* This file enumerates all of the assembly-language printers *|
|* supported by this build of LLVM. Clients of this file should define *|
|* the LLVM_ASM_PRINTER macro to be a function-like macro with a *|
|* single parameter (the name of the target whose assembly can be *|
|* generated); including this file will then enumerate all of the *|
|* targets with assembly printers. *|
|* *|
|* The set of targets supported by LLVM is generated at configuration *|
|* time, at which point this header is generated. Do not modify this *|
|* header directly. *|
|* *|
\*===----------------------------------------------------------------------===*/
#ifndef LLVM_ASM_PRINTER
# error Please define the macro LLVM_ASM_PRINTER(TargetName)

View File

@ -1,24 +1,24 @@
//===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file enumerates all of the assembly-language parsers
// supported by this build of LLVM. Clients of this file should define
// the LLVM_DISASSEMBLER macro to be a function-like macro with a
// single parameter (the name of the target whose assembly can be
// generated); including this file will then enumerate all of the
// targets with assembly parsers.
//
// The set of targets supported by LLVM is generated at configuration
// time, at which point this header is generated. Do not modify this
// header directly.
//
//===----------------------------------------------------------------------===//
/*===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* *|
|* This file is distributed under the University of Illinois Open Source *|
|* License. See LICENSE.TXT for details. *|
|* *|
|*===----------------------------------------------------------------------===*|
|* *|
|* This file enumerates all of the assembly-language parsers *|
|* supported by this build of LLVM. Clients of this file should define *|
|* the LLVM_DISASSEMBLER macro to be a function-like macro with a *|
|* single parameter (the name of the target whose assembly can be *|
|* generated); including this file will then enumerate all of the *|
|* targets with assembly parsers. *|
|* *|
|* The set of targets supported by LLVM is generated at configuration *|
|* time, at which point this header is generated. Do not modify this *|
|* header directly. *|
|* *|
\*===----------------------------------------------------------------------===*/
#ifndef LLVM_DISASSEMBLER
# error Please define the macro LLVM_DISASSEMBLER(TargetName)

View File

@ -7,6 +7,9 @@
/* Bug report URL. */
#define BUG_REPORT_URL "http://llvm.org/bugs/"
/* Define if we have libxml2 */
/* #undef CLANG_HAVE_LIBXML */
/* Relative directory for resource files */
#define CLANG_RESOURCE_DIR ""
@ -19,7 +22,7 @@
/* Define if position independent code is enabled */
#define ENABLE_PIC 1
/* Define if timestamp information (e.g., __DATE___) is allowed */
/* Define if timestamp information (e.g., __DATE__) is allowed */
#define ENABLE_TIMESTAMPS 0
/* Directory where gcc is installed. */
@ -553,6 +556,9 @@
/* Has gcc/MSVC atomic intrinsics */
#define LLVM_HAS_ATOMICS 1
/* Host triple LLVM will be executed on */
#define LLVM_HOSTTRIPLE "x86_64--netbsd"
/* Installation directory for include files */
#define LLVM_INCLUDEDIR "/usr/include"

View File

@ -41,6 +41,9 @@
/* Has gcc/MSVC atomic intrinsics */
#define LLVM_HAS_ATOMICS 1
/* Host triple LLVM will be executed on */
#define LLVM_HOSTTRIPLE "x86_64--netbsd"
/* Installation directory for include files */
#define LLVM_INCLUDEDIR "/usr/include"

View File

@ -80,18 +80,6 @@ typedef u_int64_t uint64_t;
#endif
#endif
#ifdef _OpenBSD_
#define INT8_MAX 127
#define INT8_MIN -128
#define UINT8_MAX 255
#define INT16_MAX 32767
#define INT16_MIN -32768
#define UINT16_MAX 65535
#define INT32_MAX 2147483647
#define INT32_MIN -2147483648
#define UINT32_MAX 4294967295U
#endif
#else /* _MSC_VER */
/* Visual C++ doesn't provide standard integer headers, but it does provide
built-in data types. */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2012/08/09 14:37:06 joerg Exp $
# $NetBSD: Makefile,v 1.13 2012/09/23 17:22:23 joerg Exp $
.include <bsd.init.mk>
@ -43,6 +43,7 @@ HEADER= \
tgmath.h
.PATH: ${LLVM_SRCDIR}/include/llvm \
${CLANG_SRCDIR}/include/clang/AST \
${CLANG_SRCDIR}/include/clang/Basic \
${CLANG_SRCDIR}/include/clang/Driver
@ -51,8 +52,10 @@ TABLEGEN_SRC= Intrinsics.td
TABLEGEN_OUTPUT.Intrinsics.td= \
llvm/Intrinsics.gen|-gen-intrinsic
CLANG_TABLEGEN_SRC= Attr.td StmtNodes.td DeclNodes.td CommentNodes.td \
Diagnostic.td arm_neon.td Options.td CC1AsOptions.td CC1Options.td
CLANG_TABLEGEN_SRC= Attr.td CommentCommands.td CommentHTMLTags.td \
CommentNodes.td DeclNodes.td StmtNodes.td \
Diagnostic.td arm_neon.td Options.td \
CC1AsOptions.td CC1Options.td
CLANG_TABLEGEN_INCLUDES.Attr.td= -I${CLANG_SRCDIR}/include
CLANG_TABLEGEN_OUTPUT.Attr.td= \
@ -76,6 +79,13 @@ CLANG_TABLEGEN_OUTPUT.DeclNodes.td= \
CLANG_TABLEGEN_OUTPUT.CommentNodes.td= \
clang/AST/CommentNodes.inc|-gen-clang-comment-nodes
CLANG_TABLEGEN_OUTPUT.CommentCommands.td= \
clang/AST/CommentCommandInfo.inc|-gen-clang-comment-command-info
CLANG_TABLEGEN_OUTPUT.CommentHTMLTags.td= \
clang/AST/CommentHTMLTags.inc|-gen-clang-comment-html-tags \
clang/AST/CommentHTMLTagsProperties.inc|-gen-clang-comment-html-tags-properties
CLANG_TABLEGEN_INCLUDES.Diagnostic.td= -I${CLANG_SRCDIR}/include/clang/Basic
CLANG_TABLEGEN_OUTPUT.Diagnostic.td= \
clang/Basic/DiagnosticAnalysisKinds.inc|-gen-clang-diags-defs^-clang-component=Analysis \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.24 2012/08/09 14:39:01 joerg Exp $
# $NetBSD: Makefile,v 1.25 2012/09/23 17:22:23 joerg Exp $
.include <bsd.own.mk>
@ -43,6 +43,7 @@ SUBDIR+= \
SUBDIR+= \
libLLVMMipsAsmParser \
libLLVMMipsAsmPrinter \
libLLVMMipsDisassembler \
libLLVMMipsMCTargetDesc \
libLLVMMipsTargetInfo
@ -90,7 +91,8 @@ SUBDIR+= \
libclangFrontendTool \
libclangLex \
libclangParse \
libclangRewrite \
libclangRewriteFrontend \
libclangRewriteCore \
libclangSema \
libclangSerialization \
libclangStaticAnalyzerCheckers \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2012/08/09 14:37:06 joerg Exp $
# $NetBSD: Makefile,v 1.8 2012/09/23 17:22:23 joerg Exp $
LIB= LLVMAnalysis
@ -46,6 +46,8 @@ SRCS+= AliasAnalysis.cpp \
PathProfileVerifier.cpp \
PHITransAddr.cpp \
PostDominators.cpp \
ProfileDataLoaderPass.cpp \
ProfileDataLoader.cpp \
ProfileEstimatorPass.cpp \
ProfileInfo.cpp \
ProfileInfoLoader.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2012/08/09 14:37:06 joerg Exp $
# $NetBSD: Makefile,v 1.20 2012/09/23 17:22:23 joerg Exp $
LIB= LLVMCodeGen
@ -64,6 +64,7 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
MachineModuleInfo.cpp \
MachineModuleInfoImpls.cpp \
MachinePassRegistry.cpp \
MachinePostDominators.cpp \
MachineRegisterInfo.cpp \
MachineSSAUpdater.cpp \
MachineScheduler.cpp \
@ -100,6 +101,7 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
Spiller.cpp \
SpillPlacement.cpp \
SplitKit.cpp \
StackColoring.cpp \
StackProtector.cpp \
StackSlotColoring.cpp \
StrongPHIElimination.cpp \
@ -108,6 +110,7 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
TargetInstrInfoImpl.cpp \
TargetLoweringObjectFileImpl.cpp \
TargetOptionsImpl.cpp \
TargetSchedule.cpp \
TwoAddressInstructionPass.cpp \
UnreachableBlockElim.cpp \
VirtRegMap.cpp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/10/11 13:53:59 joerg Exp $
# $NetBSD: Makefile,v 1.2 2012/09/23 17:22:23 joerg Exp $
LIB= LLVMDebugInfo
@ -15,6 +15,7 @@ SRCS+= DIContext.cpp \
DWARFDebugAranges.cpp \
DWARFDebugInfoEntry.cpp \
DWARFDebugLine.cpp \
DWARFDebugRangeList.cpp \
DWARFFormValue.cpp
.if defined(HOSTLIB)

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2012/08/09 14:37:06 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/09/23 17:22:23 joerg Exp $
LIB= LLVMInstrumentation
@ -7,9 +7,9 @@ LIB= LLVMInstrumentation
.PATH: ${LLVM_SRCDIR}/lib/Transforms/Instrumentation
SRCS+= AddressSanitizer.cpp \
BlackList.cpp \
BoundsChecking.cpp \
EdgeProfiling.cpp \
FunctionBlackList.cpp \
GCOVProfiling.cpp \
Instrumentation.cpp \
OptimalEdgeProfiling.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2012/08/09 14:37:07 joerg Exp $
# $NetBSD: Makefile,v 1.12 2012/09/23 17:22:23 joerg Exp $
LIB= LLVMMipsCodeGen
@ -13,6 +13,8 @@ SRCS+= Mips16InstrInfo.cpp \
MipsAsmPrinter.cpp \
MipsCodeEmitter.cpp \
MipsDelaySlotFiller.cpp \
MipsDirectObjLower.cpp \
MipsELFWriterInfo.cpp \
MipsFrameLowering.cpp \
MipsInstrInfo.cpp \
MipsISelDAGToDAG.cpp \
@ -35,6 +37,7 @@ TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/Mips
TABLEGEN_OUTPUT= \
MipsGenRegisterInfo.inc|-gen-register-info \
MipsGenInstrInfo.inc|-gen-instr-info \
MipsGenAsmMatcher.inc|-gen-asm-matcher \
MipsGenAsmWriter.inc|-gen-asm-writer \
MipsGenCallingConv.inc|-gen-callingconv \
MipsGenCodeEmitter.inc|-gen-emitter \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2012/08/09 14:37:07 joerg Exp $
# $NetBSD: Makefile,v 1.8 2012/09/23 17:22:24 joerg Exp $
LIB= LLVMScalarOpts
@ -32,6 +32,7 @@ SRCS+= ADCE.cpp \
Reassociate.cpp \
Reg2Mem.cpp \
SCCP.cpp \
SROA.cpp \
Scalar.cpp \
ScalarReplAggregates.cpp \
SimplifyCFGPass.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2012/04/04 10:42:03 joerg Exp $
# $NetBSD: Makefile,v 1.9 2012/09/23 17:22:24 joerg Exp $
LIB= LLVMTransformsUtils
@ -10,6 +10,7 @@ SRCS+= AddrModeMatcher.cpp \
BasicBlockUtils.cpp \
BreakCriticalEdges.cpp \
BuildLibCalls.cpp \
BypassSlowDivision.cpp \
CloneFunction.cpp \
CloneModule.cpp \
CmpInstAnalysis.cpp \
@ -17,6 +18,7 @@ SRCS+= AddrModeMatcher.cpp \
DemoteRegToStack.cpp \
InlineFunction.cpp \
InstructionNamer.cpp \
IntegerDivision.cpp \
LCSSA.cpp \
Local.cpp \
LoopSimplify.cpp \
@ -26,6 +28,7 @@ SRCS+= AddrModeMatcher.cpp \
LowerInvoke.cpp \
LowerSwitch.cpp \
Mem2Reg.cpp \
MetaRenamer.cpp \
ModuleUtils.cpp \
PromoteMemoryToRegister.cpp \
SSAUpdater.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2012/08/09 14:37:07 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/09/23 17:22:24 joerg Exp $
LIB= clangAST
@ -15,6 +15,7 @@ SRCS+= APValue.cpp \
CXXInheritance.cpp \
Comment.cpp \
CommentBriefParser.cpp \
CommentCommandTraits.cpp \
CommentDumper.cpp \
CommentLexer.cpp \
CommentParser.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2012/04/04 10:42:04 joerg Exp $
# $NetBSD: Makefile,v 1.9 2012/09/23 17:22:24 joerg Exp $
LIB= clangAnalysis
@ -7,6 +7,7 @@ LIB= clangAnalysis
.PATH: ${CLANG_SRCDIR}/lib/Analysis
SRCS+= AnalysisDeclContext.cpp \
BodyFarm.cpp \
CFG.cpp \
CFGReachabilityAnalysis.cpp \
CFGStmtMap.cpp \
@ -15,6 +16,7 @@ SRCS+= AnalysisDeclContext.cpp \
Dominators.cpp \
FormatString.cpp \
LiveVariables.cpp \
ObjCNoReturn.cpp \
PostOrderCFGView.cpp \
ProgramPoint.cpp \
PrintfFormatString.cpp \

View File

@ -1,27 +0,0 @@
# $NetBSD: Makefile,v 1.3 2012/06/16 17:01:04 joerg Exp $
LIB= clangRewrite
.include <bsd.init.mk>
.PATH: ${CLANG_SRCDIR}/lib/Rewrite
SRCS+= DeltaTree.cpp \
FixItRewriter.cpp \
FrontendActions.cpp \
HTMLPrint.cpp \
HTMLRewrite.cpp \
InclusionRewriter.cpp \
RewriteMacros.cpp \
RewriteModernObjC.cpp \
RewriteObjC.cpp \
RewriteRope.cpp \
RewriteTest.cpp \
Rewriter.cpp \
TokenRewriter.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2012/09/23 17:22:24 joerg Exp $
LIB= clangRewriteCore
.include <bsd.init.mk>
.PATH: ${CLANG_SRCDIR}/lib/Rewrite/Core
SRCS+= DeltaTree.cpp \
HTMLRewrite.cpp \
RewriteRope.cpp \
Rewriter.cpp \
TokenRewriter.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif

View File

@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.1 2012/09/23 17:22:24 joerg Exp $
LIB= clangRewriteFrontend
.include <bsd.init.mk>
.PATH: ${CLANG_SRCDIR}/lib/Rewrite/Frontend
SRCS+= FixItRewriter.cpp \
FrontendActions.cpp \
HTMLPrint.cpp \
InclusionRewriter.cpp \
RewriteMacros.cpp \
RewriteModernObjC.cpp \
RewriteObjC.cpp \
RewriteTest.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2012/04/29 19:19:06 joerg Exp $
# $NetBSD: Makefile,v 1.10 2012/09/23 17:22:25 joerg Exp $
LIB= clangSema
@ -39,6 +39,7 @@ SRCS+= AnalysisBasedWarnings.cpp \
SemaOverload.cpp \
SemaPseudoObject.cpp \
SemaStmt.cpp \
SemaStmtAsm.cpp \
SemaStmtAttr.cpp \
SemaTemplate.cpp \
SemaTemplateDeduction.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2012/08/09 14:37:07 joerg Exp $
# $NetBSD: Makefile,v 1.16 2012/09/23 17:22:25 joerg Exp $
LIB= clangStaticAnalyzerCheckers
@ -6,8 +6,7 @@ LIB= clangStaticAnalyzerCheckers
.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Checkers
SRCS+= AdjustedReturnValueChecker.cpp \
AnalyzerStatsChecker.cpp \
SRCS+= AnalyzerStatsChecker.cpp \
ArrayBoundChecker.cpp \
ArrayBoundCheckerV2.cpp \
AttrNonNullChecker.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2012/08/09 14:37:07 joerg Exp $
# $NetBSD: Makefile,v 1.12 2012/09/23 17:22:25 joerg Exp $
LIB= clangStaticAnalyzerCore
@ -8,7 +8,7 @@ LIB= clangStaticAnalyzerCore
SRCS+= APSIntType.cpp \
AnalysisManager.cpp \
BasicConstraintManager.cpp \
AnalyzerOptions.cpp \
BasicValueFactory.cpp \
BlockCounter.cpp \
BugReporter.cpp \
@ -19,6 +19,7 @@ SRCS+= APSIntType.cpp \
CheckerHelpers.cpp \
CheckerManager.cpp \
CheckerRegistry.cpp \
ConstraintManager.cpp \
CoreEngine.cpp \
Environment.cpp \
ExplodedGraph.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2012/08/09 14:37:07 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/09/23 17:22:25 joerg Exp $
LIB= clangTooling
@ -7,8 +7,9 @@ LIB= clangTooling
.PATH: ${CLANG_SRCDIR}/lib/Tooling
SRCS+= ArgumentsAdjusters.cpp \
CommandLineClangTool.cpp \
CommonOptionsParser.cpp \
CompilationDatabase.cpp \
JSONCompilationDatabase.cpp \
Refactoring.cpp \
RefactoringCallbacks.cpp \
Tooling.cpp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 2011/05/26 12:56:27 joerg Exp $
# $NetBSD: Makefile.inc,v 1.3 2012/09/23 17:22:25 joerg Exp $
.include <bsd.own.mk>
@ -7,7 +7,8 @@ USE_FORT?= yes # network client/server
WARNS?= 0
CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-parentheses \
-Wno-format-security -Wno-format
-Wno-format-security -Wno-format \
-Wno-tautological-constant-out-of-range-compare
BINDIR?= /usr/bin
IDIST= ${NETBSDSRCDIR}/external/gpl2/xcvs/dist

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.sys.mk,v 1.218 2012/09/05 22:40:30 riz Exp $
# $NetBSD: bsd.sys.mk,v 1.219 2012/09/23 17:22:25 joerg Exp $
#
# Build definitions used for NetBSD source tree builds.
@ -33,7 +33,7 @@ CFLAGS+= -Wno-sign-compare
CFLAGS+= ${${ACTIVE_CC} != "clang":? -Wno-traditional :}
.if !defined(NOGCCERROR)
# Set assembler warnings to be fatal
CFLAGS+= -Wa,--fatal-warnings
#CFLAGS+= -Wa,--fatal-warnings
.endif
# Set linker warnings to be fatal
# XXX no proper way to avoid "FOO is a patented algorithm" warnings
@ -109,7 +109,7 @@ CPPFLAGS+= -D_FORTIFY_SOURCE=2
.if (${USE_SSP:Uno} != "no") && (${BINDIR:Ux} != "/usr/mdec")
.if ${HAS_SSP} == "yes"
COPTS+= -fstack-protector -Wstack-protector
COPTS+= ${${ACTIVE_CC} == "clang":? -mllvm -stack-protector-buffer-size=1 :}
COPTS+= ${${ACTIVE_CC} == "clang":? --param ssp-buffer-size=1 :}
COPTS+= ${${ACTIVE_CC} == "gcc":? --param ssp-buffer-size=1 :}
.endif
.endif
@ -132,7 +132,7 @@ CFLAGS+= -Wa,-Av8plus
.if !defined(NOGCCERROR)
.if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
CPUFLAGS+= -Wa,--fatal-warnings
#CPUFLAGS+= -Wa,--fatal-warnings
.endif
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2012/04/04 10:59:48 joerg Exp $
# $NetBSD: Makefile,v 1.6 2012/09/23 17:22:25 joerg Exp $
NOMAN= # defined
@ -10,8 +10,7 @@ CPPFLAGS+= -D_FORTIFY_SOURCE=2
COPTS.h_raw.c= -fstack-protector-all -Wstack-protector
COPTS.h_raw.c+= ${${ACTIVE_CC} == "gcc":? --param ssp-buffer-size=1 :}
COPTS.h_raw.c+= ${${ACTIVE_CC} == "clang":? -mllvm -stack-protector-buffer-size=1 :}
COPTS.h_raw.c+= ${${ACTIVE_CC} == "clang":? --param ssp-buffer-size=1 :}
# Bootstrap hack

View File

@ -0,0 +1,3 @@
# $NetBSD: Makefile,v 1.1 2012/09/23 17:22:26 joerg Exp $
.include <bsd.init.mk>

View File

@ -1,3 +0,0 @@
# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:22 joerg Exp $
.include <bsd.init.mk>

View File

@ -0,0 +1,3 @@
# $NetBSD: Makefile,v 1.1 2012/09/23 17:22:26 joerg Exp $
.include <bsd.init.mk>

View File

@ -0,0 +1,3 @@
# $NetBSD: Makefile,v 1.1 2012/09/23 17:22:26 joerg Exp $
.include <bsd.init.mk>