diff options
author | brooks <brooks@FreeBSD.org> | 2012-02-23 07:19:27 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2012-02-23 07:19:27 +0800 |
commit | ff50661825bb6b4c0b8f3bfe2b1930d1975b2b96 (patch) | |
tree | 90adccf65319f5ac3fbe8687dadac44457b8e331 /lang | |
parent | 871179359d1104382a38c95f3aaa26d98395485c (diff) | |
download | freebsd-ports-gnome-ff50661825bb6b4c0b8f3bfe2b1930d1975b2b96.tar.gz freebsd-ports-gnome-ff50661825bb6b4c0b8f3bfe2b1930d1975b2b96.tar.zst freebsd-ports-gnome-ff50661825bb6b4c0b8f3bfe2b1930d1975b2b96.zip |
Upgrade to llvm/clang r150242.
Enable installation of the shared libaray in LLVM.
Add preliminary support for building and installing the gold linker
plugin. No option is avaiable to turn it on (use -DWITH_LTOPLUGIN)
because devel/binutils does not yet build the gold linker.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang-devel/Makefile | 2 | ||||
-rw-r--r-- | lang/clang-devel/distinfo | 8 | ||||
-rw-r--r-- | lang/clang-devel/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h | 8 | ||||
-rw-r--r-- | lang/clang-devel/files/patch-utils_llvm-build_llvmbuild_main.py | 20 | ||||
-rw-r--r-- | lang/clang-devel/pkg-plist | 55 |
5 files changed, 67 insertions, 26 deletions
diff --git a/lang/clang-devel/Makefile b/lang/clang-devel/Makefile index ffcddd9613d8..ca1fb685aa24 100644 --- a/lang/clang-devel/Makefile +++ b/lang/clang-devel/Makefile @@ -6,7 +6,7 @@ # PORTNAME= clang -PORTVERSION= 3.0.r${SVN_REV} +PORTVERSION= 3.1.r${SVN_REV} CATEGORIES= lang devel MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks diff --git a/lang/clang-devel/distinfo b/lang/clang-devel/distinfo index 366346abb03d..8cda9aef7211 100644 --- a/lang/clang-devel/distinfo +++ b/lang/clang-devel/distinfo @@ -1,4 +1,4 @@ -SHA256 (clang-3.0.r141985.tar.bz2) = 895338d9597beb2641a0c33287359f8cfb2ab928510b4e3ae0f9b9bce4090d45 -SIZE (clang-3.0.r141985.tar.bz2) = 5939443 -SHA256 (llvm-3.0.r141985.tar.bz2) = 4171bef5590c3bb54110cb92d3e6a7c1a145a4b209c9c0cd3376444d08930afa -SIZE (llvm-3.0.r141985.tar.bz2) = 8022095 +SHA256 (clang-3.1.r150242.tar.bz2) = c1123f4b74ce87cccfc849d2d4d86fe7350d391c8233d4a4735703c64e4674a8 +SIZE (clang-3.1.r150242.tar.bz2) = 6358664 +SHA256 (llvm-3.1.r150242.tar.bz2) = 58df5cf4cbe97bd5f7007540b03e45abbc203190436e63b9535f9ef2c695e2ae +SIZE (llvm-3.1.r150242.tar.bz2) = 8439654 diff --git a/lang/clang-devel/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h b/lang/clang-devel/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h index 45a6b81cb300..611fa06f3733 100644 --- a/lang/clang-devel/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h +++ b/lang/clang-devel/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h @@ -3,14 +3,14 @@ $FreeBSD$ --- tools/clang/include/clang/Analysis/Analyses/FormatString.h.orig +++ tools/clang/include/clang/Analysis/Analyses/FormatString.h -@@ -139,6 +139,10 @@ +@@ -141,6 +141,10 @@ SArg, - + // ** Printf-specific ** -+ ++ + // FreeBSD specific specifiers + bArg, + DArg, - + // Objective-C specific specifiers. ObjCObjArg, // '@' diff --git a/lang/clang-devel/files/patch-utils_llvm-build_llvmbuild_main.py b/lang/clang-devel/files/patch-utils_llvm-build_llvmbuild_main.py new file mode 100644 index 000000000000..1e2de0273d55 --- /dev/null +++ b/lang/clang-devel/files/patch-utils_llvm-build_llvmbuild_main.py @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- utils/llvm-build/llvmbuild/main.py.orig ++++ utils/llvm-build/llvmbuild/main.py +@@ -633,7 +633,13 @@ + + # We handle a few special cases of target names here for historical + # reasons, as these are the names configure currently comes up with. +- native_target_name = { 'x86' : 'X86', ++ native_target_name = { 'amd64' : 'X86', ++ 'arm' : 'ARM', ++ 'i386' : 'X86', ++ 'mips' : 'Mips', ++ 'powerpc' : 'PowerPC', ++ 'sparc64' : 'Sparc', ++ 'x86' : 'X86', + 'x86_64' : 'X86', + 'Unknown' : None }.get(opts.native_target, + opts.native_target) diff --git a/lang/clang-devel/pkg-plist b/lang/clang-devel/pkg-plist index 5789425db8fa..0ecbbaddb397 100644 --- a/lang/clang-devel/pkg-plist +++ b/lang/clang-devel/pkg-plist @@ -22,6 +22,7 @@ include/clang/AST/Attr.h include/clang/AST/AttrImpl.inc include/clang/AST/Attrs.inc include/clang/AST/BaseSubobject.h +include/clang/AST/BuiltinTypes.def include/clang/AST/CXXInheritance.h include/clang/AST/CanonicalType.h include/clang/AST/CharUnits.h @@ -74,8 +75,10 @@ include/clang/AST/UsuallyTinyPtrVector.h include/clang/AST/VTTBuilder.h include/clang/AST/VTableBuilder.h include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h +include/clang/Analysis/Analyses/Dominators.h include/clang/Analysis/Analyses/FormatString.h include/clang/Analysis/Analyses/LiveVariables.h +include/clang/Analysis/Analyses/PostOrderCFGView.h include/clang/Analysis/Analyses/PseudoConstantAnalysis.h include/clang/Analysis/Analyses/ReachableCode.h include/clang/Analysis/Analyses/ThreadSafety.h @@ -101,6 +104,7 @@ include/clang/Basic/AttrList.inc include/clang/Basic/Builtins.def include/clang/Basic/Builtins.h include/clang/Basic/BuiltinsARM.def +include/clang/Basic/BuiltinsHexagon.def include/clang/Basic/BuiltinsPPC.def include/clang/Basic/BuiltinsPTX.def include/clang/Basic/BuiltinsX86.def @@ -119,6 +123,7 @@ include/clang/Basic/DiagnosticIndexName.inc include/clang/Basic/DiagnosticLexKinds.inc include/clang/Basic/DiagnosticParseKinds.inc include/clang/Basic/DiagnosticSemaKinds.inc +include/clang/Basic/DiagnosticSerializationKinds.inc include/clang/Basic/ExceptionSpecificationType.h include/clang/Basic/ExpressionTraits.h include/clang/Basic/FileManager.h @@ -126,10 +131,12 @@ include/clang/Basic/FileSystemOptions.h include/clang/Basic/FileSystemStatCache.h include/clang/Basic/IdentifierTable.h include/clang/Basic/LLVM.h +include/clang/Basic/Lambda.h include/clang/Basic/LangOptions.def include/clang/Basic/LangOptions.h include/clang/Basic/Linkage.h include/clang/Basic/MacroBuilder.h +include/clang/Basic/Module.h include/clang/Basic/OnDiskHashTable.h include/clang/Basic/OpenCL.h include/clang/Basic/OpenCLExtensions.def @@ -156,6 +163,7 @@ include/clang/Basic/arm_neon.inc include/clang/CodeGen/BackendUtil.h include/clang/CodeGen/CodeGenAction.h include/clang/CodeGen/ModuleBuilder.h +include/clang/Config/config.h include/clang/Driver/Action.h include/clang/Driver/Arg.h include/clang/Driver/ArgList.h @@ -166,7 +174,6 @@ include/clang/Driver/CC1Options.inc include/clang/Driver/Compilation.h include/clang/Driver/Driver.h include/clang/Driver/DriverDiagnostic.h -include/clang/Driver/HostInfo.h include/clang/Driver/Job.h include/clang/Driver/ObjCRuntime.h include/clang/Driver/OptSpecifier.h @@ -185,12 +192,14 @@ include/clang/Frontend/ASTUnit.h include/clang/Frontend/Analyses.def include/clang/Frontend/AnalyzerOptions.h include/clang/Frontend/ChainedDiagnosticConsumer.h +include/clang/Frontend/ChainedIncludesSource.h include/clang/Frontend/CodeGenOptions.h include/clang/Frontend/CommandLineSourceLoc.h include/clang/Frontend/CompilerInstance.h include/clang/Frontend/CompilerInvocation.h include/clang/Frontend/DependencyOutputOptions.h include/clang/Frontend/DiagnosticOptions.h +include/clang/Frontend/DiagnosticRenderer.h include/clang/Frontend/FrontendAction.h include/clang/Frontend/FrontendActions.h include/clang/Frontend/FrontendDiagnostic.h @@ -199,10 +208,14 @@ include/clang/Frontend/FrontendPluginRegistry.h include/clang/Frontend/HeaderSearchOptions.h include/clang/Frontend/LangStandard.h include/clang/Frontend/LangStandards.def +include/clang/Frontend/LayoutOverrideSource.h include/clang/Frontend/LogDiagnosticPrinter.h +include/clang/Frontend/MigratorOptions.h include/clang/Frontend/MultiplexConsumer.h include/clang/Frontend/PreprocessorOptions.h include/clang/Frontend/PreprocessorOutputOptions.h +include/clang/Frontend/SerializedDiagnosticPrinter.h +include/clang/Frontend/TextDiagnostic.h include/clang/Frontend/TextDiagnosticBuffer.h include/clang/Frontend/TextDiagnosticPrinter.h include/clang/Frontend/Utils.h @@ -232,6 +245,7 @@ include/clang/Lex/Lexer.h include/clang/Lex/LiteralSupport.h include/clang/Lex/MacroInfo.h include/clang/Lex/ModuleLoader.h +include/clang/Lex/ModuleMap.h include/clang/Lex/MultipleIncludeOpt.h include/clang/Lex/PPCallbacks.h include/clang/Lex/PTHLexer.h @@ -258,6 +272,7 @@ include/clang/Rewrite/Rewriter.h include/clang/Rewrite/Rewriters.h include/clang/Rewrite/TokenRewriter.h include/clang/Sema/AnalysisBasedWarnings.h +include/clang/Sema/AttrTemplateInstantiate.inc include/clang/Sema/AttributeList.h include/clang/Sema/CXXFieldCollector.h include/clang/Sema/CodeCompleteConsumer.h @@ -292,10 +307,10 @@ include/clang/Serialization/ASTReader.h include/clang/Serialization/ASTWriter.h include/clang/Serialization/AttrPCHRead.inc include/clang/Serialization/AttrPCHWrite.inc -include/clang/Serialization/ChainedIncludesSource.h include/clang/Serialization/ContinuousRangeMap.h include/clang/Serialization/Module.h include/clang/Serialization/ModuleManager.h +include/clang/Serialization/SerializationDiagnostic.h include/clang/StaticAnalyzer/Checkers/ClangCheckers.h include/clang/StaticAnalyzer/Checkers/DereferenceChecker.h include/clang/StaticAnalyzer/Checkers/LocalCheckers.h @@ -318,11 +333,11 @@ include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h -include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngineBuilders.h include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h +include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h include/clang/StaticAnalyzer/Core/PathSensitive/Store.h @@ -330,21 +345,24 @@ include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h +include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h +include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h include/clang/StaticAnalyzer/Frontend/FrontendActions.h -lib/clang/3.0/include/arm_neon.h -lib/clang/3.0/include/emmintrin.h -lib/clang/3.0/include/immintrin.h -lib/clang/3.0/include/mm3dnow.h -lib/clang/3.0/include/mm_malloc.h -lib/clang/3.0/include/mmintrin.h -lib/clang/3.0/include/nmmintrin.h -lib/clang/3.0/include/pmmintrin.h -lib/clang/3.0/include/smmintrin.h -lib/clang/3.0/include/tmmintrin.h -lib/clang/3.0/include/wmmintrin.h -lib/clang/3.0/include/xmmintrin.h +lib/clang/3.1/include/arm_neon.h +lib/clang/3.1/include/emmintrin.h +lib/clang/3.1/include/immintrin.h +lib/clang/3.1/include/mm3dnow.h +lib/clang/3.1/include/mm_malloc.h +lib/clang/3.1/include/mmintrin.h +lib/clang/3.1/include/module.map +lib/clang/3.1/include/nmmintrin.h +lib/clang/3.1/include/pmmintrin.h +lib/clang/3.1/include/smmintrin.h +lib/clang/3.1/include/tmmintrin.h +lib/clang/3.1/include/wmmintrin.h +lib/clang/3.1/include/xmmintrin.h lib/libclang.a lib/libclang.so lib/libclangARCMigrate.a @@ -367,6 +385,7 @@ lib/libclangStaticAnalyzerFrontend.a %%DATADIR%%/scanview.css %%DATADIR%%/sorttable.js %%PORTDOCS%%%%DOCSDIR%%/html.tar.gz +%%PORTDOCS%%%%DOCSDIR%%/html/AddressSanitizer.html %%PORTDOCS%%%%DOCSDIR%%/html/AnalyzerRegions.html %%PORTDOCS%%%%DOCSDIR%%/html/AutomaticReferenceCounting.html %%PORTDOCS%%%%DOCSDIR%%/html/DriverInternals.html @@ -374,6 +393,7 @@ lib/libclangStaticAnalyzerFrontend.a %%PORTDOCS%%%%DOCSDIR%%/html/LanguageExtensions.html %%PORTDOCS%%%%DOCSDIR%%/html/PCHInternals.html %%PORTDOCS%%%%DOCSDIR%%/html/PTHInternals.html +%%PORTDOCS%%%%DOCSDIR%%/html/ReleaseNotes.html %%PORTDOCS%%%%DOCSDIR%%/html/UsersManual.html %%PORTDOCS%%%%DOCSDIR%%/html/clang/clang.html %%PORTDOCS%%%%DOCSDIR%%/html/clang/manpage.css @@ -385,8 +405,8 @@ lib/libclangStaticAnalyzerFrontend.a %%PYTHON_SITELIBDIR%%/Resources/bugcatcher.ico %%PYTHON_SITELIBDIR%%/ScanView.py %%PYTHON_SITELIBDIR%%/startfile.py -@dirrm lib/clang/3.0/include -@dirrm lib/clang/3.0 +@dirrm lib/clang/3.1/include +@dirrm lib/clang/3.1 @dirrm lib/clang @dirrm include/clang/StaticAnalyzer/Frontend @dirrm include/clang/StaticAnalyzer/Core/PathSensitive @@ -403,6 +423,7 @@ lib/libclangStaticAnalyzerFrontend.a @dirrm include/clang/FrontendTool @dirrm include/clang/Frontend @dirrm include/clang/Driver +@dirrm include/clang/Config @dirrm include/clang/CodeGen @dirrm include/clang/Basic @dirrm include/clang/Analysis/Visitors |