diff --git a/lang/clang/Makefile b/lang/clang/Makefile index f5dab83fb..a6192a1d5 100644 --- a/lang/clang/Makefile +++ b/lang/clang/Makefile @@ -1,8 +1,130 @@ -# $NetBSD: Makefile,v 1.40 2015/05/28 13:25:59 adam Exp $ +# $NetBSD: Makefile,v 1.26 2014/02/27 17:35:35 adam Exp $ + +DISTNAME= clang-3.4 +PKGREVISION= 1 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_MINIX} +DISTFILES= llvm-${PKGVERSION_NOREV}.minix.src.tar.gz \ + libcxx-${PKGVERSION_NOREV}.minix.src.tar.gz \ + clang-${PKGVERSION_NOREV}.minix.src.tar.gz + +MAINTAINER= ben@minix3.org +HOMEPAGE= http://llvm.org/ +COMMENT= Low Level Virtual Machine compiler infrastructure +LICENSE= modified-bsd + +WRKSRC= ${WRKDIR}/llvm-${PKGVERSION_NOREV} + +USE_LANGUAGES= c c++ +USE_TOOLS+= chown gmake groff pod2html pod2man +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --disable-assertions +CONFIGURE_ARGS+= --disable-bindings # disable OCaml +CONFIGURE_ARGS+= --disable-timestamps +CONFIGURE_ARGS+= --enable-optimized +#CONFIGURE_ARGS+= --enable-shared + +MAKE_DIRS+= etc/llvm -MAKE_DIRS= etc/llvm INSTALLATION_DIRS= bin lib libexec -.include "../../lang/clang/options.mk" +CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm + +TEST_TARGET= check unittests + +.include "../../mk/bsd.prefs.mk" + +.if ${_OPSYS_SHLIB_TYPE} == "dylib" +PLIST_SUBST+= SOEXT="dylib" +.else +PLIST_SUBST+= SOEXT="so" +.endif + +.include "../../mk/compiler.mk" + +.if ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc) +# This should probably be in hacks, but since clang hardcodes gcc paths +# put this here so it can be removed when clang matures. +# cxa_finalize.o is no longer necessary with libc.so >= ILLUMOS_0.5 +TEST_ILLUMOS_3849!=\ + if /usr/bin/elfdump -v /lib/libc.so |\ + ${GREP} -q 'ILLUMOS_0.5' ; then \ + ${ECHO} 1; \ + else ${ECHO} 0; \ + fi + +#doesn't seem to be needed anymore, but may be dependent on +#a recent version of solaris (illumos) ld. +# +#CFLAGS.SunOS+= -mimpure-text + +SUBST_CLASSES+= fix-paths +SUBST_STAGE.fix-paths= pre-configure +SUBST_MESSAGE.fix-paths= Fixing absolute gcc paths for SunOS. +SUBST_FILES.fix-paths= tools/clang/lib/Driver/Tools.cpp +. if defined(_GCC_ARCHDIR) +SUBST_SED.fix-paths= -e 's,/usr/gcc/4.5/lib/gcc/,${_GCC_ARCHDIR}/,g' +. else +LIBGCCDIR!= ${CC} -print-libgcc-file-name +ARCHDIR:= ${LIBGCCDIR:H} +SUBST_SED.fix-paths= -e 's,/usr/gcc/4.5/lib/gcc/,${ARCHDIR}/,g' +. endif +SUBST_SED.fix-paths+= -e '/^.*i386.*getVendorName.*$$/{d;}' +SUBST_SED.fix-paths+= -e '/^.*GCCLibPath +=$$/d' +SUBST_SED.fix-paths+= -e 's,/4.5.2/amd64/,amd64/,g' +SUBST_SED.fix-paths+= -e 's,"as","gas",g' +. if exists(/usr/bin/ld) +SUBST_SED.fix-paths+= -e 's,getToolChain().GetProgramPath("ld"),"/usr/bin/ld",g' +. else +SUBST_SED.fix-paths+= -e 's,getToolChain().GetProgramPath("ld"),"/usr/ccs/bin/ld",g' +. endif +. if ${TEST_ILLUMOS_3849} +SUBST_SED.fix-paths+= -e 's,^.*cxa_finalize.*$$, ; //cxa_finalize.o,g' +. endif +.endif + +post-extract: + mv ${WRKDIR}/libcxx-${PKGVERSION_NOREV} ${WRKSRC}/projects/libcxx + mv ${WRKDIR}/clang-${PKGVERSION_NOREV} ${WRKSRC}/tools/clang +.if ${OPSYS} == "SunOS" + ${ECHO} "int sun_ld_needs_a_symbol=0;" >> ${WRKSRC}/lib/Target/NVPTX/InstPrinter/NVPTXInstPrinter.cpp +.endif + +.if ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix" +. if ${PKGSRC_COMPILER} == "clang" +# Can't build libc++ with GCC45 +# Seems it is not installed, so for now just skip it, and go with the defaults. +#CONFIGURE_ARGS+= --enable-libcpp +. endif +CONFIGURE_ARGS+= --disable-threads +CONFIGURE_ARGS+= --with-binutils-include=${LOCALBASE}/include/ +CONFIGURE_ENV+= ac_cv_func_getrusage=no ac_cv_func_setrlimit=no + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/* ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \ + ${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \ + ${WRKSRC}/tools/clang/tools/scan-build/scan-build \ + ${WRKSRC}/tools/clang/tools/scan-view/scan-view \ + ${DESTDIR}${PREFIX}/bin + ${MKDIR} ${DESTDIR}${PYSITELIB} + ${MKDIR} ${DESTDIR}${PYSITELIB}/Resources + ${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/*.py \ + ${DESTDIR}${PYSITELIB} + ${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/Resources/* \ + ${DESTDIR}${PYSITELIB}/Resources + ${MKDIR} ${DESTDIR}${PREFIX}/share + ${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/scanview.css ${DESTDIR}${PREFIX}/share + ${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js ${DESTDIR}${PREFIX}/share + +. if ${PKGSRC_COMPILER} == "gcc" +# When the package is compiled using GCC we depend on libstdc++ +# Requires changes in the package to symlink libstdc++.so* in /usr/pkg/lib +#.include "../../lang/gcc45/buildlink3.mk" +. endif +.include "../../devel/binutils/buildlink3.mk" +.endif # ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix" + +.include "../../lang/python/tool.mk" .include "../../textproc/libxml2/buildlink3.mk" -.include "../../lang/clang/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/clang/Makefile.common b/lang/clang/Makefile.common deleted file mode 100644 index d87e6b320..000000000 --- a/lang/clang/Makefile.common +++ /dev/null @@ -1,106 +0,0 @@ -# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $ -# -# used by lang/clang/Makefile -# used by lang/libLLVM/Makefile - -DISTNAME= clang-3.6.2 -CATEGORIES= lang -MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ -DISTFILES= llvm-${PKGVERSION_NOREV}.src.tar.xz \ - libcxx-${PKGVERSION_NOREV}.src.tar.xz \ - cfe-${PKGVERSION_NOREV}.src.tar.xz \ - compiler-rt-${PKGVERSION_NOREV}.src.tar.xz - -MAINTAINER= adam.hoka@gmail.com -HOMEPAGE= http://llvm.org/ -COMMENT= Low Level Virtual Machine compiler infrastructure -LICENSE= modified-bsd - -WRKSRC= ${WRKDIR}/llvm-${PKGVERSION_NOREV}.src - -USE_LANGUAGES= c c++ -USE_TOOLS+= chown gmake groff gzip pod2html pod2man -GCC_REQD+= 4.7 4.8 -GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --disable-assertions -CONFIGURE_ARGS+= --disable-bindings # disable OCaml -CONFIGURE_ARGS+= --disable-timestamps -CONFIGURE_ARGS+= --enable-optimized - -CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm - -TEST_TARGET= check unittests - -DISTINFO_FILE= ${.CURDIR}/../../lang/clang/distinfo -PATCHDIR= ${.CURDIR}/../../lang/clang/patches - -.include "../../mk/bsd.prefs.mk" - -.if ${_OPSYS_SHLIB_TYPE} == "dylib" -PLIST_SUBST+= SOEXT="dylib" -.else -PLIST_SUBST+= SOEXT="so" -.endif - -.include "../../mk/compiler.mk" - -.if ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc) -# This should probably be in hacks, but since clang hardcodes gcc paths -# put this here so it can be removed when clang matures. -# cxa_finalize.o is no longer necessary with libc.so >= ILLUMOS_0.5 -TEST_ILLUMOS_3849!=\ - if /usr/bin/elfdump -v /lib/libc.so | \ - ${GREP} -q 'ILLUMOS_0.5' ; then ${ECHO} 1; \ - else ${ECHO} 0; \ - fi - -#doesn't seem to be needed anymore, but may be dependent on -#a recent version of solaris (illumos) ld. -# -#CFLAGS.SunOS+= -mimpure-text - -SUBST_CLASSES+= fix-paths -SUBST_STAGE.fix-paths= pre-configure -SUBST_MESSAGE.fix-paths= Fixing absolute gcc paths for SunOS. -SUBST_FILES.fix-paths= tools/clang/lib/Driver/Tools.cpp -. if defined(_GCC_ARCHDIR) -SUBST_SED.fix-paths= -e 's,/usr/gcc/4.5/lib/gcc/,${_GCC_ARCHDIR}/,g' -. else -LIBGCCDIR!= ${CC} -print-libgcc-file-name -ARCHDIR:= ${LIBGCCDIR:H} -SUBST_SED.fix-paths= -e 's,/usr/gcc/4.5/lib/gcc/,${ARCHDIR}/,g' -. endif -SUBST_SED.fix-paths+= -e '/^.*i386.*getVendorName.*$$/{d;}' -SUBST_SED.fix-paths+= -e '/^.*GCCLibPath +=$$/d' -SUBST_SED.fix-paths+= -e 's,/4.5.2/amd64/,amd64/,g' -SUBST_SED.fix-paths+= -e 's,"as","gas",g' -. if exists(/usr/bin/ld) -SUBST_SED.fix-paths+= -e 's,getToolChain().GetProgramPath("ld"),"/usr/bin/ld",g' -. else -SUBST_SED.fix-paths+= -e 's,getToolChain().GetProgramPath("ld"),"/usr/ccs/bin/ld",g' -. endif -. if ${TEST_ILLUMOS_3849} -SUBST_SED.fix-paths+= -e 's,^.*cxa_finalize.*$$, ; //cxa_finalize.o,g' -. endif -.endif - -# patch NetBSD::GetCXXStdlibType -.if ${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mgcc) -SUBST_CLASSES+= libcxx -SUBST_STAGE.libcxx= pre-configure -SUBST_MESSAGE.libcxx= Patching toolchain to use libstdc++ as we're using GCC -SUBST_FILES.libcxx= tools/clang/lib/Driver/ToolChains.cpp -SUBST_SED.libcxx= -e 's,Major >= 7 || (Major == 6 && Minor == 99 && Micro >= 49) || Major == 0,false,' -.endif - -post-extract: - mv ${WRKDIR}/libcxx-${PKGVERSION_NOREV}.src ${WRKSRC}/projects/libcxx - mv ${WRKDIR}/compiler-rt-${PKGVERSION_NOREV}.src ${WRKSRC}/projects/compiler-rt - mv ${WRKDIR}/cfe-${PKGVERSION_NOREV}.src ${WRKSRC}/tools/clang -.if ${OPSYS} == "SunOS" - ${ECHO} "int sun_ld_needs_a_symbol=0;" >> ${WRKSRC}/lib/Target/NVPTX/InstPrinter/NVPTXInstPrinter.cpp -.endif - -.include "../../devel/zlib/buildlink3.mk" -.include "../../lang/python/tool.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/lang/clang/PLIST b/lang/clang/PLIST index 485bfe3ce..a8d0638a5 100644 --- a/lang/clang/PLIST +++ b/lang/clang/PLIST @@ -1,13 +1,13 @@ -@comment $NetBSD: PLIST,v 1.16 2015/03/04 13:57:42 tnn Exp $ -bin/FileCheck +@comment $NetBSD: PLIST,v 1.12 2014/02/27 17:35:35 adam Exp $ bin/bugpoint +bin/c++-analyzer bin/c-index-test +bin/ccc-analyzer bin/clang bin/clang++ bin/clang-check bin/clang-format bin/clang-tblgen -bin/count bin/llc bin/lli bin/lli-child-target @@ -18,7 +18,6 @@ bin/llvm-config bin/llvm-cov bin/llvm-diff bin/llvm-dis -bin/llvm-dsymutil bin/llvm-dwarfdump bin/llvm-extract bin/llvm-link @@ -26,7 +25,6 @@ bin/llvm-mc bin/llvm-mcmarkup bin/llvm-nm bin/llvm-objdump -bin/llvm-profdata bin/llvm-ranlib bin/llvm-readobj bin/llvm-rtdyld @@ -34,13 +32,9 @@ bin/llvm-size bin/llvm-stress bin/llvm-symbolizer bin/llvm-tblgen -bin/llvm-vtabledump bin/macho-dump -bin/not -bin/obj2yaml bin/opt -bin/verify-uselistorder -bin/yaml2obj +include/c++/v1/CMakeLists.txt include/c++/v1/__bit_reference include/c++/v1/__config include/c++/v1/__debug @@ -50,7 +44,6 @@ include/c++/v1/__functional_base_03 include/c++/v1/__hash_table include/c++/v1/__locale include/c++/v1/__mutex_base -include/c++/v1/__refstring include/c++/v1/__split_buffer include/c++/v1/__sso_allocator include/c++/v1/__std_stream @@ -93,12 +86,8 @@ include/c++/v1/cwchar include/c++/v1/cwctype include/c++/v1/deque include/c++/v1/exception -include/c++/v1/experimental/__config include/c++/v1/experimental/dynarray include/c++/v1/experimental/optional -include/c++/v1/experimental/string_view -include/c++/v1/experimental/type_traits -include/c++/v1/experimental/utility include/c++/v1/ext/__hash include/c++/v1/ext/hash_map include/c++/v1/ext/hash_set @@ -118,7 +107,6 @@ include/c++/v1/list include/c++/v1/locale include/c++/v1/map include/c++/v1/memory -include/c++/v1/module.modulemap include/c++/v1/mutex include/c++/v1/new include/c++/v1/numeric @@ -148,14 +136,24 @@ include/c++/v1/unordered_set include/c++/v1/utility include/c++/v1/valarray include/c++/v1/vector -include/clang-c/BuildSystem.h +bin/scan-build +bin/scan-build.1 +bin/scan-build.bat +bin/scan-view +bin/scanview.css +bin/set-xcode-analyzer +bin/sorttable.js +docs/llvm/html.tar.gz +docs/llvm/html/Dummy.html +docs/llvm/html/LibASTMatchersReference.html +docs/llvm/html/clang/clang.html +docs/llvm/html/clang/manpage.css +docs/llvm/html/doxygen.css +docs/llvm/ps/clang.ps include/clang-c/CXCompilationDatabase.h -include/clang-c/CXErrorCode.h include/clang-c/CXString.h -include/clang-c/Documentation.h include/clang-c/Index.h include/clang-c/Platform.h -include/clang-c/module.modulemap include/clang/ARCMigrate/ARCMT.h include/clang/ARCMigrate/ARCMTActions.h include/clang/ARCMigrate/FileRemapper.h @@ -175,7 +173,6 @@ include/clang/AST/Attr.h include/clang/AST/AttrDump.inc include/clang/AST/AttrImpl.inc include/clang/AST/AttrIterator.h -include/clang/AST/AttrVisitor.inc include/clang/AST/Attrs.inc include/clang/AST/BaseSubobject.h include/clang/AST/BuiltinTypes.def @@ -196,7 +193,6 @@ include/clang/AST/CommentNodes.inc include/clang/AST/CommentParser.h include/clang/AST/CommentSema.h include/clang/AST/CommentVisitor.h -include/clang/AST/DataRecursiveASTVisitor.h include/clang/AST/Decl.h include/clang/AST/DeclAccessPair.h include/clang/AST/DeclBase.h @@ -218,12 +214,10 @@ include/clang/AST/ExprCXX.h include/clang/AST/ExprObjC.h include/clang/AST/ExternalASTSource.h include/clang/AST/GlobalDecl.h -include/clang/AST/LambdaCapture.h include/clang/AST/Mangle.h include/clang/AST/MangleNumberingContext.h include/clang/AST/NSAPI.h include/clang/AST/NestedNameSpecifier.h -include/clang/AST/OpenMPClause.h include/clang/AST/OperationKinds.h include/clang/AST/ParentMap.h include/clang/AST/PrettyPrinter.h @@ -269,42 +263,31 @@ include/clang/Analysis/Analyses/PostOrderCFGView.h include/clang/Analysis/Analyses/PseudoConstantAnalysis.h include/clang/Analysis/Analyses/ReachableCode.h include/clang/Analysis/Analyses/ThreadSafety.h -include/clang/Analysis/Analyses/ThreadSafetyCommon.h -include/clang/Analysis/Analyses/ThreadSafetyLogical.h -include/clang/Analysis/Analyses/ThreadSafetyOps.def -include/clang/Analysis/Analyses/ThreadSafetyTIL.h -include/clang/Analysis/Analyses/ThreadSafetyTraverse.h -include/clang/Analysis/Analyses/ThreadSafetyUtil.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/CallGraph.h -include/clang/Analysis/CodeInjector.h include/clang/Analysis/DomainSpecific/CocoaConventions.h include/clang/Analysis/DomainSpecific/ObjCNoReturn.h +include/clang/Analysis/FlowSensitive/DataflowSolver.h include/clang/Analysis/FlowSensitive/DataflowValues.h include/clang/Analysis/ProgramPoint.h include/clang/Analysis/Support/BumpVector.h include/clang/Basic/ABI.h include/clang/Basic/AddressSpaces.h include/clang/Basic/AllDiagnostics.h -include/clang/Basic/AttrHasAttributeImpl.inc include/clang/Basic/AttrKinds.h include/clang/Basic/AttrList.inc -include/clang/Basic/Attributes.h include/clang/Basic/Builtins.def include/clang/Basic/Builtins.h include/clang/Basic/BuiltinsAArch64.def include/clang/Basic/BuiltinsARM.def include/clang/Basic/BuiltinsHexagon.def -include/clang/Basic/BuiltinsLe64.def include/clang/Basic/BuiltinsMips.def -include/clang/Basic/BuiltinsNEON.def include/clang/Basic/BuiltinsNVPTX.def include/clang/Basic/BuiltinsPPC.def -include/clang/Basic/BuiltinsR600.def include/clang/Basic/BuiltinsX86.def include/clang/Basic/BuiltinsXCore.def include/clang/Basic/CapturedStmt.h @@ -341,6 +324,8 @@ include/clang/Basic/Linkage.h include/clang/Basic/MacroBuilder.h include/clang/Basic/Module.h include/clang/Basic/ObjCRuntime.h +include/clang/Basic/OnDiskHashTable.h +include/clang/Basic/OpenCL.h include/clang/Basic/OpenCLExtensions.def include/clang/Basic/OpenMPKinds.def include/clang/Basic/OpenMPKinds.h @@ -348,11 +333,8 @@ include/clang/Basic/OperatorKinds.def include/clang/Basic/OperatorKinds.h include/clang/Basic/OperatorPrecedence.h include/clang/Basic/PartialDiagnostic.h -include/clang/Basic/PlistSupport.h include/clang/Basic/PrettyStackTrace.h -include/clang/Basic/SanitizerBlacklist.h include/clang/Basic/Sanitizers.def -include/clang/Basic/Sanitizers.h include/clang/Basic/SourceLocation.h include/clang/Basic/SourceManager.h include/clang/Basic/SourceManagerInternals.h @@ -368,7 +350,6 @@ include/clang/Basic/TypeTraits.h include/clang/Basic/Version.h include/clang/Basic/Version.inc include/clang/Basic/VersionTuple.h -include/clang/Basic/VirtualFileSystem.h include/clang/Basic/Visibility.h include/clang/Basic/arm_neon.inc include/clang/CodeGen/BackendUtil.h @@ -378,11 +359,13 @@ include/clang/CodeGen/CodeGenAction.h include/clang/CodeGen/ModuleBuilder.h include/clang/Config/config.h include/clang/Driver/Action.h +include/clang/Driver/CC1AsOptions.h +include/clang/Driver/CC1AsOptions.inc +include/clang/Driver/CC1Options.h include/clang/Driver/Compilation.h include/clang/Driver/Driver.h include/clang/Driver/DriverDiagnostic.h include/clang/Driver/Job.h -include/clang/Driver/Multilib.h include/clang/Driver/Options.h include/clang/Driver/Options.inc include/clang/Driver/Phases.h @@ -401,6 +384,7 @@ include/clang/Format/Format.h include/clang/Frontend/ASTConsumers.h include/clang/Frontend/ASTUnit.h include/clang/Frontend/ChainedDiagnosticConsumer.h +include/clang/Frontend/ChainedIncludesSource.h include/clang/Frontend/CodeGenOptions.def include/clang/Frontend/CodeGenOptions.h include/clang/Frontend/CommandLineSourceLoc.h @@ -421,8 +405,6 @@ include/clang/Frontend/MigratorOptions.h include/clang/Frontend/MultiplexConsumer.h include/clang/Frontend/PreprocessorOutputOptions.h include/clang/Frontend/SerializedDiagnosticPrinter.h -include/clang/Frontend/SerializedDiagnosticReader.h -include/clang/Frontend/SerializedDiagnostics.h include/clang/Frontend/TextDiagnostic.h include/clang/Frontend/TextDiagnosticBuffer.h include/clang/Frontend/TextDiagnosticPrinter.h @@ -431,6 +413,7 @@ include/clang/Frontend/VerifyDiagnosticConsumer.h include/clang/FrontendTool/Utils.h include/clang/Index/CommentToXML.h include/clang/Index/USRGeneration.h +include/clang/Lex/AttrSpellings.inc include/clang/Lex/CodeCompletionHandler.h include/clang/Lex/DirectoryLookup.h include/clang/Lex/ExternalPreprocessorSource.h @@ -458,7 +441,9 @@ include/clang/Lex/ScratchBuffer.h include/clang/Lex/Token.h include/clang/Lex/TokenConcatenation.h include/clang/Lex/TokenLexer.h -include/clang/Parse/AttrParserStringSwitches.inc +include/clang/Parse/AttrIdentifierArg.inc +include/clang/Parse/AttrLateParsed.inc +include/clang/Parse/AttrTypeArg.inc include/clang/Parse/ParseAST.h include/clang/Parse/ParseDiagnostic.h include/clang/Parse/Parser.h @@ -489,7 +474,6 @@ include/clang/Sema/IdentifierResolver.h include/clang/Sema/Initialization.h include/clang/Sema/LocInfoType.h include/clang/Sema/Lookup.h -include/clang/Sema/LoopHint.h include/clang/Sema/MultiplexExternalSemaSource.h include/clang/Sema/ObjCMethodList.h include/clang/Sema/Overload.h @@ -562,15 +546,12 @@ 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/AnalysisConsumer.h include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h include/clang/StaticAnalyzer/Frontend/FrontendActions.h -include/clang/StaticAnalyzer/Frontend/ModelConsumer.h include/clang/Tooling/ArgumentsAdjusters.h include/clang/Tooling/CommonOptionsParser.h include/clang/Tooling/CompilationDatabase.h include/clang/Tooling/CompilationDatabasePluginRegistry.h -include/clang/Tooling/Core/Replacement.h include/clang/Tooling/FileMatchTrie.h include/clang/Tooling/JSONCompilationDatabase.h include/clang/Tooling/Refactoring.h @@ -611,6 +592,7 @@ include/llvm/ADT/EquivalenceClasses.h include/llvm/ADT/FoldingSet.h include/llvm/ADT/GraphTraits.h include/llvm/ADT/Hashing.h +include/llvm/ADT/ImmutableIntervalMap.h include/llvm/ADT/ImmutableList.h include/llvm/ADT/ImmutableMap.h include/llvm/ADT/ImmutableSet.h @@ -621,6 +603,7 @@ include/llvm/ADT/IntrusiveRefCntPtr.h include/llvm/ADT/MapVector.h include/llvm/ADT/None.h include/llvm/ADT/Optional.h +include/llvm/ADT/OwningPtr.h include/llvm/ADT/PackedVector.h include/llvm/ADT/PointerIntPair.h include/llvm/ADT/PointerUnion.h @@ -649,21 +632,19 @@ include/llvm/ADT/TinyPtrVector.h include/llvm/ADT/Triple.h include/llvm/ADT/Twine.h include/llvm/ADT/UniqueVector.h +include/llvm/ADT/ValueMap.h include/llvm/ADT/VariadicFunction.h include/llvm/ADT/edit_distance.h include/llvm/ADT/ilist.h include/llvm/ADT/ilist_node.h -include/llvm/ADT/iterator.h -include/llvm/ADT/iterator_range.h +include/llvm/ADT/polymorphic_ptr.h include/llvm/Analysis/AliasAnalysis.h include/llvm/Analysis/AliasSetTracker.h -include/llvm/Analysis/AssumptionCache.h +include/llvm/Analysis/BlockFrequencyImpl.h include/llvm/Analysis/BlockFrequencyInfo.h -include/llvm/Analysis/BlockFrequencyInfoImpl.h include/llvm/Analysis/BranchProbabilityInfo.h include/llvm/Analysis/CFG.h include/llvm/Analysis/CFGPrinter.h -include/llvm/Analysis/CGSCCPassManager.h include/llvm/Analysis/CallGraph.h include/llvm/Analysis/CallGraphSCCPass.h include/llvm/Analysis/CallPrinter.h @@ -675,16 +656,15 @@ include/llvm/Analysis/DOTGraphTraitsPass.h include/llvm/Analysis/DependenceAnalysis.h include/llvm/Analysis/DomPrinter.h include/llvm/Analysis/DominanceFrontier.h -include/llvm/Analysis/DominanceFrontierImpl.h -include/llvm/Analysis/FunctionTargetTransformInfo.h +include/llvm/Analysis/DominatorInternals.h +include/llvm/Analysis/Dominators.h +include/llvm/Analysis/FindUsedTypes.h include/llvm/Analysis/IVUsers.h include/llvm/Analysis/InlineCost.h include/llvm/Analysis/InstructionSimplify.h include/llvm/Analysis/Interval.h include/llvm/Analysis/IntervalIterator.h include/llvm/Analysis/IntervalPartition.h -include/llvm/Analysis/JumpInstrTableInfo.h -include/llvm/Analysis/LazyCallGraph.h include/llvm/Analysis/LazyValueInfo.h include/llvm/Analysis/LibCallAliasAnalysis.h include/llvm/Analysis/LibCallSemantics.h @@ -701,7 +681,6 @@ include/llvm/Analysis/Passes.h include/llvm/Analysis/PostDominators.h include/llvm/Analysis/PtrUseVisitor.h include/llvm/Analysis/RegionInfo.h -include/llvm/Analysis/RegionInfoImpl.h include/llvm/Analysis/RegionIterator.h include/llvm/Analysis/RegionPass.h include/llvm/Analysis/RegionPrinter.h @@ -710,13 +689,16 @@ include/llvm/Analysis/ScalarEvolutionExpander.h include/llvm/Analysis/ScalarEvolutionExpressions.h include/llvm/Analysis/ScalarEvolutionNormalization.h include/llvm/Analysis/SparsePropagation.h -include/llvm/Analysis/TargetFolder.h include/llvm/Analysis/TargetTransformInfo.h include/llvm/Analysis/Trace.h include/llvm/Analysis/ValueTracking.h -include/llvm/AsmParser/Parser.h +include/llvm/Analysis/Verifier.h +include/llvm/Assembly/AssemblyAnnotationWriter.h +include/llvm/Assembly/Parser.h +include/llvm/Assembly/PrintModulePass.h +include/llvm/Assembly/Writer.h +include/llvm/AutoUpgrade.h include/llvm/Bitcode/BitCodes.h -include/llvm/Bitcode/BitcodeWriterPass.h include/llvm/Bitcode/BitstreamReader.h include/llvm/Bitcode/BitstreamWriter.h include/llvm/Bitcode/LLVMBitCodes.h @@ -728,10 +710,8 @@ include/llvm/CodeGen/CallingConvLower.h include/llvm/CodeGen/CommandFlags.h include/llvm/CodeGen/DAGCombine.h include/llvm/CodeGen/DFAPacketizer.h -include/llvm/CodeGen/DIE.h include/llvm/CodeGen/EdgeBundles.h include/llvm/CodeGen/FastISel.h -include/llvm/CodeGen/ForwardControlFlowIntegrity.h include/llvm/CodeGen/FunctionLoweringInfo.h include/llvm/CodeGen/GCMetadata.h include/llvm/CodeGen/GCMetadataPrinter.h @@ -739,7 +719,7 @@ include/llvm/CodeGen/GCStrategy.h include/llvm/CodeGen/GCs.h include/llvm/CodeGen/ISDOpcodes.h include/llvm/CodeGen/IntrinsicLowering.h -include/llvm/CodeGen/JumpInstrTables.h +include/llvm/CodeGen/JITCodeEmitter.h include/llvm/CodeGen/LatencyPriorityQueue.h include/llvm/CodeGen/LexicalScopes.h include/llvm/CodeGen/LinkAllAsmWriterComponents.h @@ -747,18 +727,18 @@ include/llvm/CodeGen/LinkAllCodegenComponents.h include/llvm/CodeGen/LiveInterval.h include/llvm/CodeGen/LiveIntervalAnalysis.h include/llvm/CodeGen/LiveIntervalUnion.h -include/llvm/CodeGen/LivePhysRegs.h include/llvm/CodeGen/LiveRangeEdit.h include/llvm/CodeGen/LiveRegMatrix.h +include/llvm/CodeGen/LiveRegUnits.h include/llvm/CodeGen/LiveStackAnalysis.h include/llvm/CodeGen/LiveVariables.h include/llvm/CodeGen/MachORelocation.h include/llvm/CodeGen/MachineBasicBlock.h include/llvm/CodeGen/MachineBlockFrequencyInfo.h include/llvm/CodeGen/MachineBranchProbabilityInfo.h -include/llvm/CodeGen/MachineCombinerPattern.h +include/llvm/CodeGen/MachineCodeEmitter.h +include/llvm/CodeGen/MachineCodeInfo.h include/llvm/CodeGen/MachineConstantPool.h -include/llvm/CodeGen/MachineDominanceFrontier.h include/llvm/CodeGen/MachineDominators.h include/llvm/CodeGen/MachineFrameInfo.h include/llvm/CodeGen/MachineFunction.h @@ -775,18 +755,17 @@ include/llvm/CodeGen/MachineModuleInfoImpls.h include/llvm/CodeGen/MachineOperand.h include/llvm/CodeGen/MachinePassRegistry.h include/llvm/CodeGen/MachinePostDominators.h -include/llvm/CodeGen/MachineRegionInfo.h include/llvm/CodeGen/MachineRegisterInfo.h +include/llvm/CodeGen/MachineRelocation.h include/llvm/CodeGen/MachineSSAUpdater.h include/llvm/CodeGen/MachineScheduler.h include/llvm/CodeGen/MachineTraceMetrics.h -include/llvm/CodeGen/MachineValueType.h -include/llvm/CodeGen/PBQP/CostAllocator.h include/llvm/CodeGen/PBQP/Graph.h +include/llvm/CodeGen/PBQP/HeuristicBase.h +include/llvm/CodeGen/PBQP/HeuristicSolver.h +include/llvm/CodeGen/PBQP/Heuristics/Briggs.h include/llvm/CodeGen/PBQP/Math.h -include/llvm/CodeGen/PBQP/ReductionRules.h include/llvm/CodeGen/PBQP/Solution.h -include/llvm/CodeGen/PBQPRAConstraint.h include/llvm/CodeGen/Passes.h include/llvm/CodeGen/PseudoSourceValue.h include/llvm/CodeGen/RegAllocPBQP.h @@ -806,7 +785,6 @@ include/llvm/CodeGen/SelectionDAG.h include/llvm/CodeGen/SelectionDAGISel.h include/llvm/CodeGen/SelectionDAGNodes.h include/llvm/CodeGen/SlotIndexes.h -include/llvm/CodeGen/StackMapLivenessAnalysis.h include/llvm/CodeGen/StackMaps.h include/llvm/CodeGen/StackProtector.h include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -820,68 +798,39 @@ include/llvm/Config/Disassemblers.def include/llvm/Config/Targets.def include/llvm/Config/config.h include/llvm/Config/llvm-config.h +include/llvm/DIBuilder.h +include/llvm/DebugInfo.h include/llvm/DebugInfo/DIContext.h -include/llvm/DebugInfo/DWARFAbbreviationDeclaration.h -include/llvm/DebugInfo/DWARFAcceleratorTable.h -include/llvm/DebugInfo/DWARFCompileUnit.h -include/llvm/DebugInfo/DWARFContext.h -include/llvm/DebugInfo/DWARFDebugAbbrev.h -include/llvm/DebugInfo/DWARFDebugArangeSet.h -include/llvm/DebugInfo/DWARFDebugAranges.h -include/llvm/DebugInfo/DWARFDebugFrame.h -include/llvm/DebugInfo/DWARFDebugInfoEntry.h -include/llvm/DebugInfo/DWARFDebugLine.h -include/llvm/DebugInfo/DWARFDebugLoc.h -include/llvm/DebugInfo/DWARFDebugRangeList.h include/llvm/DebugInfo/DWARFFormValue.h -include/llvm/DebugInfo/DWARFRelocMap.h -include/llvm/DebugInfo/DWARFSection.h -include/llvm/DebugInfo/DWARFTypeUnit.h -include/llvm/DebugInfo/DWARFUnit.h include/llvm/ExecutionEngine/ExecutionEngine.h include/llvm/ExecutionEngine/GenericValue.h include/llvm/ExecutionEngine/Interpreter.h +include/llvm/ExecutionEngine/JIT.h include/llvm/ExecutionEngine/JITEventListener.h +include/llvm/ExecutionEngine/JITMemoryManager.h include/llvm/ExecutionEngine/MCJIT.h include/llvm/ExecutionEngine/OProfileWrapper.h +include/llvm/ExecutionEngine/ObjectBuffer.h include/llvm/ExecutionEngine/ObjectCache.h +include/llvm/ExecutionEngine/ObjectImage.h include/llvm/ExecutionEngine/RTDyldMemoryManager.h include/llvm/ExecutionEngine/RuntimeDyld.h -include/llvm/ExecutionEngine/RuntimeDyldChecker.h include/llvm/ExecutionEngine/SectionMemoryManager.h +include/llvm/GVMaterializer.h include/llvm/IR/Argument.h -include/llvm/IR/AssemblyAnnotationWriter.h include/llvm/IR/Attributes.h -include/llvm/IR/AutoUpgrade.h include/llvm/IR/BasicBlock.h -include/llvm/IR/CFG.h -include/llvm/IR/CallSite.h include/llvm/IR/CallingConv.h -include/llvm/IR/Comdat.h include/llvm/IR/Constant.h -include/llvm/IR/ConstantFolder.h -include/llvm/IR/ConstantRange.h include/llvm/IR/Constants.h -include/llvm/IR/DIBuilder.h include/llvm/IR/DataLayout.h -include/llvm/IR/DebugInfo.h -include/llvm/IR/DebugLoc.h include/llvm/IR/DerivedTypes.h -include/llvm/IR/DiagnosticInfo.h -include/llvm/IR/DiagnosticPrinter.h -include/llvm/IR/Dominators.h include/llvm/IR/Function.h -include/llvm/IR/GVMaterializer.h -include/llvm/IR/GetElementPtrTypeIterator.h include/llvm/IR/GlobalAlias.h -include/llvm/IR/GlobalObject.h include/llvm/IR/GlobalValue.h include/llvm/IR/GlobalVariable.h include/llvm/IR/IRBuilder.h -include/llvm/IR/IRPrintingPasses.h include/llvm/IR/InlineAsm.h -include/llvm/IR/InstIterator.h -include/llvm/IR/InstVisitor.h include/llvm/IR/InstrTypes.h include/llvm/IR/Instruction.def include/llvm/IR/Instruction.h @@ -902,43 +851,28 @@ include/llvm/IR/IntrinsicsXCore.td include/llvm/IR/LLVMContext.h include/llvm/IR/LegacyPassManager.h include/llvm/IR/LegacyPassManagers.h -include/llvm/IR/LegacyPassNameParser.h include/llvm/IR/MDBuilder.h -include/llvm/IR/Mangler.h -include/llvm/IR/Metadata.def include/llvm/IR/Metadata.h -include/llvm/IR/MetadataTracking.h include/llvm/IR/Module.h -include/llvm/IR/NoFolder.h include/llvm/IR/OperandTraits.h include/llvm/IR/Operator.h include/llvm/IR/PassManager.h -include/llvm/IR/PassManagerInternal.h -include/llvm/IR/PatternMatch.h -include/llvm/IR/PredIteratorCache.h -include/llvm/IR/Statepoint.h include/llvm/IR/SymbolTableListTraits.h -include/llvm/IR/TrackingMDRef.h include/llvm/IR/Type.h include/llvm/IR/TypeBuilder.h include/llvm/IR/TypeFinder.h include/llvm/IR/Use.h -include/llvm/IR/UseListOrder.h include/llvm/IR/User.h include/llvm/IR/Value.h -include/llvm/IR/ValueHandle.h -include/llvm/IR/ValueMap.h include/llvm/IR/ValueSymbolTable.h -include/llvm/IR/Verifier.h include/llvm/IRReader/IRReader.h include/llvm/InitializePasses.h +include/llvm/InstVisitor.h include/llvm/LTO/LTOCodeGenerator.h include/llvm/LTO/LTOModule.h -include/llvm/LineEditor/LineEditor.h include/llvm/LinkAllIR.h include/llvm/LinkAllPasses.h -include/llvm/Linker/Linker.h -include/llvm/MC/ConstantPools.h +include/llvm/Linker.h include/llvm/MC/MCAsmBackend.h include/llvm/MC/MCAsmInfo.h include/llvm/MC/MCAsmInfoCOFF.h @@ -946,6 +880,7 @@ include/llvm/MC/MCAsmInfoDarwin.h include/llvm/MC/MCAsmInfoELF.h include/llvm/MC/MCAsmLayout.h include/llvm/MC/MCAssembler.h +include/llvm/MC/MCAtom.h include/llvm/MC/MCCodeEmitter.h include/llvm/MC/MCCodeGenInfo.h include/llvm/MC/MCContext.h @@ -961,6 +896,7 @@ include/llvm/MC/MCExternalSymbolizer.h include/llvm/MC/MCFixedLenDisassembler.h include/llvm/MC/MCFixup.h include/llvm/MC/MCFixupKindInfo.h +include/llvm/MC/MCFunction.h include/llvm/MC/MCInst.h include/llvm/MC/MCInstBuilder.h include/llvm/MC/MCInstPrinter.h @@ -969,11 +905,14 @@ include/llvm/MC/MCInstrDesc.h include/llvm/MC/MCInstrInfo.h include/llvm/MC/MCInstrItineraries.h include/llvm/MC/MCLabel.h -include/llvm/MC/MCLinkerOptimizationHint.h include/llvm/MC/MCMachOSymbolFlags.h include/llvm/MC/MCMachObjectWriter.h +include/llvm/MC/MCModule.h +include/llvm/MC/MCModuleYAML.h +include/llvm/MC/MCObjectDisassembler.h include/llvm/MC/MCObjectFileInfo.h include/llvm/MC/MCObjectStreamer.h +include/llvm/MC/MCObjectSymbolizer.h include/llvm/MC/MCObjectWriter.h include/llvm/MC/MCParser/AsmCond.h include/llvm/MC/MCParser/AsmLexer.h @@ -993,18 +932,12 @@ include/llvm/MC/MCSubtargetInfo.h include/llvm/MC/MCSymbol.h include/llvm/MC/MCSymbolizer.h include/llvm/MC/MCTargetAsmParser.h -include/llvm/MC/MCTargetOptions.h -include/llvm/MC/MCTargetOptionsCommandFlags.h include/llvm/MC/MCValue.h include/llvm/MC/MCWin64EH.h include/llvm/MC/MCWinCOFFObjectWriter.h -include/llvm/MC/MCWinCOFFStreamer.h -include/llvm/MC/MCWinEH.h include/llvm/MC/MachineLocation.h include/llvm/MC/SectionKind.h -include/llvm/MC/StringTableBuilder.h include/llvm/MC/SubtargetFeature.h -include/llvm/MC/YAML.h include/llvm/Object/Archive.h include/llvm/Object/Binary.h include/llvm/Object/COFF.h @@ -1014,12 +947,11 @@ include/llvm/Object/ELFObjectFile.h include/llvm/Object/ELFTypes.h include/llvm/Object/ELFYAML.h include/llvm/Object/Error.h -include/llvm/Object/IRObjectFile.h include/llvm/Object/MachO.h include/llvm/Object/MachOUniversal.h include/llvm/Object/ObjectFile.h include/llvm/Object/RelocVisitor.h -include/llvm/Object/SymbolicFile.h +include/llvm/Object/YAML.h include/llvm/Option/Arg.h include/llvm/Option/ArgList.h include/llvm/Option/OptParser.td @@ -1028,23 +960,10 @@ include/llvm/Option/OptTable.h include/llvm/Option/Option.h include/llvm/Pass.h include/llvm/PassAnalysisSupport.h -include/llvm/PassInfo.h include/llvm/PassManager.h include/llvm/PassRegistry.h include/llvm/PassSupport.h -include/llvm/ProfileData/CoverageMapping.h -include/llvm/ProfileData/CoverageMappingReader.h -include/llvm/ProfileData/CoverageMappingWriter.h -include/llvm/ProfileData/InstrProf.h -include/llvm/ProfileData/InstrProfReader.h -include/llvm/ProfileData/InstrProfWriter.h -include/llvm/ProfileData/SampleProf.h -include/llvm/ProfileData/SampleProfReader.h -include/llvm/ProfileData/SampleProfWriter.h include/llvm/Support/AIXDataTypesFix.h -include/llvm/Support/ARMBuildAttributes.h -include/llvm/Support/ARMEHABI.h -include/llvm/Support/ARMWinEH.h include/llvm/Support/AlignOf.h include/llvm/Support/Allocator.h include/llvm/Support/ArrayRecycler.h @@ -1052,52 +971,49 @@ include/llvm/Support/Atomic.h include/llvm/Support/BlockFrequency.h include/llvm/Support/BranchProbability.h include/llvm/Support/CBindingWrapping.h +include/llvm/Support/CFG.h include/llvm/Support/COFF.h +include/llvm/Support/CallSite.h include/llvm/Support/Capacity.h include/llvm/Support/Casting.h include/llvm/Support/CodeGen.h include/llvm/Support/CommandLine.h include/llvm/Support/Compiler.h include/llvm/Support/Compression.h +include/llvm/Support/ConstantFolder.h +include/llvm/Support/ConstantRange.h include/llvm/Support/ConvertUTF.h include/llvm/Support/CrashRecoveryContext.h include/llvm/Support/DOTGraphTraits.h include/llvm/Support/DataExtractor.h +include/llvm/Support/DataFlow.h include/llvm/Support/DataStream.h include/llvm/Support/DataTypes.h include/llvm/Support/Debug.h +include/llvm/Support/DebugLoc.h +include/llvm/Support/Disassembler.h include/llvm/Support/Dwarf.h include/llvm/Support/DynamicLibrary.h include/llvm/Support/ELF.h -include/llvm/Support/ELFRelocs/AArch64.def -include/llvm/Support/ELFRelocs/ARM.def -include/llvm/Support/ELFRelocs/Hexagon.def -include/llvm/Support/ELFRelocs/Mips.def -include/llvm/Support/ELFRelocs/PowerPC.def -include/llvm/Support/ELFRelocs/PowerPC64.def -include/llvm/Support/ELFRelocs/Sparc.def -include/llvm/Support/ELFRelocs/SystemZ.def -include/llvm/Support/ELFRelocs/i386.def -include/llvm/Support/ELFRelocs/x86_64.def include/llvm/Support/Endian.h -include/llvm/Support/EndianStream.h -include/llvm/Support/Errc.h include/llvm/Support/Errno.h include/llvm/Support/ErrorHandling.h include/llvm/Support/ErrorOr.h +include/llvm/Support/FEnv.h include/llvm/Support/FileOutputBuffer.h include/llvm/Support/FileSystem.h include/llvm/Support/FileUtilities.h include/llvm/Support/Format.h include/llvm/Support/FormattedStream.h include/llvm/Support/GCOV.h -include/llvm/Support/GenericDomTree.h -include/llvm/Support/GenericDomTreeConstruction.h +include/llvm/Support/GetElementPtrTypeIterator.h include/llvm/Support/GraphWriter.h include/llvm/Support/Host.h +include/llvm/Support/IncludeFile.h +include/llvm/Support/InstIterator.h include/llvm/Support/LEB128.h include/llvm/Support/LICENSE.TXT -include/llvm/Support/LineIterator.h +include/llvm/Support/LeakDetector.h include/llvm/Support/Locale.h include/llvm/Support/LockFileManager.h include/llvm/Support/MD5.h @@ -1109,17 +1025,18 @@ include/llvm/Support/MemoryBuffer.h include/llvm/Support/MemoryObject.h include/llvm/Support/Mutex.h include/llvm/Support/MutexGuard.h -include/llvm/Support/OnDiskHashTable.h -include/llvm/Support/Options.h +include/llvm/Support/NoFolder.h include/llvm/Support/OutputBuffer.h +include/llvm/Support/PassNameParser.h include/llvm/Support/Path.h +include/llvm/Support/PatternMatch.h include/llvm/Support/PluginLoader.h include/llvm/Support/PointerLikeTypeTraits.h +include/llvm/Support/PredIteratorCache.h include/llvm/Support/PrettyStackTrace.h include/llvm/Support/Process.h include/llvm/Support/Program.h include/llvm/Support/RWMutex.h -include/llvm/Support/RandomNumberGenerator.h include/llvm/Support/Recycler.h include/llvm/Support/RecyclingAllocator.h include/llvm/Support/Regex.h @@ -1127,15 +1044,15 @@ include/llvm/Support/Registry.h include/llvm/Support/RegistryParser.h include/llvm/Support/SMLoc.h include/llvm/Support/SaveAndRestore.h -include/llvm/Support/ScaledNumber.h include/llvm/Support/Signals.h include/llvm/Support/Solaris.h include/llvm/Support/SourceMgr.h -include/llvm/Support/SpecialCaseList.h -include/llvm/Support/StreamingMemoryObject.h +include/llvm/Support/StreamableMemoryObject.h include/llvm/Support/StringPool.h +include/llvm/Support/StringRefMemoryObject.h include/llvm/Support/SwapByteOrder.h include/llvm/Support/SystemUtils.h +include/llvm/Support/TargetFolder.h include/llvm/Support/TargetRegistry.h include/llvm/Support/TargetSelect.h include/llvm/Support/ThreadLocal.h @@ -1145,25 +1062,25 @@ include/llvm/Support/Timer.h include/llvm/Support/ToolOutputFile.h include/llvm/Support/Unicode.h include/llvm/Support/UnicodeCharRanges.h -include/llvm/Support/UniqueLock.h include/llvm/Support/Valgrind.h +include/llvm/Support/ValueHandle.h include/llvm/Support/Watchdog.h include/llvm/Support/Win64EH.h -include/llvm/Support/WindowsError.h include/llvm/Support/YAMLParser.h include/llvm/Support/YAMLTraits.h include/llvm/Support/circular_raw_ostream.h include/llvm/Support/raw_os_ostream.h include/llvm/Support/raw_ostream.h +include/llvm/Support/system_error.h include/llvm/Support/type_traits.h include/llvm/TableGen/Error.h include/llvm/TableGen/Main.h include/llvm/TableGen/Record.h -include/llvm/TableGen/SetTheory.h include/llvm/TableGen/StringMatcher.h include/llvm/TableGen/StringToOffsetTable.h include/llvm/TableGen/TableGenBackend.h include/llvm/Target/CostTable.h +include/llvm/Target/Mangler.h include/llvm/Target/Target.td include/llvm/Target/TargetCallingConv.h include/llvm/Target/TargetCallingConv.td @@ -1171,6 +1088,7 @@ include/llvm/Target/TargetFrameLowering.h include/llvm/Target/TargetInstrInfo.h include/llvm/Target/TargetIntrinsicInfo.h include/llvm/Target/TargetItinerary.td +include/llvm/Target/TargetJITInfo.h include/llvm/Target/TargetLibraryInfo.h include/llvm/Target/TargetLowering.h include/llvm/Target/TargetLoweringObjectFile.h @@ -1188,14 +1106,12 @@ include/llvm/Transforms/IPO/PassManagerBuilder.h include/llvm/Transforms/Instrumentation.h include/llvm/Transforms/ObjCARC.h include/llvm/Transforms/Scalar.h -include/llvm/Transforms/Utils/ASanStackFrameLayout.h include/llvm/Transforms/Utils/BasicBlockUtils.h include/llvm/Transforms/Utils/BuildLibCalls.h include/llvm/Transforms/Utils/BypassSlowDivision.h include/llvm/Transforms/Utils/Cloning.h include/llvm/Transforms/Utils/CmpInstAnalysis.h include/llvm/Transforms/Utils/CodeExtractor.h -include/llvm/Transforms/Utils/CtorUtils.h include/llvm/Transforms/Utils/GlobalStatus.h include/llvm/Transforms/Utils/IntegerDivision.h include/llvm/Transforms/Utils/Local.h @@ -1206,29 +1122,21 @@ include/llvm/Transforms/Utils/SSAUpdater.h include/llvm/Transforms/Utils/SSAUpdaterImpl.h include/llvm/Transforms/Utils/SimplifyIndVar.h include/llvm/Transforms/Utils/SimplifyLibCalls.h -include/llvm/Transforms/Utils/SymbolRewriter.h +include/llvm/Transforms/Utils/SpecialCaseList.h include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h include/llvm/Transforms/Utils/UnrollLoop.h include/llvm/Transforms/Utils/ValueMapper.h -include/llvm/Transforms/Utils/VectorUtils.h include/llvm/Transforms/Vectorize.h lib/BugpointPasses.${SOEXT} lib/LLVMHello.${SOEXT} +lib/LLVMgold.${SOEXT} lib/clang/${PKGVERSION}/include/Intrin.h -lib/clang/${PKGVERSION}/include/__stddef_max_align_t.h lib/clang/${PKGVERSION}/include/__wmmintrin_aes.h lib/clang/${PKGVERSION}/include/__wmmintrin_pclmul.h -lib/clang/${PKGVERSION}/include/adxintrin.h lib/clang/${PKGVERSION}/include/altivec.h lib/clang/${PKGVERSION}/include/ammintrin.h -lib/clang/${PKGVERSION}/include/arm_acle.h lib/clang/${PKGVERSION}/include/arm_neon.h lib/clang/${PKGVERSION}/include/avx2intrin.h -lib/clang/${PKGVERSION}/include/avx512bwintrin.h -lib/clang/${PKGVERSION}/include/avx512erintrin.h -lib/clang/${PKGVERSION}/include/avx512fintrin.h -lib/clang/${PKGVERSION}/include/avx512vlbwintrin.h -lib/clang/${PKGVERSION}/include/avx512vlintrin.h lib/clang/${PKGVERSION}/include/avxintrin.h lib/clang/${PKGVERSION}/include/bmi2intrin.h lib/clang/${PKGVERSION}/include/bmiintrin.h @@ -1238,7 +1146,6 @@ lib/clang/${PKGVERSION}/include/f16cintrin.h lib/clang/${PKGVERSION}/include/float.h lib/clang/${PKGVERSION}/include/fma4intrin.h lib/clang/${PKGVERSION}/include/fmaintrin.h -lib/clang/${PKGVERSION}/include/ia32intrin.h lib/clang/${PKGVERSION}/include/immintrin.h lib/clang/${PKGVERSION}/include/iso646.h lib/clang/${PKGVERSION}/include/limits.h @@ -1246,26 +1153,17 @@ lib/clang/${PKGVERSION}/include/lzcntintrin.h lib/clang/${PKGVERSION}/include/mm3dnow.h lib/clang/${PKGVERSION}/include/mm_malloc.h lib/clang/${PKGVERSION}/include/mmintrin.h -lib/clang/${PKGVERSION}/include/module.modulemap +lib/clang/${PKGVERSION}/include/module.map lib/clang/${PKGVERSION}/include/nmmintrin.h lib/clang/${PKGVERSION}/include/pmmintrin.h lib/clang/${PKGVERSION}/include/popcntintrin.h lib/clang/${PKGVERSION}/include/prfchwintrin.h lib/clang/${PKGVERSION}/include/rdseedintrin.h lib/clang/${PKGVERSION}/include/rtmintrin.h -lib/clang/${PKGVERSION}/include/sanitizer/allocator_interface.h -lib/clang/${PKGVERSION}/include/sanitizer/asan_interface.h -lib/clang/${PKGVERSION}/include/sanitizer/common_interface_defs.h -lib/clang/${PKGVERSION}/include/sanitizer/dfsan_interface.h -lib/clang/${PKGVERSION}/include/sanitizer/linux_syscall_hooks.h -lib/clang/${PKGVERSION}/include/sanitizer/lsan_interface.h -lib/clang/${PKGVERSION}/include/sanitizer/msan_interface.h -lib/clang/${PKGVERSION}/include/sanitizer/tsan_interface_atomic.h lib/clang/${PKGVERSION}/include/shaintrin.h lib/clang/${PKGVERSION}/include/smmintrin.h lib/clang/${PKGVERSION}/include/stdalign.h lib/clang/${PKGVERSION}/include/stdarg.h -lib/clang/${PKGVERSION}/include/stdatomic.h lib/clang/${PKGVERSION}/include/stdbool.h lib/clang/${PKGVERSION}/include/stddef.h lib/clang/${PKGVERSION}/include/stdint.h @@ -1274,7 +1172,6 @@ lib/clang/${PKGVERSION}/include/tbmintrin.h lib/clang/${PKGVERSION}/include/tgmath.h lib/clang/${PKGVERSION}/include/tmmintrin.h lib/clang/${PKGVERSION}/include/unwind.h -lib/clang/${PKGVERSION}/include/vadefs.h lib/clang/${PKGVERSION}/include/varargs.h lib/clang/${PKGVERSION}/include/wmmintrin.h lib/clang/${PKGVERSION}/include/x86intrin.h @@ -1304,16 +1201,16 @@ lib/libLLVMCppBackendCodeGen.a lib/libLLVMCppBackendInfo.a lib/libLLVMDebugInfo.a lib/libLLVMExecutionEngine.a +lib/libLLVMHexagonAsmPrinter.a lib/libLLVMHexagonCodeGen.a lib/libLLVMHexagonDesc.a -lib/libLLVMHexagonDisassembler.a lib/libLLVMHexagonInfo.a lib/libLLVMIRReader.a lib/libLLVMInstCombine.a lib/libLLVMInstrumentation.a lib/libLLVMInterpreter.a +lib/libLLVMJIT.a lib/libLLVMLTO.a -lib/libLLVMLineEditor.a lib/libLLVMLinker.a lib/libLLVMMC.a lib/libLLVMMCDisassembler.a @@ -1340,10 +1237,7 @@ lib/libLLVMPowerPCAsmParser.a lib/libLLVMPowerPCAsmPrinter.a lib/libLLVMPowerPCCodeGen.a lib/libLLVMPowerPCDesc.a -lib/libLLVMPowerPCDisassembler.a lib/libLLVMPowerPCInfo.a -lib/libLLVMProfileData.a -lib/libLLVMR600AsmParser.a lib/libLLVMR600AsmPrinter.a lib/libLLVMR600CodeGen.a lib/libLLVMR600Desc.a @@ -1351,11 +1245,8 @@ lib/libLLVMR600Info.a lib/libLLVMRuntimeDyld.a lib/libLLVMScalarOpts.a lib/libLLVMSelectionDAG.a -lib/libLLVMSparcAsmParser.a -lib/libLLVMSparcAsmPrinter.a lib/libLLVMSparcCodeGen.a lib/libLLVMSparcDesc.a -lib/libLLVMSparcDisassembler.a lib/libLLVMSparcInfo.a lib/libLLVMSupport.a lib/libLLVMSystemZAsmParser.a @@ -1401,7 +1292,7 @@ lib/libclangFrontendTool.a lib/libclangIndex.a lib/libclangLex.a lib/libclangParse.a -lib/libclangRewrite.a +lib/libclangRewriteCore.a lib/libclangRewriteFrontend.a lib/libclangSema.a lib/libclangSerialization.a @@ -1409,31 +1300,7 @@ lib/libclangStaticAnalyzerCheckers.a lib/libclangStaticAnalyzerCore.a lib/libclangStaticAnalyzerFrontend.a lib/libclangTooling.a -lib/libclangToolingCore.a -man/man1/clang.1 -share/doc/llvm/html.tar.gz -share/doc/llvm/html/Dummy.html -share/doc/llvm/html/LibASTMatchersReference.html -share/doc/llvm/html/clang/clang.html -share/doc/llvm/html/clang/manpage.css -share/doc/llvm/html/doxygen.css -share/doc/llvm/ps/clang.ps -share/llvm/cmake/AddLLVM.cmake -share/llvm/cmake/AddLLVMDefinitions.cmake -share/llvm/cmake/AddOCaml.cmake -share/llvm/cmake/AddSphinxTarget.cmake -share/llvm/cmake/ChooseMSVCCRT.cmake -share/llvm/cmake/CrossCompile.cmake -share/llvm/cmake/FindOCaml.cmake -share/llvm/cmake/FindSphinx.cmake -share/llvm/cmake/GetSVN.cmake -share/llvm/cmake/HandleLLVMOptions.cmake -share/llvm/cmake/HandleLLVMStdlib.cmake -share/llvm/cmake/LLVM-Config.cmake -share/llvm/cmake/LLVMConfig.cmake -share/llvm/cmake/LLVMConfigVersion.cmake -share/llvm/cmake/LLVMExports.cmake -share/llvm/cmake/LLVMParseArguments.cmake -share/llvm/cmake/LLVMProcessSources.cmake -share/llvm/cmake/TableGen.cmake -@pkgdir share/doc/llvm/html/img +share/man/man1/clang.1 +share/scanview.css +share/sorttable.js +@pkgdir docs/llvm/html/img diff --git a/lang/clang/PLIST.Darwin b/lang/clang/PLIST.Darwin deleted file mode 100644 index f9817a702..000000000 --- a/lang/clang/PLIST.Darwin +++ /dev/null @@ -1,16 +0,0 @@ -@comment $NetBSD: PLIST.Darwin,v 1.2 2014/09/06 07:37:14 adam Exp $ -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.10.4.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.asan_osx_dynamic.dylib -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.cc_kext.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.cc_kext_ios5.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.eprintf.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.ios.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.osx.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.profile_ios.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.profile_osx.a -lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.ubsan_osx.a -lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.hard_pic.a -lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.hard_static.a -lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.soft_pic.a -lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.soft_static.a diff --git a/lang/clang/PLIST.Linux b/lang/clang/PLIST.Linux deleted file mode 100644 index 81b69e02a..000000000 --- a/lang/clang/PLIST.Linux +++ /dev/null @@ -1,12 +0,0 @@ -@comment $NetBSD: PLIST.Linux,v 1.2 2015/05/22 22:44:08 ryoon Exp $ -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.asan-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.asan_cxx-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.builtins-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.dfsan-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.lsan-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.msan-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.profile-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.san-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.tsan-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.ubsan_cxx-x86_64.a -lib/clang/${PKGVERSION}/lib/linux/libclang_rt.ubsan-x86_64.a diff --git a/lang/clang/PLIST.static-analyzer b/lang/clang/PLIST.static-analyzer deleted file mode 100644 index 7ee70194b..000000000 --- a/lang/clang/PLIST.static-analyzer +++ /dev/null @@ -1,15 +0,0 @@ -@comment $NetBSD: PLIST.static-analyzer,v 1.1 2014/10/01 09:41:02 wiz Exp $ -bin/scan-build -bin/scan-view -libexec/c++-analyzer -libexec/ccc-analyzer -man/man1/scan-build.1 -share/llvm/static-analyzer/Reporter.py -share/llvm/static-analyzer/Resources/FileRadar.scpt -share/llvm/static-analyzer/Resources/GetRadarVersion.scpt -share/llvm/static-analyzer/Resources/bugcatcher.ico -share/llvm/static-analyzer/ScanView.py -share/llvm/static-analyzer/scan-view -share/llvm/static-analyzer/scanview.css -share/llvm/static-analyzer/sorttable.js -share/llvm/static-analyzer/startfile.py diff --git a/lang/clang/buildlink3.mk b/lang/clang/buildlink3.mk new file mode 100644 index 000000000..a1ac30286 --- /dev/null +++ b/lang/clang/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2010/02/13 16:13:52 tnn Exp $ + +BUILDLINK_TREE+= clang + +.if !defined(CLANG_BUILDLINK3_MK) +CLANG_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.clang+= clang>=2.6nb2 +BUILDLINK_PKGSRCDIR.clang?= ../../lang/clang + +.endif # CLANG_BUILDLINK3_MK + +BUILDLINK_TREE+= -clang diff --git a/lang/clang/distinfo b/lang/clang/distinfo index 5494ac5f5..3b6574e74 100644 --- a/lang/clang/distinfo +++ b/lang/clang/distinfo @@ -1,20 +1,12 @@ -$NetBSD: distinfo,v 1.35 2015/09/11 01:21:57 tnn Exp $ +$NetBSD$ -SHA1 (cfe-3.6.2.src.tar.xz) = 7ba809c9c17819a16b668640a642ed134d7052f0 -RMD160 (cfe-3.6.2.src.tar.xz) = 10d913b4d5317f8c2520e5fc6117df30937317a8 -Size (cfe-3.6.2.src.tar.xz) = 8617576 bytes -SHA1 (compiler-rt-3.6.2.src.tar.xz) = c6c52d2923a60f1a2ca2f22fea1770fd2e25728d -RMD160 (compiler-rt-3.6.2.src.tar.xz) = 9b68a32d49d4bef4603d550934192f39fea42895 -Size (compiler-rt-3.6.2.src.tar.xz) = 1128080 bytes -SHA1 (libcxx-3.6.2.src.tar.xz) = 6c5aee9f05ecf17d1e3ecb1add34a33a5a904469 -RMD160 (libcxx-3.6.2.src.tar.xz) = 42b8832d01d4e6b553babc93cb5dbd4ce2bb1931 -Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes -SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e -RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972 -Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes -SHA1 (patch-ab) = 8dd0da6d47a57ac25eea358996cf874dd3289e08 -SHA1 (patch-ac) = 0f0cc98d443ec957fc5374fb491809d27e4f9d4e -SHA1 (patch-ad) = ad1f6720e4c73e57fce10ba968b03637a133602d -SHA1 (patch-include_llvm_Support_Host.h) = 545f9542cd2aaa6cea58d3653902b4e1a9e7189a -SHA1 (patch-tools_clang_tools_scan-build_scan-build) = a671f1e513fb43ddc0e73751a78235ab39aeaf9d -SHA1 (patch-tools_llvm-shlib_Makefile) = 5cd529e824a935abfe91c4b820cfd9c318e03102 +SHA1 (clang-3.4.minix.src.tar.gz) = 2699f8c9c14df34cccdca39bd59e529a0936ba9a +RMD160 (clang-3.4.minix.src.tar.gz) = bf583a5162e6d180710f7488c10afc8f19cf6798 +Size (clang-3.4.minix.src.tar.gz) = 10504447 bytes +SHA1 (libcxx-3.4.minix.src.tar.gz) = 2faa2707aa7cdba79fe2b96482a0bb2c4b931e13 +RMD160 (libcxx-3.4.minix.src.tar.gz) = 6b0aac1ad775af71c2d13c4cc558e4bd2cd9bcae +Size (libcxx-3.4.minix.src.tar.gz) = 1376365 bytes +SHA1 (llvm-3.4.minix.src.tar.gz) = f52c8a7ea7ee531118499631e88ef552b5ea0a24 +RMD160 (llvm-3.4.minix.src.tar.gz) = 48768a541e4e3bdd10215c4360272db39d1bf7c1 +Size (llvm-3.4.minix.src.tar.gz) = 15750428 bytes +SHA1 (patch-include_llvm_Config_config.h.in) = c963d3b44a8e1fcdaf49d5a5c3cceb4fa4133a0a diff --git a/lang/clang/options.mk b/lang/clang/options.mk deleted file mode 100644 index 774e75ec6..000000000 --- a/lang/clang/options.mk +++ /dev/null @@ -1,42 +0,0 @@ -# $NetBSD: options.mk,v 1.3 2015/04/03 11:06:57 tnn Exp $ - -PKG_OPTIONS_VAR= PKG_OPTIONS.clang -PKG_SUPPORTED_OPTIONS= clang-static-analyzer -PKG_SUGGESTED_OPTIONS= # clang-static-analyzer disabled since it needs python and perl - -.include "../../mk/bsd.options.mk" - -PLIST_SRC= ${PLIST_SRC_DFLT} - -.if !empty(PKG_OPTIONS:Mclang-static-analyzer) -PLIST_SRC+= PLIST.static-analyzer - -INSTALLATION_DIRS+= bin -INSTALLATION_DIRS+= libexec -INSTALLATION_DIRS+= ${PKGMANDIR}/man1 -INSTALLATION_DIRS+= share/llvm/static-analyzer -INSTALLATION_DIRS+= share/llvm/static-analyzer/Resources - -USE_TOOLS+= perl:run -REPLACE_PERL+= tools/clang/tools/scan-build/c++-analyzer -REPLACE_PERL+= tools/clang/tools/scan-build/ccc-analyzer -REPLACE_PERL+= tools/clang/tools/scan-build/scan-build - -REPLACE_PYTHON+= tools/clang/tools/scan-view/scan-view -PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 3.5 -.include "../../lang/python/application.mk" - -post-build: - ${ECHO} '#!/bin/sh' > ${WRKSRC}/scan-view - ${ECHO} "${PREFIX}/share/llvm/static-analyzer/scan-view "'"$$@"' >> ${WRKSRC}/scan-view -post-install: - cd ${WRKSRC}/tools/clang/tools/scan-build && \ - ${INSTALL_SCRIPT} scan-build ${DESTDIR}${PREFIX}/bin; \ - ${INSTALL_SCRIPT} c++-analyzer ccc-analyzer ${DESTDIR}${PREFIX}/libexec; \ - ${INSTALL_DATA} scan-build.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \ - ${INSTALL_DATA} scanview.css sorttable.js ${DESTDIR}${PREFIX}/share/llvm/static-analyzer - cd ${WRKSRC}/tools/clang/tools/scan-view && \ - ${INSTALL_DATA} Resources/* ${DESTDIR}${PREFIX}/share/llvm/static-analyzer/Resources; \ - ${INSTALL_SCRIPT} scan-view *.py ${DESTDIR}${PREFIX}/share/llvm/static-analyzer - ${INSTALL_SCRIPT} ${WRKSRC}/scan-view ${DESTDIR}${PREFIX}/bin -.endif diff --git a/lang/clang/patches/patch-ab b/lang/clang/patches/patch-ab deleted file mode 100644 index 5be014fcf..000000000 --- a/lang/clang/patches/patch-ab +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: patch-ab,v 1.3 2013/01/03 15:19:53 adam Exp $ - ---- docs/Makefile.orig 2012-12-22 12:26:15.000000000 +0000 -+++ docs/Makefile -@@ -52,11 +52,10 @@ endif - # 'make generated BUILD_FOR_WEBSITE=1' - generated:: $(generated_targets) - --install-html: $(PROJ_OBJ_DIR)/html.tar.gz -+install-html: - $(Echo) Installing HTML documentation - $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html - $(Verb) $(DataInstall) $(HTML) $(DESTDIR)$(PROJ_docsdir)/html -- $(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(DESTDIR)$(PROJ_docsdir) - - $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML) - $(Echo) Packaging HTML documentation diff --git a/lang/clang/patches/patch-ac b/lang/clang/patches/patch-ac deleted file mode 100644 index 04975e50a..000000000 --- a/lang/clang/patches/patch-ac +++ /dev/null @@ -1,34 +0,0 @@ -$NetBSD: patch-ac,v 1.9 2014/01/19 14:06:41 ryoon Exp $ - ---- Makefile.rules.orig 2013-11-14 23:51:29.000000000 +0000 -+++ Makefile.rules -@@ -808,9 +808,6 @@ endif - # in the file so they get built before dependencies - #--------------------------------------------------------- - --$(DESTDIR)$(PROJ_bindir) $(DESTDIR)$(PROJ_libdir) $(DESTDIR)$(PROJ_includedir) $(DESTDIR)$(PROJ_etcdir):: -- $(Verb) $(MKDIR) $@ -- - # To create other directories, as needed, and timestamp their creation - %/.dir: - $(Verb) $(MKDIR) $* > /dev/null -@@ -954,7 +951,9 @@ install-local:: - uninstall-local:: - $(Echo) UnInstall circumvented with NO_INSTALL - else --install-local:: $(DESTDIR)$(PROJ_etcdir) $(CONFIG_FILES) -+PROJ_etcdir=${PREFIX}/share/examples/llvm -+install-local:: $(CONFIG_FILES) -+ $(MKDIR) ${PROJ_etcdir} - $(Echo) Installing Configuration Files To $(DESTDIR)$(PROJ_etcdir) - $(Verb)for file in $(CONFIG_FILES); do \ - if test -f $(PROJ_OBJ_DIR)/$${file} ; then \ -@@ -1248,7 +1247,7 @@ install-local:: $(DestArchiveLib) - $(DestArchiveLib): $(LibName.A) $(DESTDIR)$(PROJ_libdir) - $(Echo) Installing $(BuildMode) Archive Library $(DestArchiveLib) - $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_libdir) -- $(Verb) $(INSTALL) $(LibName.A) $(DestArchiveLib) -+ $(Verb) $(DataInstall) $(LibName.A) $(DestArchiveLib) - - uninstall-local:: - $(Echo) Uninstalling $(BuildMode) Archive Library $(DestArchiveLib) diff --git a/lang/clang/patches/patch-ad b/lang/clang/patches/patch-ad deleted file mode 100644 index 046cb0c55..000000000 --- a/lang/clang/patches/patch-ad +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-ad,v 1.6 2013/05/22 20:51:16 sbd Exp $ - ---- Makefile.config.in.orig 2012-10-01 18:40:32.000000000 +0000 -+++ Makefile.config.in -@@ -97,11 +97,11 @@ endif - PROJ_bindir := $(PROJ_prefix)/bin - PROJ_libdir := $(PROJ_prefix)/lib - PROJ_datadir := $(PROJ_prefix)/share --PROJ_docsdir := $(PROJ_prefix)/docs/llvm -+PROJ_docsdir := $(PROJ_prefix)/share/doc/llvm - PROJ_etcdir := $(PROJ_prefix)/etc/llvm - PROJ_includedir := $(PROJ_prefix)/include - PROJ_infodir := $(PROJ_prefix)/info --PROJ_mandir := $(PROJ_prefix)/share/man -+PROJ_mandir := $(PROJ_prefix)/${PKGMANDIR} - - # Determine if we're on a unix type operating system - LLVM_ON_UNIX:=@LLVM_ON_UNIX@ diff --git a/lang/clang/patches/patch-include_llvm_Config_config.h.in b/lang/clang/patches/patch-include_llvm_Config_config.h.in new file mode 100644 index 000000000..8ff006fa4 --- /dev/null +++ b/lang/clang/patches/patch-include_llvm_Config_config.h.in @@ -0,0 +1,966 @@ +$NetBSD$ + +--- include/llvm/Config/config.h.in.orig Mon Jun 30 13:14:38 2014 ++++ include/llvm/Config/config.h.in +@@ -1,727 +1,712 @@ ++/* include/llvm/Config/config.h. Generated from config.h.in by configure. */ + /* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */ + + #ifndef CONFIG_H + #define CONFIG_H + +-/* Define if building universal (internal helper macro) */ +-#undef AC_APPLE_UNIVERSAL_BUILD +- + /* Bug report URL. */ +-#undef BUG_REPORT_URL ++#define BUG_REPORT_URL "http://llvm.org/bugs/" + + /* Define if we have libxml2 */ +-#undef CLANG_HAVE_LIBXML ++/* #undef CLANG_HAVE_LIBXML */ + + /* Relative directory for resource files */ +-#undef CLANG_RESOURCE_DIR ++#define CLANG_RESOURCE_DIR "" + + /* Directories clang will search for headers */ +-#undef C_INCLUDE_DIRS ++#define C_INCLUDE_DIRS "/usr/include/clang-3.4:/usr/include" + + /* Default to all compiler invocations for --sysroot=. */ +-#undef DEFAULT_SYSROOT ++#define DEFAULT_SYSROOT "" + + /* Define if you want backtraces on crash */ +-#undef ENABLE_BACKTRACES ++#define ENABLE_BACKTRACES 1 + + /* Define to enable crash handling overrides */ +-#undef ENABLE_CRASH_OVERRIDES ++#define ENABLE_CRASH_OVERRIDES 1 + + /* Define if position independent code is enabled */ +-#undef ENABLE_PIC ++#define ENABLE_PIC 1 + + /* Define if timestamp information (e.g., __DATE__) is allowed */ +-#undef ENABLE_TIMESTAMPS ++#define ENABLE_TIMESTAMPS 0 + + /* Directory where gcc is installed. */ +-#undef GCC_INSTALL_PREFIX ++#define GCC_INSTALL_PREFIX "" + + /* Define to 1 if you have the `arc4random' function. */ +-#undef HAVE_ARC4RANDOM ++#define HAVE_ARC4RANDOM 1 + + /* Define to 1 if you have the `argz_append' function. */ +-#undef HAVE_ARGZ_APPEND ++/* #undef HAVE_ARGZ_APPEND */ + + /* Define to 1 if you have the `argz_create_sep' function. */ +-#undef HAVE_ARGZ_CREATE_SEP ++/* #undef HAVE_ARGZ_CREATE_SEP */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_ARGZ_H ++/* #undef HAVE_ARGZ_H */ + + /* Define to 1 if you have the `argz_insert' function. */ +-#undef HAVE_ARGZ_INSERT ++/* #undef HAVE_ARGZ_INSERT */ + + /* Define to 1 if you have the `argz_next' function. */ +-#undef HAVE_ARGZ_NEXT ++/* #undef HAVE_ARGZ_NEXT */ + + /* Define to 1 if you have the `argz_stringify' function. */ +-#undef HAVE_ARGZ_STRINGIFY ++/* #undef HAVE_ARGZ_STRINGIFY */ + + /* Define to 1 if you have the `backtrace' function. */ +-#undef HAVE_BACKTRACE ++/* #undef HAVE_BACKTRACE */ + + /* Define to 1 if you have the `ceilf' function. */ +-#undef HAVE_CEILF ++#define HAVE_CEILF 1 + + /* Define if the neat program is available */ +-#undef HAVE_CIRCO ++/* #undef HAVE_CIRCO */ + + /* Define to 1 if you have the `closedir' function. */ +-#undef HAVE_CLOSEDIR ++#define HAVE_CLOSEDIR 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_CRASHREPORTERCLIENT_H ++/* #undef HAVE_CRASHREPORTERCLIENT_H */ + + /* can use __crashreporter_info__ */ +-#undef HAVE_CRASHREPORTER_INFO ++#define HAVE_CRASHREPORTER_INFO 0 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_CXXABI_H ++#define HAVE_CXXABI_H 1 + + /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you + don't. */ +-#undef HAVE_DECL_FE_ALL_EXCEPT ++#define HAVE_DECL_FE_ALL_EXCEPT 1 + + /* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you + don't. */ +-#undef HAVE_DECL_FE_INEXACT ++#define HAVE_DECL_FE_INEXACT 1 + + /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you + don't. */ +-#undef HAVE_DECL_STRERROR_S ++#define HAVE_DECL_STRERROR_S 0 + + /* Define to 1 if you have the header file, and it defines `DIR'. + */ +-#undef HAVE_DIRENT_H ++#define HAVE_DIRENT_H 1 + + /* Define if you have the GNU dld library. */ +-#undef HAVE_DLD ++/* #undef HAVE_DLD */ + + /* Define to 1 if you have the `dlerror' function. */ +-#undef HAVE_DLERROR ++#define HAVE_DLERROR 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_DLFCN_H ++#define HAVE_DLFCN_H 1 + + /* Define if dlopen() is available on this platform. */ +-#undef HAVE_DLOPEN ++#define HAVE_DLOPEN 1 + + /* Define if the dot program is available */ +-#undef HAVE_DOT ++/* #undef HAVE_DOT */ + + /* Define if the dotty program is available */ +-#undef HAVE_DOTTY ++/* #undef HAVE_DOTTY */ + + /* Define if you have the _dyld_func_lookup function. */ +-#undef HAVE_DYLD ++/* #undef HAVE_DYLD */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_ERRNO_H ++#define HAVE_ERRNO_H 1 + + /* Define to 1 if the system has the type `error_t'. */ +-#undef HAVE_ERROR_T ++/* #undef HAVE_ERROR_T */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_EXECINFO_H ++#define HAVE_EXECINFO_H 1 + + /* Define to 1 if you have the `exp' function. */ +-#undef HAVE_EXP ++#define HAVE_EXP 1 + + /* Define to 1 if you have the `exp2' function. */ +-#undef HAVE_EXP2 ++#define HAVE_EXP2 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_FCNTL_H ++#define HAVE_FCNTL_H 1 + + /* Define if the neat program is available */ +-#undef HAVE_FDP ++/* #undef HAVE_FDP */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_FENV_H ++ #ifndef __ppc__ ++#define HAVE_FENV_H 1 ++ #endif + + /* Define if libffi is available on this platform. */ +-#undef HAVE_FFI_CALL ++/* #undef HAVE_FFI_CALL */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_FFI_FFI_H ++/* #undef HAVE_FFI_FFI_H */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_FFI_H ++/* #undef HAVE_FFI_H */ + + /* Set to 1 if the finite function is found in */ +-#undef HAVE_FINITE_IN_IEEEFP_H ++/* #undef HAVE_FINITE_IN_IEEEFP_H */ + + /* Define to 1 if you have the `floorf' function. */ +-#undef HAVE_FLOORF ++#define HAVE_FLOORF 1 + + /* Define to 1 if you have the `fmodf' function. */ +-#undef HAVE_FMODF ++#define HAVE_FMODF 1 + + /* Define to 1 if you have the `futimens' function. */ +-#undef HAVE_FUTIMENS ++#define HAVE_FUTIMENS 1 + + /* Define to 1 if you have the `futimes' function. */ +-#undef HAVE_FUTIMES ++#define HAVE_FUTIMES 1 + + /* Define to 1 if you have the `getcwd' function. */ +-#undef HAVE_GETCWD ++#define HAVE_GETCWD 1 + + /* Define to 1 if you have the `getpagesize' function. */ +-#undef HAVE_GETPAGESIZE ++#define HAVE_GETPAGESIZE 1 + + /* Define to 1 if you have the `getrlimit' function. */ +-#undef HAVE_GETRLIMIT ++#define HAVE_GETRLIMIT 1 + + /* Define to 1 if you have the `getrusage' function. */ +-#undef HAVE_GETRUSAGE ++#define HAVE_GETRUSAGE 1 + + /* Define to 1 if you have the `gettimeofday' function. */ +-#undef HAVE_GETTIMEOFDAY ++#define HAVE_GETTIMEOFDAY 1 + + /* Define if the Graphviz program is available */ +-#undef HAVE_GRAPHVIZ ++/* #undef HAVE_GRAPHVIZ */ + + /* Define if the gv program is available */ +-#undef HAVE_GV ++/* #undef HAVE_GV */ + + /* Define to 1 if the system has the type `int64_t'. */ +-#undef HAVE_INT64_T ++#define HAVE_INT64_T 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_INTTYPES_H ++#define HAVE_INTTYPES_H 1 + + /* Define to 1 if you have the `isatty' function. */ +-#undef HAVE_ISATTY ++#define HAVE_ISATTY 1 + + /* Set to 1 if the isinf function is found in */ +-#undef HAVE_ISINF_IN_CMATH ++#define HAVE_ISINF_IN_CMATH 1 + + /* Set to 1 if the isinf function is found in */ +-#undef HAVE_ISINF_IN_MATH_H ++#define HAVE_ISINF_IN_MATH_H 1 + + /* Set to 1 if the isnan function is found in */ +-#undef HAVE_ISNAN_IN_CMATH ++#define HAVE_ISNAN_IN_CMATH 1 + + /* Set to 1 if the isnan function is found in */ +-#undef HAVE_ISNAN_IN_MATH_H ++#define HAVE_ISNAN_IN_MATH_H 1 + + /* Define if you have the libdl library or equivalent. */ +-#undef HAVE_LIBDL ++#define HAVE_LIBDL 1 + + /* Define to 1 if you have the `imagehlp' library (-limagehlp). */ +-#undef HAVE_LIBIMAGEHLP ++/* #undef HAVE_LIBIMAGEHLP */ + + /* Define to 1 if you have the `m' library (-lm). */ +-#undef HAVE_LIBM ++#define HAVE_LIBM 1 + + /* Define to 1 if you have the `psapi' library (-lpsapi). */ +-#undef HAVE_LIBPSAPI ++/* #undef HAVE_LIBPSAPI */ + + /* Define to 1 if you have the `pthread' library (-lpthread). */ +-#undef HAVE_LIBPTHREAD ++/* MINIX: #define HAVE_LIBPTHREAD 1 */ + + /* Define to 1 if you have the `shell32' library (-lshell32). */ +-#undef HAVE_LIBSHELL32 ++/* #undef HAVE_LIBSHELL32 */ + + /* Define to 1 if you have the `udis86' library (-ludis86). */ +-#undef HAVE_LIBUDIS86 ++/* #undef HAVE_LIBUDIS86 */ + + /* Define to 1 if you have the `z' library (-lz). */ +-#undef HAVE_LIBZ ++#define HAVE_LIBZ 1 + + /* Define if you can use -rdynamic. */ +-#undef HAVE_LINK_EXPORT_DYNAMIC ++#define HAVE_LINK_EXPORT_DYNAMIC 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_LINK_H ++#define HAVE_LINK_H 1 + + /* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add + the current directory to the dynamic linker search path. */ +-#undef HAVE_LINK_R ++#define HAVE_LINK_R 1 + + /* Define to 1 if you have the `log' function. */ +-#undef HAVE_LOG ++#define HAVE_LOG 1 + + /* Define to 1 if you have the `log10' function. */ +-#undef HAVE_LOG10 ++#define HAVE_LOG10 1 + + /* Define to 1 if you have the `log2' function. */ +-#undef HAVE_LOG2 ++#define HAVE_LOG2 1 + + /* Define to 1 if you have the `longjmp' function. */ +-#undef HAVE_LONGJMP ++/* #undef HAVE_LONGJMP */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_MACH_MACH_H ++/* #undef HAVE_MACH_MACH_H */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_MACH_O_DYLD_H ++/* #undef HAVE_MACH_O_DYLD_H */ + + /* Define if mallinfo() is available on this platform. */ +-#undef HAVE_MALLINFO ++/* #undef HAVE_MALLINFO */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_MALLOC_H ++#define HAVE_MALLOC_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_MALLOC_MALLOC_H ++/* #undef HAVE_MALLOC_MALLOC_H */ + + /* Define to 1 if you have the `malloc_zone_statistics' function. */ +-#undef HAVE_MALLOC_ZONE_STATISTICS ++/* #undef HAVE_MALLOC_ZONE_STATISTICS */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_MEMORY_H ++#define HAVE_MEMORY_H 1 + + /* Define to 1 if you have the `mkdtemp' function. */ +-#undef HAVE_MKDTEMP ++#define HAVE_MKDTEMP 1 + + /* Define to 1 if you have the `mkstemp' function. */ +-#undef HAVE_MKSTEMP ++#define HAVE_MKSTEMP 1 + + /* Define to 1 if you have the `mktemp' function. */ +-#undef HAVE_MKTEMP ++#define HAVE_MKTEMP 1 + + /* Define to 1 if you have a working `mmap' system call. */ +-#undef HAVE_MMAP ++#define HAVE_MMAP 1 + + /* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if + it uses MAP_ANON */ +-#undef HAVE_MMAP_ANONYMOUS ++/* #undef HAVE_MMAP_ANONYMOUS */ + + /* Define if mmap() can map files into memory */ +-#undef HAVE_MMAP_FILE ++#define HAVE_MMAP_FILE 1 + + /* Define to 1 if you have the header file, and it defines `DIR'. */ +-#undef HAVE_NDIR_H ++/* #undef HAVE_NDIR_H */ + + /* Define to 1 if you have the `nearbyintf' function. */ +-#undef HAVE_NEARBYINTF ++#define HAVE_NEARBYINTF 1 + + /* Define if the neat program is available */ +-#undef HAVE_NEATO ++/* #undef HAVE_NEATO */ + + /* Define to 1 if you have the `opendir' function. */ +-#undef HAVE_OPENDIR ++#define HAVE_OPENDIR 1 + + /* Define to 1 if you have the `posix_spawn' function. */ +-#undef HAVE_POSIX_SPAWN ++/* MINIX: #define HAVE_POSIX_SPAWN 1 */ + + /* Define to 1 if you have the `powf' function. */ +-#undef HAVE_POWF ++#define HAVE_POWF 1 + + /* Define to 1 if you have the `pread' function. */ +-#undef HAVE_PREAD ++#define HAVE_PREAD 1 + + /* Define if libtool can extract symbol lists from object files. */ +-#undef HAVE_PRELOADED_SYMBOLS ++#define HAVE_PRELOADED_SYMBOLS 1 + + /* Define to have the %a format string */ +-#undef HAVE_PRINTF_A ++#define HAVE_PRINTF_A 1 + + /* Have pthread_getspecific */ +-#undef HAVE_PTHREAD_GETSPECIFIC ++/* MINIX: #define HAVE_PTHREAD_GETSPECIFIC 1 */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_PTHREAD_H ++/* MINIX: #define HAVE_PTHREAD_H 1 */ + + /* Have pthread_mutex_lock */ +-#undef HAVE_PTHREAD_MUTEX_LOCK ++/* MINIX: #define HAVE_PTHREAD_MUTEX_LOCK 1 */ + + /* Have pthread_rwlock_init */ +-#undef HAVE_PTHREAD_RWLOCK_INIT ++/* MINIX: #define HAVE_PTHREAD_RWLOCK_INIT 1 */ + + /* Define to 1 if srand48/lrand48/drand48 exist in */ +-#undef HAVE_RAND48 ++#define HAVE_RAND48 1 + + /* Define to 1 if you have the `readdir' function. */ +-#undef HAVE_READDIR ++#define HAVE_READDIR 1 + + /* Define to 1 if you have the `realpath' function. */ +-#undef HAVE_REALPATH ++#define HAVE_REALPATH 1 + + /* Define to 1 if you have the `rintf' function. */ +-#undef HAVE_RINTF ++#define HAVE_RINTF 1 + + /* Define to 1 if you have the `round' function. */ +-#undef HAVE_ROUND ++#define HAVE_ROUND 1 + + /* Define to 1 if you have the `roundf' function. */ +-#undef HAVE_ROUNDF ++#define HAVE_ROUNDF 1 + + /* Define to 1 if you have the `sbrk' function. */ +-#undef HAVE_SBRK ++#define HAVE_SBRK 1 + + /* Define to 1 if you have the `setenv' function. */ +-#undef HAVE_SETENV ++#define HAVE_SETENV 1 + + /* Define to 1 if you have the `setjmp' function. */ +-#undef HAVE_SETJMP ++/* #undef HAVE_SETJMP */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SETJMP_H ++#define HAVE_SETJMP_H 1 + + /* Define to 1 if you have the `setrlimit' function. */ +-#undef HAVE_SETRLIMIT ++/* MINIX: #define HAVE_SETRLIMIT 1 */ + + /* Define if you have the shl_load function. */ +-#undef HAVE_SHL_LOAD ++/* #undef HAVE_SHL_LOAD */ + + /* Define to 1 if you have the `siglongjmp' function. */ +-#undef HAVE_SIGLONGJMP ++/* #undef HAVE_SIGLONGJMP */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SIGNAL_H ++#define HAVE_SIGNAL_H 1 + + /* Define to 1 if you have the `sigsetjmp' function. */ +-#undef HAVE_SIGSETJMP ++/* #undef HAVE_SIGSETJMP */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_STDINT_H ++#define HAVE_STDINT_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_STDLIB_H ++#define HAVE_STDLIB_H 1 + + /* Set to 1 if the std::isinf function is found in */ +-#undef HAVE_STD_ISINF_IN_CMATH ++#define HAVE_STD_ISINF_IN_CMATH 1 + + /* Set to 1 if the std::isnan function is found in */ +-#undef HAVE_STD_ISNAN_IN_CMATH ++#define HAVE_STD_ISNAN_IN_CMATH 1 + + /* Define to 1 if you have the `strerror' function. */ +-#undef HAVE_STRERROR ++#define HAVE_STRERROR 1 + + /* Define to 1 if you have the `strerror_r' function. */ +-#undef HAVE_STRERROR_R ++#define HAVE_STRERROR_R 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_STRINGS_H ++#define HAVE_STRINGS_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_STRING_H ++#define HAVE_STRING_H 1 + + /* Define to 1 if you have the `strtof' function. */ +-#undef HAVE_STRTOF ++#define HAVE_STRTOF 1 + + /* Define to 1 if you have the `strtoll' function. */ +-#undef HAVE_STRTOLL ++#define HAVE_STRTOLL 1 + + /* Define to 1 if you have the `strtoq' function. */ +-#undef HAVE_STRTOQ ++#define HAVE_STRTOQ 1 + + /* Define to 1 if you have the `sysconf' function. */ +-#undef HAVE_SYSCONF ++/* #define HAVE_SYSCONF 1 */ + + /* Define to 1 if you have the header file, and it defines `DIR'. + */ +-#undef HAVE_SYS_DIR_H ++/* #undef HAVE_SYS_DIR_H */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_IOCTL_H ++#define HAVE_SYS_IOCTL_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_MMAN_H ++#define HAVE_SYS_MMAN_H 1 + + /* Define to 1 if you have the header file, and it defines `DIR'. + */ +-#undef HAVE_SYS_NDIR_H ++/* #undef HAVE_SYS_NDIR_H */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_PARAM_H ++#define HAVE_SYS_PARAM_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_RESOURCE_H ++#define HAVE_SYS_RESOURCE_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_STAT_H ++#define HAVE_SYS_STAT_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_TIME_H ++#define HAVE_SYS_TIME_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_TYPES_H ++#define HAVE_SYS_TYPES_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_SYS_UIO_H ++#define HAVE_SYS_UIO_H 1 + + /* Define to 1 if you have that is POSIX.1 compatible. */ +-#undef HAVE_SYS_WAIT_H ++#define HAVE_SYS_WAIT_H 1 + + /* Define if the setupterm() function is supported this platform. */ +-#undef HAVE_TERMINFO ++#define HAVE_TERMINFO 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_TERMIOS_H ++#define HAVE_TERMIOS_H 1 + + /* Define if the neat program is available */ +-#undef HAVE_TWOPI ++/* #undef HAVE_TWOPI */ + + /* Define to 1 if the system has the type `uint64_t'. */ +-#undef HAVE_UINT64_T ++#define HAVE_UINT64_T 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_UNISTD_H ++#define HAVE_UNISTD_H 1 + + /* Define to 1 if you have the header file. */ +-#undef HAVE_UTIME_H ++#define HAVE_UTIME_H 1 + + /* Define to 1 if the system has the type `u_int64_t'. */ +-#undef HAVE_U_INT64_T ++/* #undef HAVE_U_INT64_T */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_VALGRIND_VALGRIND_H ++/* #undef HAVE_VALGRIND_VALGRIND_H */ + + /* Define to 1 if you have the `writev' function. */ +-#undef HAVE_WRITEV ++#define HAVE_WRITEV 1 + + /* Define if the xdot program is available */ +-#undef HAVE_XDOT ++/* #undef HAVE_XDOT */ + + /* Define to 1 if you have the header file. */ +-#undef HAVE_ZLIB_H ++#define HAVE_ZLIB_H 1 + + /* Have host's _alloca */ +-#undef HAVE__ALLOCA ++/* #undef HAVE__ALLOCA */ + + /* Have host's __alloca */ +-#undef HAVE___ALLOCA ++/* #undef HAVE___ALLOCA */ + + /* Have host's __ashldi3 */ +-#undef HAVE___ASHLDI3 ++/* #undef HAVE___ASHLDI3 */ + + /* Have host's __ashrdi3 */ +-#undef HAVE___ASHRDI3 ++/* #undef HAVE___ASHRDI3 */ + + /* Have host's __chkstk */ +-#undef HAVE___CHKSTK ++/* #undef HAVE___CHKSTK */ + + /* Have host's __cmpdi2 */ +-#undef HAVE___CMPDI2 ++/* #undef HAVE___CMPDI2 */ + + /* Have host's __divdi3 */ +-#undef HAVE___DIVDI3 ++/* #undef HAVE___DIVDI3 */ + + /* Define to 1 if you have the `__dso_handle' function. */ +-#undef HAVE___DSO_HANDLE ++#define HAVE___DSO_HANDLE 1 + + /* Have host's __fixdfdi */ +-#undef HAVE___FIXDFDI ++/* #undef HAVE___FIXDFDI */ + + /* Have host's __fixsfdi */ +-#undef HAVE___FIXSFDI ++/* #undef HAVE___FIXSFDI */ + + /* Have host's __floatdidf */ +-#undef HAVE___FLOATDIDF ++/* #undef HAVE___FLOATDIDF */ + + /* Have host's __lshrdi3 */ +-#undef HAVE___LSHRDI3 ++/* #undef HAVE___LSHRDI3 */ + + /* Have host's __main */ +-#undef HAVE___MAIN ++/* #undef HAVE___MAIN */ + + /* Have host's __moddi3 */ +-#undef HAVE___MODDI3 ++/* #undef HAVE___MODDI3 */ + + /* Have host's __udivdi3 */ +-#undef HAVE___UDIVDI3 ++/* #undef HAVE___UDIVDI3 */ + + /* Have host's __umoddi3 */ +-#undef HAVE___UMODDI3 ++/* #undef HAVE___UMODDI3 */ + + /* Have host's ___chkstk */ +-#undef HAVE____CHKSTK ++/* #undef HAVE____CHKSTK */ + + /* Linker version detected at compile time. */ +-#undef HOST_LINK_VERSION ++#define HOST_LINK_VERSION "2.23.2" + + /* Installation directory for binary executables */ +-#undef LLVM_BINDIR ++#define LLVM_BINDIR "/usr/bin" + + /* Time at which LLVM was configured */ +-#undef LLVM_CONFIGTIME ++#define LLVM_CONFIGTIME "(timestamp not enabled)" + + /* Installation directory for data files */ +-#undef LLVM_DATADIR ++#define LLVM_DATADIR "/usr/share/llvm" + + /* Target triple LLVM will generate code for by default */ +-#undef LLVM_DEFAULT_TARGET_TRIPLE ++#define LLVM_DEFAULT_TARGET_TRIPLE "i586-elf32-minix" + + /* Installation directory for documentation */ +-#undef LLVM_DOCSDIR ++#define LLVM_DOCSDIR "/usr/share/doc/llvm" + + /* Define if threads enabled */ +-#undef LLVM_ENABLE_THREADS ++/* MINIX: #define LLVM_ENABLE_THREADS 1 */ + + /* Define if zlib is enabled */ +-#undef LLVM_ENABLE_ZLIB ++#define LLVM_ENABLE_ZLIB 1 + + /* Installation directory for config files */ +-#undef LLVM_ETCDIR ++#define LLVM_ETCDIR "/usr/etc/llvm" + + /* Has gcc/MSVC atomic intrinsics */ +-#undef LLVM_HAS_ATOMICS ++#define LLVM_HAS_ATOMICS 1 + + /* Host triple LLVM will be executed on */ +-#undef LLVM_HOST_TRIPLE ++#define LLVM_HOST_TRIPLE "i586-elf32-minix" + + /* Installation directory for include files */ +-#undef LLVM_INCLUDEDIR ++#define LLVM_INCLUDEDIR "/usr/include" + + /* Installation directory for .info files */ +-#undef LLVM_INFODIR ++#define LLVM_INFODIR "/usr/info" + + /* Installation directory for man pages */ +-#undef LLVM_MANDIR ++#define LLVM_MANDIR "/usr/man" + + /* LLVM architecture name for the native architecture, if available */ +-#undef LLVM_NATIVE_ARCH ++#define LLVM_NATIVE_ARCH X86 + + /* LLVM name for the native AsmParser init function, if available */ +-#undef LLVM_NATIVE_ASMPARSER ++#define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser + + /* LLVM name for the native AsmPrinter init function, if available */ +-#undef LLVM_NATIVE_ASMPRINTER ++#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter + + /* LLVM name for the native Disassembler init function, if available */ +-#undef LLVM_NATIVE_DISASSEMBLER ++#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler + + /* LLVM name for the native Target init function, if available */ +-#undef LLVM_NATIVE_TARGET ++#define LLVM_NATIVE_TARGET LLVMInitializeX86Target + + /* LLVM name for the native TargetInfo init function, if available */ +-#undef LLVM_NATIVE_TARGETINFO ++#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo + + /* LLVM name for the native target MC init function, if available */ +-#undef LLVM_NATIVE_TARGETMC ++#define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC + + /* Define if this is Unixish platform */ +-#undef LLVM_ON_UNIX ++#define LLVM_ON_UNIX 1 + + /* Define if this is Win32ish platform */ +-#undef LLVM_ON_WIN32 ++/* #undef LLVM_ON_WIN32 */ + + /* Define to path to circo program if found or 'echo circo' otherwise */ +-#undef LLVM_PATH_CIRCO ++/* #undef LLVM_PATH_CIRCO */ + + /* Define to path to dot program if found or 'echo dot' otherwise */ +-#undef LLVM_PATH_DOT ++/* #undef LLVM_PATH_DOT */ + + /* Define to path to dotty program if found or 'echo dotty' otherwise */ +-#undef LLVM_PATH_DOTTY ++/* #undef LLVM_PATH_DOTTY */ + + /* Define to path to fdp program if found or 'echo fdp' otherwise */ +-#undef LLVM_PATH_FDP ++/* #undef LLVM_PATH_FDP */ + + /* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */ +-#undef LLVM_PATH_GRAPHVIZ ++/* #undef LLVM_PATH_GRAPHVIZ */ + + /* Define to path to gv program if found or 'echo gv' otherwise */ +-#undef LLVM_PATH_GV ++/* #undef LLVM_PATH_GV */ + + /* Define to path to neato program if found or 'echo neato' otherwise */ +-#undef LLVM_PATH_NEATO ++/* #undef LLVM_PATH_NEATO */ + + /* Define to path to twopi program if found or 'echo twopi' otherwise */ +-#undef LLVM_PATH_TWOPI ++/* #undef LLVM_PATH_TWOPI */ + + /* Define to path to xdot program if found or 'echo xdot' otherwise */ +-#undef LLVM_PATH_XDOT ++/* #undef LLVM_PATH_XDOT */ + + /* Installation prefix directory */ +-#undef LLVM_PREFIX ++#define LLVM_PREFIX "/usr" + + /* Define if we have the Intel JIT API runtime support library */ +-#undef LLVM_USE_INTEL_JITEVENTS ++#define LLVM_USE_INTEL_JITEVENTS 0 + + /* Define if we have the oprofile JIT-support library */ +-#undef LLVM_USE_OPROFILE ++#define LLVM_USE_OPROFILE 0 + + /* Major version of the LLVM API */ +-#undef LLVM_VERSION_MAJOR ++#define LLVM_VERSION_MAJOR 3 + + /* Minor version of the LLVM API */ +-#undef LLVM_VERSION_MINOR ++#define LLVM_VERSION_MINOR 4 + + /* Define if the OS needs help to load dependent libraries for dlopen(). */ +-#undef LTDL_DLOPEN_DEPLIBS ++/* #undef LTDL_DLOPEN_DEPLIBS */ + + /* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +-#undef LTDL_OBJDIR ++#define LTDL_OBJDIR ".libs/" + + /* Define to the extension used for shared libraries, say, ".so". */ +-#undef LTDL_SHLIB_EXT ++#define LTDL_SHLIB_EXT ".so" + + /* Define to the system default library search path. */ +-#undef LTDL_SYSSEARCHPATH ++#define LTDL_SYSSEARCHPATH "/lib:/usr/lib" + + /* Define if /dev/zero should be used when mapping RWX memory, or undefine if + its not necessary */ +-#undef NEED_DEV_ZERO_FOR_MMAP ++/* #undef NEED_DEV_ZERO_FOR_MMAP */ + + /* Define if dlsym() requires a leading underscore in symbol names. */ +-#undef NEED_USCORE ++/* #undef NEED_USCORE */ + + /* Define to the address where bug reports for this package should be sent. */ +-#undef PACKAGE_BUGREPORT ++#define PACKAGE_BUGREPORT "http://llvm.org/bugs/" + + /* Define to the full name of this package. */ +-#undef PACKAGE_NAME ++#define PACKAGE_NAME "LLVM" + + /* Define to the full name and version of this package. */ +-#undef PACKAGE_STRING ++#define PACKAGE_STRING "LLVM 3.4svn" + + /* Define to the one symbol short name of this package. */ +-#undef PACKAGE_TARNAME ++#define PACKAGE_TARNAME "llvm" + +-/* Define to the home page for this package. */ +-#undef PACKAGE_URL +- + /* Define to the version of this package. */ +-#undef PACKAGE_VERSION ++#define PACKAGE_VERSION "3.4svn" + + /* Define as the return type of signal handlers (`int' or `void'). */ +-#undef RETSIGTYPE ++#define RETSIGTYPE void + + /* Define to 1 if the `S_IS*' macros in do not work properly. */ +-#undef STAT_MACROS_BROKEN ++/* #undef STAT_MACROS_BROKEN */ + + /* Define to 1 if you have the ANSI C header files. */ +-#undef STDC_HEADERS ++#define STDC_HEADERS 1 + + /* Define to 1 if you can safely include both and . */ +-#undef TIME_WITH_SYS_TIME ++#define TIME_WITH_SYS_TIME 1 + + /* Define to 1 if your declares `struct tm'. */ +-#undef TM_IN_SYS_TIME ++/* #undef TM_IN_SYS_TIME */ + + /* Define if use udis86 library */ +-#undef USE_UDIS86 ++#define USE_UDIS86 0 + + /* Type of 1st arg on ELM Callback */ +-#undef WIN32_ELMCB_PCSTR ++/* #undef WIN32_ELMCB_PCSTR */ + +-/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most +- significant byte first (like Motorola and SPARC, unlike Intel). */ +-#if defined AC_APPLE_UNIVERSAL_BUILD +-# if defined __BIG_ENDIAN__ +-# define WORDS_BIGENDIAN 1 +-# endif +-#else +-# ifndef WORDS_BIGENDIAN +-# undef WORDS_BIGENDIAN +-# endif +-#endif +- + /* Define to empty if `const' does not conform to ANSI C. */ +-#undef const ++/* #undef const */ + + /* Define to a type to use for `error_t' if it is not otherwise available. */ +-#undef error_t ++#define error_t int + + /* Define to `int' if does not define. */ +-#undef pid_t ++/* #undef pid_t */ + + /* Define to `unsigned int' if does not define. */ +-#undef size_t ++/* #undef size_t */ + + #endif diff --git a/lang/clang/patches/patch-include_llvm_Support_Host.h b/lang/clang/patches/patch-include_llvm_Support_Host.h deleted file mode 100644 index 123cec01b..000000000 --- a/lang/clang/patches/patch-include_llvm_Support_Host.h +++ /dev/null @@ -1,28 +0,0 @@ -$NetBSD: patch-include_llvm_Support_Host.h,v 1.2 2014/01/19 14:06:41 ryoon Exp $ - -Fix lack of machine/endian.h on solaris -http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225 - ---- include/llvm/Support/Host.h.orig 2013-06-05 09:17:26.000000000 +0000 -+++ include/llvm/Support/Host.h -@@ -18,6 +18,20 @@ - - #if defined(__linux__) || defined(__GNU__) - #include -+#elif defined(__sun) & defined(__SVR4) -+# ifndef BYTE_ORDER -+# define LITTLE_ENDIAN 1234 -+# define BIG_ENDIAN 4321 -+# if defined(__sun) & defined(__SVR4) -+# include -+# ifdef _LITTLE_ENDIAN -+# define BYTE_ORDER LITTLE_ENDIAN -+# endif -+# ifdef _BIG_ENDIAN -+# define BYTE_ORDER BIG_ENDIAN -+# endif -+# endif /* sun */ -+# endif /* BYTE_ORDER */ - #else - #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32) - #include diff --git a/lang/clang/patches/patch-tools_clang_tools_scan-build_scan-build b/lang/clang/patches/patch-tools_clang_tools_scan-build_scan-build deleted file mode 100644 index 2f0a8f037..000000000 --- a/lang/clang/patches/patch-tools_clang_tools_scan-build_scan-build +++ /dev/null @@ -1,44 +0,0 @@ -$NetBSD: patch-tools_clang_tools_scan-build_scan-build,v 1.1 2014/10/01 09:41:02 wiz Exp $ - -Adapt paths for pkgsrc installation. - ---- tools/clang/tools/scan-build/scan-build.orig 2014-07-17 08:40:35.000000000 +0000 -+++ tools/clang/tools/scan-build/scan-build -@@ -437,7 +437,7 @@ sub CopyFiles { - - my $Dir = shift; - -- my $JS = Cwd::realpath("$RealBin/sorttable.js"); -+ my $JS = Cwd::realpath("$RealBin/../share/llvm/static-analyzer/sorttable.js"); - - DieDiag("Cannot find 'sorttable.js'.\n") - if (! -r $JS); -@@ -447,7 +447,7 @@ sub CopyFiles { - DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n") - if (! -r "$Dir/sorttable.js"); - -- my $CSS = Cwd::realpath("$RealBin/scanview.css"); -+ my $CSS = Cwd::realpath("$RealBin/../share/llvm/static-analyzer/scanview.css"); - - DieDiag("Cannot find 'scanview.css'.\n") - if (! -r $CSS); -@@ -1657,8 +1657,8 @@ $HtmlDir = GetHTMLRunDir($HtmlDir); - - # Determine the location of ccc-analyzer. - my $AbsRealBin = Cwd::realpath($RealBin); --my $Cmd = "$AbsRealBin/libexec/ccc-analyzer"; --my $CmdCXX = "$AbsRealBin/libexec/c++-analyzer"; -+my $Cmd = "$AbsRealBin/../libexec/ccc-analyzer"; -+my $CmdCXX = "$AbsRealBin/../libexec/c++-analyzer"; - - # Portability: use less strict but portable check -e (file exists) instead of - # non-portable -x (file is executable). On some windows ports -x just checks -@@ -1726,7 +1726,7 @@ if (defined $OutputFormat) { - if ($ViewResults and -r "$HtmlDir/index.html") { - Diag "Analysis run complete.\n"; - Diag "Viewing analysis results in '$HtmlDir' using scan-view.\n"; -- my $ScanView = Cwd::realpath("$RealBin/scan-view"); -+ my $ScanView = Cwd::realpath("$RealBin/../share/llvm/static-analyzer/scan-view"); - if (! -x $ScanView) { $ScanView = "scan-view"; } - exec $ScanView, "$HtmlDir"; - } diff --git a/lang/clang/patches/patch-tools_llvm-shlib_Makefile b/lang/clang/patches/patch-tools_llvm-shlib_Makefile deleted file mode 100644 index 514291f74..000000000 --- a/lang/clang/patches/patch-tools_llvm-shlib_Makefile +++ /dev/null @@ -1,30 +0,0 @@ -$NetBSD: patch-tools_llvm-shlib_Makefile,v 1.2 2015/04/26 13:08:38 tnn Exp $ - -Add NetBSD support. -Use full paths to archive files instead of -lfoo to avoid wrapper reordering. - ---- tools/llvm-shlib/Makefile.orig 2014-08-01 06:16:03.000000000 +0000 -+++ tools/llvm-shlib/Makefile -@@ -53,18 +53,18 @@ ifeq ($(HOST_OS),Darwin) - LLVMLibsOptions := $(LLVMLibsOptions) -all_load - endif - --ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig)) -+ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD NetBSD OpenBSD GNU Bitrig)) - # Include everything from the .a's into the shared library. -- LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \ -+ LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsPaths) \ - -Wl,--no-whole-archive - endif - --ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD GNU)) -+ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD NetBSD GNU)) - # Add soname to the library. - LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) - endif - --ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD)) -+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD NetBSD)) - # Don't allow unresolved symbols. - LLVMLibsOptions += -Wl,--no-undefined - endif