diff options
author | adam <adam> | 2010-10-21 13:52:15 +0000 |
---|---|---|
committer | adam <adam> | 2010-10-21 13:52:15 +0000 |
commit | fc5a2ddeef402e25f6fcbd17bd716a1c793193c4 (patch) | |
tree | 0c4a17f6a3f6729f36108e34921a29f4260b2e6a /lang/clang | |
parent | e809a42b1fdde70028ee9f50d97831ee731ef83c (diff) | |
download | pkgsrc-fc5a2ddeef402e25f6fcbd17bd716a1c793193c4.tar.gz |
Changes 2.8:
* libc++ and LLDB are major new additions to the LLVM collective.
* LLVM 2.8 now has pretty decent support for debugging optimized code.
You should be able to reliably get debug info for function arguments,
assuming that the value is actually available where you have stopped.
* A new 'llvm-diff' tool is available that does a semantic diff of .ll files.
* The MC subproject has made major progress in this release. Direct .o file
writing support for darwin/x86[-64] is now reliable and support for other
targets and object file formats are in progress.
* The memcpy, memmove, and memset intrinsics now take address space qualified
pointers and a bit to indicate whether the transfer is "volatile" or not.
* Per-instruction debug info metadata is much faster and uses less memory by
using the new DebugLoc class.
* LLVM IR now has a more formalized concept of "trap values", which allow the
optimizer to optimize more aggressively in the presence of undefined behavior,
while still producing predictable results.
* LLVM IR now supports two new linkage types (linker_private_weak and
linker_private_weak_def_auto) which map onto some obscure MachO concepts.
* The optimizer now has support for updating debug information as it goes.
A key aspect of this is the new llvm.dbg.value intrinsic. This intrinsic
represents debug info for variables that are promoted to SSA values
(typically by mem2reg or the -scalarrepl passes).
* The JumpThreading pass is now much more aggressive about implied value
relations, allowing it to thread conditions like "a == 4" when a is known to
be 13 in one of the predecessors of a block. It does this in conjunction with
the new LazyValueInfo analysis pass.
* The new RegionInfo analysis pass identifies single-entry single-exit regions
in the CFG. You can play with it with the "opt -regions analyze" or "opt
-view-regions" commands.
* The loop optimizer has significantly improved strength reduction and analysis
capabilities. Notably it is able to build on the trap value and signed
integer overflow information to optimize <= and >= loops.
* The CallGraphSCCPassManager now has some basic support for iterating within
an SCC when a optimizer devirtualizes a function call. This allows inlining
through indirect call sites that are devirtualized by store-load forwarding
and other optimizations.
* The new -loweratomic pass is available to lower atomic instructions into
their non-atomic form. This can be useful to optimize generic code that
expects to run in a single-threaded environment.
Diffstat (limited to 'lang/clang')
-rw-r--r-- | lang/clang/Makefile | 38 | ||||
-rw-r--r-- | lang/clang/PLIST | 240 | ||||
-rw-r--r-- | lang/clang/distinfo | 21 | ||||
-rw-r--r-- | lang/clang/patches/patch-ab | 45 | ||||
-rw-r--r-- | lang/clang/patches/patch-ac | 34 | ||||
-rw-r--r-- | lang/clang/patches/patch-ad | 6 | ||||
-rw-r--r-- | lang/clang/patches/patch-ae | 22 | ||||
-rw-r--r-- | lang/clang/patches/patch-af | 14 |
8 files changed, 272 insertions, 148 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile index 4208179e0e3..059a36dc3ac 100644 --- a/lang/clang/Makefile +++ b/lang/clang/Makefile @@ -1,11 +1,9 @@ -# $NetBSD: Makefile,v 1.5 2010/05/04 16:52:16 drochner Exp $ -# +# $NetBSD: Makefile,v 1.6 2010/10/21 13:52:15 adam Exp $ -DISTNAME= clang-2.7 -PKGREVISION= 1 +DISTNAME= clang-2.8 CATEGORIES= lang MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ -DISTFILES= llvm-2.7.tgz clang-2.7.tgz +DISTFILES= llvm-2.8.tgz clang-2.8.tgz MAINTAINER= adam.hoka@gmail.com HOMEPAGE= http://llvm.org/ @@ -13,27 +11,31 @@ COMMENT= Low Level Virtual Machine compiler infrastructure PKG_DESTDIR_SUPPORT= user-destdir -WRKSRC= ${WRKDIR}/llvm-2.7 -GNU_CONFIGURE= yes -USE_TOOLS+= gmake perl:build chown -USE_LANGUAGES+= c c++ -MAKE_DIRS+= etc/llvm -USE_LIBTOOL= yes +WRKSRC= ${WRKDIR}/llvm-2.8 -CONFIGURE_ARGS= --enable-bindings=none # no OCaml, please! +USE_LANGUAGES= c c++ +USE_TOOLS+= chown perl:build gmake +GNU_CONFIGURE= yes -INSTALLATION_DIRS= bin lib libexec +MAKE_DIRS+= etc/llvm -# This should be changed! -CONFIGURE_ARGS+= --enable-targets=host-only -#CONFIGURE_ARGS+= --disable-optimized +INSTALLATION_DIRS= bin lib libexec CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm TEST_TARGET= check unittests +SUBST_CLASSES+= perl +SUBST_MESSAGE.perl= Fixing llvm-configure PERL path +SUBST_STAGE.perl= post-patch +SUBST_FILES.perl= tools/llvm-config/llvm-config.in.in +SUBST_SED.perl= -e 's,@PERL@,${PERL5},' + post-extract: - ${MV} ${WRKDIR}/clang-2.7 ${WRKDIR}/llvm-2.7/tools/clang + mv ${WRKDIR}/clang-2.8 ${WRKDIR}/llvm-2.8/tools/clang + +# XXX Darwin only? +pre-install: + find ${WRKSRC}/tools/clang/include/clang -name '*.inc.tmp' -exec rm {} \; -.include "../../converters/libiconv/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/lang/clang/PLIST b/lang/clang/PLIST index 276f0b2b8fb..d417c29c709 100644 --- a/lang/clang/PLIST +++ b/lang/clang/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.2 2010/04/27 15:12:08 drochner Exp $ +@comment $NetBSD: PLIST,v 1.3 2010/10/21 13:52:15 adam Exp $ bin/bugpoint +bin/c-index-test bin/clang bin/clang++ bin/llc @@ -8,10 +9,12 @@ bin/llvm-ar bin/llvm-as bin/llvm-bcanalyzer bin/llvm-config +bin/llvm-diff bin/llvm-dis bin/llvm-extract bin/llvm-ld bin/llvm-link +bin/llvm-mc bin/llvm-nm bin/llvm-prof bin/llvm-ranlib @@ -26,35 +29,43 @@ include/clang/AST/ASTConsumer.h include/clang/AST/ASTContext.h include/clang/AST/ASTDiagnostic.h include/clang/AST/ASTImporter.h +include/clang/AST/ASTVector.h include/clang/AST/Attr.h +include/clang/AST/AttrImpl.inc +include/clang/AST/Attrs.inc include/clang/AST/CXXInheritance.h include/clang/AST/CanonicalType.h include/clang/AST/CharUnits.h include/clang/AST/Decl.h +include/clang/AST/DeclAccessPair.h include/clang/AST/DeclBase.h include/clang/AST/DeclCXX.h include/clang/AST/DeclContextInternals.h +include/clang/AST/DeclFriend.h include/clang/AST/DeclGroup.h -include/clang/AST/DeclNodes.def +include/clang/AST/DeclNodes.inc include/clang/AST/DeclObjC.h include/clang/AST/DeclTemplate.h include/clang/AST/DeclVisitor.h include/clang/AST/DeclarationName.h +include/clang/AST/DependentDiagnostic.h include/clang/AST/Expr.h include/clang/AST/ExprCXX.h include/clang/AST/ExprObjC.h include/clang/AST/ExternalASTSource.h include/clang/AST/FullExpr.h include/clang/AST/NestedNameSpecifier.h +include/clang/AST/OperationKinds.h include/clang/AST/ParentMap.h include/clang/AST/PrettyPrinter.h include/clang/AST/RecordLayout.h +include/clang/AST/RecursiveASTVisitor.h include/clang/AST/Redeclarable.h include/clang/AST/Stmt.h include/clang/AST/StmtCXX.h include/clang/AST/StmtGraphTraits.h include/clang/AST/StmtIterator.h -include/clang/AST/StmtNodes.def +include/clang/AST/StmtNodes.inc include/clang/AST/StmtObjC.h include/clang/AST/StmtVisitor.h include/clang/AST/TemplateBase.h @@ -68,23 +79,27 @@ include/clang/AST/TypeNodes.def include/clang/AST/TypeOrdering.h include/clang/AST/TypeVisitor.h include/clang/AST/UnresolvedSet.h +include/clang/AST/UsuallyTinyPtrVector.h +include/clang/Analysis/Analyses/FormatString.h include/clang/Analysis/Analyses/LiveVariables.h -include/clang/Analysis/Analyses/PrintfFormatString.h +include/clang/Analysis/Analyses/PseudoConstantAnalysis.h include/clang/Analysis/Analyses/ReachableCode.h include/clang/Analysis/Analyses/UninitializedValues.h include/clang/Analysis/AnalysisContext.h include/clang/Analysis/AnalysisDiagnostic.h include/clang/Analysis/CFG.h +include/clang/Analysis/CFGStmtMap.h include/clang/Analysis/FlowSensitive/DataflowSolver.h include/clang/Analysis/FlowSensitive/DataflowValues.h include/clang/Analysis/ProgramPoint.h include/clang/Analysis/Support/BlkExprDeclBitVector.h include/clang/Analysis/Support/BumpVector.h -include/clang/Analysis/Support/Optional.h include/clang/Analysis/Support/SaveAndRestore.h include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h include/clang/Analysis/Visitors/CFGRecStmtVisitor.h include/clang/Analysis/Visitors/CFGStmtVisitor.h +include/clang/Basic/AttrKinds.h +include/clang/Basic/AttrList.inc include/clang/Basic/Builtins.def include/clang/Basic/Builtins.h include/clang/Basic/BuiltinsARM.def @@ -111,15 +126,6 @@ include/clang/Basic/OperatorKinds.def include/clang/Basic/OperatorKinds.h include/clang/Basic/PartialDiagnostic.h include/clang/Basic/PrettyStackTrace.h -include/clang/Basic/Release/DiagnosticASTKinds.inc.tmp -include/clang/Basic/Release/DiagnosticAnalysisKinds.inc.tmp -include/clang/Basic/Release/DiagnosticCommonKinds.inc.tmp -include/clang/Basic/Release/DiagnosticDriverKinds.inc.tmp -include/clang/Basic/Release/DiagnosticFrontendKinds.inc.tmp -include/clang/Basic/Release/DiagnosticGroups.inc.tmp -include/clang/Basic/Release/DiagnosticLexKinds.inc.tmp -include/clang/Basic/Release/DiagnosticParseKinds.inc.tmp -include/clang/Basic/Release/DiagnosticSemaKinds.inc.tmp include/clang/Basic/SourceLocation.h include/clang/Basic/SourceManager.h include/clang/Basic/SourceManagerInternals.h @@ -132,16 +138,22 @@ include/clang/Basic/TokenKinds.def include/clang/Basic/TokenKinds.h include/clang/Basic/TypeTraits.h include/clang/Basic/Version.h +include/clang/Basic/Version.inc +include/clang/Basic/arm_neon.inc +include/clang/Checker/AnalysisConsumer.h include/clang/Checker/BugReporter/BugReporter.h include/clang/Checker/BugReporter/BugType.h include/clang/Checker/BugReporter/PathDiagnostic.h include/clang/Checker/Checkers/DereferenceChecker.h include/clang/Checker/Checkers/LocalCheckers.h include/clang/Checker/DomainSpecific/CocoaConventions.h +include/clang/Checker/FrontendActions.h include/clang/Checker/ManagerRegistry.h +include/clang/Checker/PathDiagnosticClients.h include/clang/Checker/PathSensitive/AnalysisManager.h include/clang/Checker/PathSensitive/BasicValueFactory.h include/clang/Checker/PathSensitive/Checker.h +include/clang/Checker/PathSensitive/CheckerHelpers.h include/clang/Checker/PathSensitive/CheckerVisitor.def include/clang/Checker/PathSensitive/CheckerVisitor.h include/clang/Checker/PathSensitive/ConstraintManager.h @@ -165,11 +177,14 @@ include/clang/Checker/PathSensitive/Store.h include/clang/Checker/PathSensitive/SummaryManager.h include/clang/Checker/PathSensitive/SymbolManager.h include/clang/Checker/PathSensitive/ValueManager.h -include/clang/CodeGen/CodeGenOptions.h +include/clang/CodeGen/BackendUtil.h +include/clang/CodeGen/CodeGenAction.h include/clang/CodeGen/ModuleBuilder.h include/clang/Driver/Action.h include/clang/Driver/Arg.h include/clang/Driver/ArgList.h +include/clang/Driver/CC1AsOptions.h +include/clang/Driver/CC1AsOptions.inc include/clang/Driver/CC1Options.h include/clang/Driver/CC1Options.inc include/clang/Driver/Compilation.h @@ -183,8 +198,6 @@ include/clang/Driver/Option.h include/clang/Driver/Options.h include/clang/Driver/Options.inc include/clang/Driver/Phases.h -include/clang/Driver/Release/CC1Options.inc.tmp -include/clang/Driver/Release/Options.inc.tmp include/clang/Driver/Tool.h include/clang/Driver/ToolChain.h include/clang/Driver/Types.def @@ -193,9 +206,9 @@ include/clang/Driver/Util.h include/clang/Frontend/ASTConsumers.h include/clang/Frontend/ASTUnit.h include/clang/Frontend/Analyses.def -include/clang/Frontend/AnalysisConsumer.h +include/clang/Frontend/AnalyzerOptions.h include/clang/Frontend/ChainedDiagnosticClient.h -include/clang/Frontend/CodeGenAction.h +include/clang/Frontend/CodeGenOptions.h include/clang/Frontend/CommandLineSourceLoc.h include/clang/Frontend/CompilerInstance.h include/clang/Frontend/CompilerInvocation.h @@ -205,7 +218,6 @@ include/clang/Frontend/DependencyOutputOptions.h include/clang/Frontend/DiagnosticOptions.h include/clang/Frontend/DocumentXML.def include/clang/Frontend/DocumentXML.h -include/clang/Frontend/FixItRewriter.h include/clang/Frontend/FrontendAction.h include/clang/Frontend/FrontendActions.h include/clang/Frontend/FrontendDiagnostic.h @@ -214,10 +226,6 @@ include/clang/Frontend/FrontendPluginRegistry.h include/clang/Frontend/HeaderSearchOptions.h include/clang/Frontend/LangStandard.h include/clang/Frontend/LangStandards.def -include/clang/Frontend/PCHBitCodes.h -include/clang/Frontend/PCHReader.h -include/clang/Frontend/PCHWriter.h -include/clang/Frontend/PathDiagnosticClients.h include/clang/Frontend/PreprocessorOptions.h include/clang/Frontend/PreprocessorOutputOptions.h include/clang/Frontend/StmtXML.def @@ -226,6 +234,7 @@ include/clang/Frontend/TextDiagnosticPrinter.h include/clang/Frontend/TypeXML.def include/clang/Frontend/Utils.h include/clang/Frontend/VerifyDiagnosticsClient.h +include/clang/FrontendTool/Utils.h include/clang/Index/ASTLocation.h include/clang/Index/Analyzer.h include/clang/Index/CallGraph.h @@ -239,7 +248,7 @@ include/clang/Index/Program.h include/clang/Index/STLExtras.h include/clang/Index/SelectorMap.h include/clang/Index/TranslationUnit.h -include/clang/Index/Utils.h +include/clang/Lex/CodeCompletionHandler.h include/clang/Lex/DirectoryLookup.h include/clang/Lex/ExternalPreprocessorSource.h include/clang/Lex/HeaderMap.h @@ -253,31 +262,55 @@ include/clang/Lex/PPCallbacks.h include/clang/Lex/PTHLexer.h include/clang/Lex/PTHManager.h include/clang/Lex/Pragma.h +include/clang/Lex/PreprocessingRecord.h include/clang/Lex/Preprocessor.h include/clang/Lex/PreprocessorLexer.h include/clang/Lex/ScratchBuffer.h include/clang/Lex/Token.h include/clang/Lex/TokenConcatenation.h include/clang/Lex/TokenLexer.h -include/clang/Parse/Action.h -include/clang/Parse/AttributeList.h -include/clang/Parse/DeclSpec.h -include/clang/Parse/Designator.h -include/clang/Parse/Ownership.h +include/clang/Parse/ParseAST.h include/clang/Parse/ParseDiagnostic.h include/clang/Parse/Parser.h -include/clang/Parse/Scope.h -include/clang/Parse/Template.h +include/clang/Rewrite/ASTConsumers.h include/clang/Rewrite/DeltaTree.h +include/clang/Rewrite/FixItRewriter.h +include/clang/Rewrite/FrontendActions.h include/clang/Rewrite/HTMLRewrite.h include/clang/Rewrite/RewriteRope.h include/clang/Rewrite/Rewriter.h +include/clang/Rewrite/Rewriters.h include/clang/Rewrite/TokenRewriter.h +include/clang/Sema/AnalysisBasedWarnings.h +include/clang/Sema/AttributeList.h +include/clang/Sema/CXXFieldCollector.h include/clang/Sema/CodeCompleteConsumer.h +include/clang/Sema/DeclSpec.h +include/clang/Sema/DelayedDiagnostic.h +include/clang/Sema/Designator.h include/clang/Sema/ExternalSemaSource.h -include/clang/Sema/ParseAST.h +include/clang/Sema/IdentifierResolver.h +include/clang/Sema/Initialization.h +include/clang/Sema/Lookup.h +include/clang/Sema/ObjCMethodList.h +include/clang/Sema/Overload.h +include/clang/Sema/Ownership.h +include/clang/Sema/ParsedTemplate.h +include/clang/Sema/PrettyDeclStackTrace.h +include/clang/Sema/Scope.h +include/clang/Sema/ScopeInfo.h +include/clang/Sema/Sema.h include/clang/Sema/SemaConsumer.h include/clang/Sema/SemaDiagnostic.h +include/clang/Sema/SemaInternal.h +include/clang/Sema/Template.h +include/clang/Sema/TemplateDeduction.h +include/clang/Serialization/ASTBitCodes.h +include/clang/Serialization/ASTDeserializationListener.h +include/clang/Serialization/ASTReader.h +include/clang/Serialization/ASTWriter.h +include/clang/Serialization/AttrPCHRead.inc +include/clang/Serialization/AttrPCHWrite.inc include/llvm-c/Analysis.h include/llvm-c/BitReader.h include/llvm-c/BitWriter.h @@ -293,6 +326,7 @@ include/llvm/ADT/APFloat.h include/llvm/ADT/APInt.h include/llvm/ADT/APSInt.h include/llvm/ADT/BitVector.h +include/llvm/ADT/DAGDeltaAlgorithm.h include/llvm/ADT/DeltaAlgorithm.h include/llvm/ADT/DenseMap.h include/llvm/ADT/DenseMapInfo.h @@ -307,6 +341,8 @@ include/llvm/ADT/ImmutableMap.h include/llvm/ADT/ImmutableSet.h include/llvm/ADT/IndexedMap.h include/llvm/ADT/IntrusiveRefCntPtr.h +include/llvm/ADT/NullablePtr.h +include/llvm/ADT/Optional.h include/llvm/ADT/OwningPtr.h include/llvm/ADT/PointerIntPair.h include/llvm/ADT/PointerUnion.h @@ -343,6 +379,7 @@ include/llvm/Analysis/AliasSetTracker.h include/llvm/Analysis/CFGPrinter.h include/llvm/Analysis/CallGraph.h include/llvm/Analysis/CaptureTracking.h +include/llvm/Analysis/CodeMetrics.h include/llvm/Analysis/ConstantFolding.h include/llvm/Analysis/ConstantsScanner.h include/llvm/Analysis/DOTGraphTraitsPass.h @@ -360,7 +397,9 @@ include/llvm/Analysis/IntervalPartition.h include/llvm/Analysis/LazyValueInfo.h include/llvm/Analysis/LibCallAliasAnalysis.h include/llvm/Analysis/LibCallSemantics.h +include/llvm/Analysis/Lint.h include/llvm/Analysis/LiveValues.h +include/llvm/Analysis/Loads.h include/llvm/Analysis/LoopDependenceAnalysis.h include/llvm/Analysis/LoopInfo.h include/llvm/Analysis/LoopPass.h @@ -373,15 +412,19 @@ include/llvm/Analysis/PostDominators.h include/llvm/Analysis/ProfileInfo.h include/llvm/Analysis/ProfileInfoLoader.h include/llvm/Analysis/ProfileInfoTypes.h +include/llvm/Analysis/RegionInfo.h +include/llvm/Analysis/RegionIterator.h +include/llvm/Analysis/RegionPrinter.h include/llvm/Analysis/ScalarEvolution.h include/llvm/Analysis/ScalarEvolutionExpander.h include/llvm/Analysis/ScalarEvolutionExpressions.h +include/llvm/Analysis/ScalarEvolutionNormalization.h include/llvm/Analysis/SparsePropagation.h include/llvm/Analysis/Trace.h include/llvm/Analysis/ValueTracking.h include/llvm/Analysis/Verifier.h include/llvm/Argument.h -include/llvm/Assembly/AsmAnnotationWriter.h +include/llvm/Assembly/AssemblyAnnotationWriter.h include/llvm/Assembly/Parser.h include/llvm/Assembly/PrintModulePass.h include/llvm/Assembly/Writer.h @@ -397,17 +440,18 @@ include/llvm/Bitcode/ReaderWriter.h include/llvm/CMakeLists.txt include/llvm/CallGraphSCCPass.h include/llvm/CallingConv.h +include/llvm/CodeGen/Analysis.h include/llvm/CodeGen/AsmPrinter.h include/llvm/CodeGen/BinaryObject.h include/llvm/CodeGen/CalcSpillWeights.h include/llvm/CodeGen/CallingConvLower.h -include/llvm/CodeGen/DwarfWriter.h -include/llvm/CodeGen/ELFRelocation.h include/llvm/CodeGen/FastISel.h +include/llvm/CodeGen/FunctionLoweringInfo.h include/llvm/CodeGen/GCMetadata.h include/llvm/CodeGen/GCMetadataPrinter.h include/llvm/CodeGen/GCStrategy.h include/llvm/CodeGen/GCs.h +include/llvm/CodeGen/ISDOpcodes.h include/llvm/CodeGen/IntrinsicLowering.h include/llvm/CodeGen/JITCodeEmitter.h include/llvm/CodeGen/LatencyPriorityQueue.h @@ -442,6 +486,7 @@ include/llvm/CodeGen/MachineRelocation.h include/llvm/CodeGen/MachineSSAUpdater.h include/llvm/CodeGen/ObjectCodeEmitter.h include/llvm/CodeGen/Passes.h +include/llvm/CodeGen/PostRAHazardRecognizer.h include/llvm/CodeGen/ProcessImplicitDefs.h include/llvm/CodeGen/PseudoSourceValue.h include/llvm/CodeGen/RegAllocRegistry.h @@ -459,14 +504,13 @@ include/llvm/CodeGen/TargetLoweringObjectFileImpl.h include/llvm/CodeGen/ValueTypes.h include/llvm/CodeGen/ValueTypes.td include/llvm/CompilerDriver/Action.h +include/llvm/CompilerDriver/AutoGenerated.h include/llvm/CompilerDriver/BuiltinOptions.h include/llvm/CompilerDriver/Common.td include/llvm/CompilerDriver/CompilationGraph.h include/llvm/CompilerDriver/Error.h -include/llvm/CompilerDriver/ForceLinkage.h -include/llvm/CompilerDriver/ForceLinkageMacros.h +include/llvm/CompilerDriver/Main.h include/llvm/CompilerDriver/Main.inc -include/llvm/CompilerDriver/Plugin.h include/llvm/CompilerDriver/Tool.h include/llvm/Config/AsmParsers.def include/llvm/Config/AsmPrinters.def @@ -474,6 +518,8 @@ include/llvm/Config/Disassemblers.def include/llvm/Config/Targets.def include/llvm/Config/config.h include/llvm/Config/config.h.cmake +include/llvm/Config/llvm-config.h +include/llvm/Config/llvm-config.h.cmake include/llvm/Constant.h include/llvm/Constants.h include/llvm/DerivedTypes.h @@ -507,30 +553,41 @@ include/llvm/LLVMContext.h include/llvm/LinkAllPasses.h include/llvm/LinkAllVMCore.h include/llvm/Linker.h +include/llvm/MC/EDInstInfo.h +include/llvm/MC/ELFObjectWriter.h include/llvm/MC/MCAsmInfo.h include/llvm/MC/MCAsmInfoCOFF.h include/llvm/MC/MCAsmInfoDarwin.h +include/llvm/MC/MCAsmLayout.h include/llvm/MC/MCAssembler.h include/llvm/MC/MCCodeEmitter.h include/llvm/MC/MCContext.h include/llvm/MC/MCDirectives.h include/llvm/MC/MCDisassembler.h +include/llvm/MC/MCDwarf.h +include/llvm/MC/MCELFSymbolFlags.h include/llvm/MC/MCExpr.h include/llvm/MC/MCFixup.h include/llvm/MC/MCInst.h include/llvm/MC/MCInstPrinter.h +include/llvm/MC/MCLabel.h +include/llvm/MC/MCMachOSymbolFlags.h +include/llvm/MC/MCObjectStreamer.h +include/llvm/MC/MCObjectWriter.h include/llvm/MC/MCParser/AsmCond.h include/llvm/MC/MCParser/AsmLexer.h -include/llvm/MC/MCParser/AsmParser.h include/llvm/MC/MCParser/MCAsmLexer.h include/llvm/MC/MCParser/MCAsmParser.h +include/llvm/MC/MCParser/MCAsmParserExtension.h include/llvm/MC/MCParser/MCParsedAsmOperand.h include/llvm/MC/MCSection.h +include/llvm/MC/MCSectionCOFF.h include/llvm/MC/MCSectionELF.h include/llvm/MC/MCSectionMachO.h include/llvm/MC/MCStreamer.h include/llvm/MC/MCSymbol.h include/llvm/MC/MCValue.h +include/llvm/MC/MachObjectWriter.h include/llvm/MC/SectionKind.h include/llvm/Metadata.h include/llvm/Module.h @@ -540,16 +597,19 @@ include/llvm/Pass.h include/llvm/PassAnalysisSupport.h include/llvm/PassManager.h include/llvm/PassManagers.h +include/llvm/PassRegistry.h include/llvm/PassSupport.h include/llvm/Support/AlignOf.h include/llvm/Support/Allocator.h include/llvm/Support/CFG.h +include/llvm/Support/COFF.h include/llvm/Support/CallSite.h include/llvm/Support/Casting.h include/llvm/Support/CommandLine.h include/llvm/Support/Compiler.h include/llvm/Support/ConstantFolder.h include/llvm/Support/ConstantRange.h +include/llvm/Support/CrashRecoveryContext.h include/llvm/Support/DOTGraphTraits.h include/llvm/Support/DataFlow.h include/llvm/Support/Debug.h @@ -588,7 +648,6 @@ include/llvm/Support/Regex.h include/llvm/Support/Registry.h include/llvm/Support/RegistryParser.h include/llvm/Support/SMLoc.h -include/llvm/Support/SlowOperationInformer.h include/llvm/Support/SourceMgr.h include/llvm/Support/StableBasicBlockNumbering.h include/llvm/Support/StandardPasses.h @@ -625,12 +684,14 @@ include/llvm/System/Solaris.h include/llvm/System/ThreadLocal.h include/llvm/System/Threading.h include/llvm/System/TimeValue.h +include/llvm/System/Valgrind.h include/llvm/Target/Mangler.h include/llvm/Target/SubtargetFeature.h include/llvm/Target/Target.td include/llvm/Target/TargetAsmBackend.h include/llvm/Target/TargetAsmLexer.h include/llvm/Target/TargetAsmParser.h +include/llvm/Target/TargetCallingConv.h include/llvm/Target/TargetCallingConv.td include/llvm/Target/TargetData.h include/llvm/Target/TargetELFWriterInfo.h @@ -650,6 +711,7 @@ include/llvm/Target/TargetRegistry.h include/llvm/Target/TargetSchedule.td include/llvm/Target/TargetSelect.h include/llvm/Target/TargetSelectionDAG.td +include/llvm/Target/TargetSelectionDAGInfo.h include/llvm/Target/TargetSubtarget.h include/llvm/Transforms/IPO.h include/llvm/Transforms/IPO/InlinerPass.h @@ -665,7 +727,7 @@ include/llvm/Transforms/Utils/FunctionUtils.h include/llvm/Transforms/Utils/Local.h include/llvm/Transforms/Utils/PromoteMemToReg.h include/llvm/Transforms/Utils/SSAUpdater.h -include/llvm/Transforms/Utils/SSI.h +include/llvm/Transforms/Utils/SSAUpdaterImpl.h include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h include/llvm/Transforms/Utils/UnrollLoop.h include/llvm/Transforms/Utils/ValueMapper.h @@ -675,34 +737,59 @@ include/llvm/Use.h include/llvm/User.h include/llvm/Value.h include/llvm/ValueSymbolTable.h -lib/clang/1.1/include/emmintrin.h -lib/clang/1.1/include/float.h -lib/clang/1.1/include/iso646.h -lib/clang/1.1/include/limits.h -lib/clang/1.1/include/mm_malloc.h -lib/clang/1.1/include/mmintrin.h -lib/clang/1.1/include/pmmintrin.h -lib/clang/1.1/include/smmintrin.h -lib/clang/1.1/include/stdarg.h -lib/clang/1.1/include/stdbool.h -lib/clang/1.1/include/stddef.h -lib/clang/1.1/include/stdint.h -lib/clang/1.1/include/tgmath.h -lib/clang/1.1/include/tmmintrin.h -lib/clang/1.1/include/xmmintrin.h -lib/libCIndex.a -lib/libCIndex.so +lib/clang/2.8/include/altivec.h +lib/clang/2.8/include/arm_neon.h +lib/clang/2.8/include/avxintrin.h +lib/clang/2.8/include/emmintrin.h +lib/clang/2.8/include/float.h +lib/clang/2.8/include/immintrin.h +lib/clang/2.8/include/iso646.h +lib/clang/2.8/include/limits.h +lib/clang/2.8/include/mm_malloc.h +lib/clang/2.8/include/mmintrin.h +lib/clang/2.8/include/nmmintrin.h +lib/clang/2.8/include/pmmintrin.h +lib/clang/2.8/include/smmintrin.h +lib/clang/2.8/include/stdarg.h +lib/clang/2.8/include/stdbool.h +lib/clang/2.8/include/stddef.h +lib/clang/2.8/include/stdint.h +lib/clang/2.8/include/tgmath.h +lib/clang/2.8/include/tmmintrin.h +lib/clang/2.8/include/varargs.h +lib/clang/2.8/include/wmmintrin.h +lib/clang/2.8/include/x86intrin.h +lib/clang/2.8/include/xmmintrin.h +lib/libBugpointPasses.so lib/libCompilerDriver.a lib/libEnhancedDisassembly.a lib/libEnhancedDisassembly.so +lib/libLLVMARMAsmParser.a +lib/libLLVMARMAsmPrinter.a +lib/libLLVMARMCodeGen.a +lib/libLLVMARMDisassembler.a +lib/libLLVMARMInfo.a +lib/libLLVMAlphaAsmPrinter.a +lib/libLLVMAlphaCodeGen.a +lib/libLLVMAlphaInfo.a lib/libLLVMAnalysis.a lib/libLLVMArchive.a lib/libLLVMAsmParser.a lib/libLLVMAsmPrinter.a lib/libLLVMBitReader.a lib/libLLVMBitWriter.a +lib/libLLVMBlackfinAsmPrinter.a +lib/libLLVMBlackfinCodeGen.a +lib/libLLVMBlackfinInfo.a +lib/libLLVMCBackend.a +lib/libLLVMCBackendInfo.a +lib/libLLVMCellSPUAsmPrinter.a +lib/libLLVMCellSPUCodeGen.a +lib/libLLVMCellSPUInfo.a lib/libLLVMCodeGen.a lib/libLLVMCore.a +lib/libLLVMCppBackend.a +lib/libLLVMCppBackendInfo.a lib/libLLVMExecutionEngine.a lib/libLLVMHello.so lib/libLLVMInstCombine.a @@ -710,12 +797,34 @@ lib/libLLVMInstrumentation.a lib/libLLVMInterpreter.a lib/libLLVMJIT.a lib/libLLVMLinker.a +lib/libLLVMMBlazeAsmPrinter.a +lib/libLLVMMBlazeCodeGen.a +lib/libLLVMMBlazeInfo.a lib/libLLVMMC.a +lib/libLLVMMCDisassembler.a lib/libLLVMMCParser.a +lib/libLLVMMSP430AsmPrinter.a +lib/libLLVMMSP430CodeGen.a +lib/libLLVMMSP430Info.a +lib/libLLVMMipsAsmPrinter.a +lib/libLLVMMipsCodeGen.a +lib/libLLVMMipsInfo.a +lib/libLLVMPIC16AsmPrinter.a +lib/libLLVMPIC16CodeGen.a +lib/libLLVMPIC16Info.a +lib/libLLVMPowerPCAsmPrinter.a +lib/libLLVMPowerPCCodeGen.a +lib/libLLVMPowerPCInfo.a lib/libLLVMScalarOpts.a lib/libLLVMSelectionDAG.a +lib/libLLVMSparcAsmPrinter.a +lib/libLLVMSparcCodeGen.a +lib/libLLVMSparcInfo.a lib/libLLVMSupport.a lib/libLLVMSystem.a +lib/libLLVMSystemZAsmPrinter.a +lib/libLLVMSystemZCodeGen.a +lib/libLLVMSystemZInfo.a lib/libLLVMTarget.a lib/libLLVMTransformUtils.a lib/libLLVMX86AsmParser.a @@ -723,11 +832,17 @@ lib/libLLVMX86AsmPrinter.a lib/libLLVMX86CodeGen.a lib/libLLVMX86Disassembler.a lib/libLLVMX86Info.a +lib/libLLVMXCoreAsmPrinter.a +lib/libLLVMXCoreCodeGen.a +lib/libLLVMXCoreInfo.a lib/libLLVMipa.a lib/libLLVMipo.a +lib/libLLVMpic16passes.a lib/libLTO.a lib/libLTO.so lib/libUnitTestMain.a +lib/libclang.a +lib/libclang.so lib/libclangAST.a lib/libclangAnalysis.a lib/libclangBasic.a @@ -735,13 +850,13 @@ lib/libclangChecker.a lib/libclangCodeGen.a lib/libclangDriver.a lib/libclangFrontend.a +lib/libclangFrontendTool.a lib/libclangIndex.a lib/libclangLex.a lib/libclangParse.a lib/libclangRewrite.a lib/libclangSema.a -lib/libplugin_llvmc_Base.a -lib/libplugin_llvmc_Clang.a +lib/libclangSerialization.a lib/libprofile_rt.so man/man1/bugpoint.1 man/man1/clang.1 @@ -752,6 +867,7 @@ man/man1/llvm-ar.1 man/man1/llvm-as.1 man/man1/llvm-bcanalyzer.1 man/man1/llvm-config.1 +man/man1/llvm-diff.1 man/man1/llvm-dis.1 man/man1/llvm-extract.1 man/man1/llvm-ld.1 @@ -783,6 +899,7 @@ share/doc/llvm/html/CommandGuide/llvm-ar.html share/doc/llvm/html/CommandGuide/llvm-as.html share/doc/llvm/html/CommandGuide/llvm-bcanalyzer.html share/doc/llvm/html/CommandGuide/llvm-config.html +share/doc/llvm/html/CommandGuide/llvm-diff.html share/doc/llvm/html/CommandGuide/llvm-dis.html share/doc/llvm/html/CommandGuide/llvm-extract.html share/doc/llvm/html/CommandGuide/llvm-ld.html @@ -872,6 +989,7 @@ share/doc/llvm/ps/llvm-ar.ps share/doc/llvm/ps/llvm-as.ps share/doc/llvm/ps/llvm-bcanalyzer.ps share/doc/llvm/ps/llvm-config.ps +share/doc/llvm/ps/llvm-diff.ps share/doc/llvm/ps/llvm-dis.ps share/doc/llvm/ps/llvm-extract.ps share/doc/llvm/ps/llvm-ld.ps diff --git a/lang/clang/distinfo b/lang/clang/distinfo index c49d76677cb..bbdd13ea54c 100644 --- a/lang/clang/distinfo +++ b/lang/clang/distinfo @@ -1,12 +1,11 @@ -$NetBSD: distinfo,v 1.4 2010/05/04 16:52:16 drochner Exp $ +$NetBSD: distinfo,v 1.5 2010/10/21 13:52:15 adam Exp $ -SHA1 (clang-2.7.tgz) = 4d8326bfe2308a7355a5e4ca2eb172bffd761e1e -RMD160 (clang-2.7.tgz) = 177fdcf59be4a60c37cf0dfb058535c9cdbbad4e -Size (clang-2.7.tgz) = 4953739 bytes -SHA1 (llvm-2.7.tgz) = 059fc21b0ec1b649c4a3dec81756e5f92aa131a2 -RMD160 (llvm-2.7.tgz) = 0fa2f362dd6a45efec35ce8fa0f8d36d98f32c8f -Size (llvm-2.7.tgz) = 8374297 bytes -SHA1 (patch-ac) = 3b8b72035d391456c58ffb787284b1fb873b6732 -SHA1 (patch-ad) = b90fa4fa75ef1f7c8cb9475798bf7f8e53e6baa9 -SHA1 (patch-ae) = 7ace4a3835f5998fbd9582f531237977dc948849 -SHA1 (patch-af) = 440f939c1f3500e6a96b95f4ba63051c1e3f5f10 +SHA1 (clang-2.8.tgz) = 94977c84ce136307dbbeade95e67bfe3c25161ff +RMD160 (clang-2.8.tgz) = f00956b6de29cc09f3992aeabd140f2189c6cf39 +Size (clang-2.8.tgz) = 5666777 bytes +SHA1 (llvm-2.8.tgz) = 10d8957efac1d970fbc8264b28855250e9ce9eb1 +RMD160 (llvm-2.8.tgz) = ac54bd88d4fb624833cce86a1cb7f6f9cd2bc106 +Size (llvm-2.8.tgz) = 9112558 bytes +SHA1 (patch-ab) = 0a2f0cca347d3f305e6e648cf811a4190d7f7b11 +SHA1 (patch-ac) = e82e112bbbb294a3880f7445a7d1b755a6e9ab43 +SHA1 (patch-ad) = 4cd7223d1660a4e8d81b33b6c99efbb680664164 diff --git a/lang/clang/patches/patch-ab b/lang/clang/patches/patch-ab new file mode 100644 index 00000000000..677cdc9468c --- /dev/null +++ b/lang/clang/patches/patch-ab @@ -0,0 +1,45 @@ +$NetBSD: patch-ab,v 1.1 2010/10/21 13:52:16 adam Exp $ + +--- docs/Makefile.orig 2010-07-29 12:46:24.000000000 +0000 ++++ docs/Makefile +@@ -46,20 +46,19 @@ install-local:: $(install_targets) + # 'make generated BUILD_FOR_WEBSITE=1' + generated:: doxygen ocamldoc + +-install-html: $(PROJ_OBJ_DIR)/html.tar.gz ++install-html: + $(Echo) Installing HTML documentation + $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html + $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/img + $(Verb) $(DataInstall) $(HTML) $(DESTDIR)$(PROJ_docsdir)/html + $(Verb) $(DataInstall) $(IMAGES) $(DESTDIR)$(PROJ_docsdir)/html/img +- $(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(DESTDIR)$(PROJ_docsdir) + + $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML) + $(Echo) Packaging HTML documentation + $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/html.tar + $(Verb) cd $(PROJ_SRC_DIR) && \ + $(TAR) cf $(PROJ_OBJ_DIR)/html.tar *.html +- $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/html.tar ++ $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/html.tar + + install-doxygen: doxygen + $(Echo) Installing doxygen documentation +@@ -82,7 +81,7 @@ $(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFI + $(Echo) Packaging doxygen documentation + $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/doxygen.tar + $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/doxygen.tar doxygen +- $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/doxygen.tar ++ $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/doxygen.tar + $(Verb) $(CP) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(PROJ_OBJ_DIR)/doxygen/html/ + + userloc: $(LLVM_SRC_ROOT)/docs/userloc.html +@@ -104,7 +103,7 @@ ocamldoc: regen-ocamldoc + $(Echo) Packaging ocamldoc documentation + $(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/ocamldoc.tar* + $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/ocamldoc.tar ocamldoc +- $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/ocamldoc.tar ++ $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/ocamldoc.tar + $(Verb) $(CP) $(PROJ_OBJ_DIR)/ocamldoc.tar.gz $(PROJ_OBJ_DIR)/ocamldoc/html/ + + regen-ocamldoc: diff --git a/lang/clang/patches/patch-ac b/lang/clang/patches/patch-ac index b9eee23d0b1..4b36c1a18e8 100644 --- a/lang/clang/patches/patch-ac +++ b/lang/clang/patches/patch-ac @@ -1,25 +1,21 @@ -$NetBSD: patch-ac,v 1.2 2010/04/27 15:12:09 drochner Exp $ +$NetBSD: patch-ac,v 1.3 2010/10/21 13:52:16 adam Exp $ ---- Makefile.rules.orig 2010-04-25 19:18:33.000000000 +0000 +--- Makefile.rules.orig 2010-08-26 08:27:26.000000000 +0000 +++ Makefile.rules -@@ -589,11 +589,11 @@ ifdef LOADABLE_MODULE - LD.Flags += -module - endif - --ifdef SHARED_LIBRARY +@@ -517,9 +517,9 @@ ifneq ($(HOST_OS), $(filter $(HOST_OS), + ifneq ($(HOST_OS),Darwin) + LD.Flags += $(RPATH) -Wl,'$$ORIGIN' + else -ifneq ($(DARWIN_MAJVERS),4) -- LD.Flags += $(RPATH) -Wl,$(LibDir) +- LD.Flags += $(RPATH) -Wl,$(SharedLibDir) -endif --endif -+#ifdef SHARED_LIBRARY +#ifneq ($(DARWIN_MAJVERS),4) -+# LD.Flags += $(RPATH) -Wl,$(LibDir) -+#endif ++# LD.Flags += $(RPATH) -Wl,$(SharedLibDir) +#endif - - ifdef TOOL_VERBOSE - C.Flags += -v -@@ -624,9 +624,9 @@ ifneq ($(DARWIN_MAJVERS),4) + endif + endif + endif +@@ -553,9 +553,9 @@ ifneq ($(HOST_OS), Darwin) ifdef TOOLNAME LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' ifdef EXAMPLE_TOOL @@ -30,8 +26,8 @@ $NetBSD: patch-ac,v 1.2 2010/04/27 15:12:09 drochner Exp $ + LD.Flags += $(RDYNAMIC) endif endif - endif -@@ -780,9 +780,6 @@ ObjectsBC := $(BaseNameSources:%=$(ObjDi + else +@@ -716,9 +716,6 @@ ObjectsBC := $(BaseNameSources:%=$(ObjDi # in the file so they get built before dependencies #--------------------------------------------------------- @@ -41,7 +37,7 @@ $NetBSD: patch-ac,v 1.2 2010/04/27 15:12:09 drochner Exp $ # To create other directories, as needed, and timestamp their creation %/.dir: $(Verb) $(MKDIR) $* > /dev/null -@@ -903,7 +900,9 @@ install-local:: +@@ -844,7 +841,9 @@ install-local:: uninstall-local:: $(Echo) UnInstall circumvented with NO_INSTALL else diff --git a/lang/clang/patches/patch-ad b/lang/clang/patches/patch-ad index 1fe9badc731..c40754f2354 100644 --- a/lang/clang/patches/patch-ad +++ b/lang/clang/patches/patch-ad @@ -1,8 +1,8 @@ -$NetBSD: patch-ad,v 1.2 2010/04/27 15:12:09 drochner Exp $ +$NetBSD: patch-ad,v 1.3 2010/10/21 13:52:16 adam Exp $ ---- Makefile.config.in.orig 2010-03-19 14:56:04.000000000 +0000 +--- Makefile.config.in.orig 2010-08-06 07:41:54.000000000 +0000 +++ Makefile.config.in -@@ -79,11 +79,11 @@ LLVMMAKE := $(LLVM_SRC_ROOT)/make +@@ -83,11 +83,11 @@ LLVMMAKE := $(LLVM_SRC_ROOT)/make PROJ_bindir := $(PROJ_prefix)/bin PROJ_libdir := $(PROJ_prefix)/lib PROJ_datadir := $(PROJ_prefix)/share diff --git a/lang/clang/patches/patch-ae b/lang/clang/patches/patch-ae deleted file mode 100644 index 39ae264b7d5..00000000000 --- a/lang/clang/patches/patch-ae +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ae,v 1.2 2010/04/27 15:12:09 drochner Exp $ - ---- lib/System/Unix/Path.inc.orig 2009-12-09 15:56:52.000000000 +0100 -+++ lib/System/Unix/Path.inc -@@ -283,7 +283,7 @@ Path::GetCurrentDirectory() { - return Path(pathname); - } - --#ifdef __FreeBSD__ -+#if defined(__FreeBSD__) || defined(__NetBSD__) - static int - test_dir(char buf[PATH_MAX], char ret[PATH_MAX], - const char *dir, const char *bin) -@@ -351,7 +351,7 @@ Path Path::GetMainExecutable(const char - if (realpath(exe_path, link_path)) - return Path(std::string(link_path)); - } --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__NetBSD__) - char exe_path[PATH_MAX]; - - if (getprogpath(exe_path, argv0) != NULL) diff --git a/lang/clang/patches/patch-af b/lang/clang/patches/patch-af deleted file mode 100644 index 0cd81e7ce7f..00000000000 --- a/lang/clang/patches/patch-af +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-af,v 1.1 2010/05/04 16:52:16 drochner Exp $ - ---- tools/clang/lib/Frontend/InitHeaderSearch.cpp.orig 2010-05-04 10:43:04.000000000 +0000 -+++ tools/clang/lib/Frontend/InitHeaderSearch.cpp -@@ -637,6 +637,9 @@ void InitHeaderSearch::AddDefaultCPlusPl - case llvm::Triple::FreeBSD: - AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.2", "", "", "", triple); - break; -+ case llvm::Triple::NetBSD: -+ AddGnuCPlusPlusIncludePaths("/usr/include/g++", "", "", "", triple); -+ break; - case llvm::Triple::Solaris: - // Solaris - Fall though.. - case llvm::Triple::AuroraUX: |