1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Upgrade llvm and clang to the 3.2 release.

This commit is contained in:
Brooks Davis 2013-01-10 16:34:44 +00:00
parent 43c117a8b7
commit 258832c938
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310189
11 changed files with 348 additions and 186 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= llvm
PORTVERSION= 3.1
PORTVERSION= 3.2
CATEGORIES= devel lang
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
@ -15,6 +15,7 @@ MAINTAINER= brooks@FreeBSD.org
COMMENT= Low Level Virtual Machine
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE)
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
.endif
@ -22,7 +23,7 @@ BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c
.endif
CONFLICTS= llvm-devel-[23]* llvm-etoile-2*
CONFLICTS= llvm-devel-[23]* llvm29-* llvm31-*
GNU_CONFIGURE= yes
USE_GCC= 4.2+
@ -46,7 +47,7 @@ LTOPLUGIN_DESC= Build LTO plugin (requires gold)
MAN1= bugpoint.1 lit.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
llvm-bcanalyzer.1 llvm-config.1 llvm-cov.1 llvm-diff.1 \
llvm-dis.1 llvm-extract.1 llvm-ld.1 llvm-link.1 llvm-nm.1 \
llvm-dis.1 llvm-extract.1 llvm-link.1 llvm-nm.1 \
llvm-prof.1 llvm-ranlib.1 llvm-stress.1 opt.1 tblgen.1
PLIST_SUB+= PORTVERSION=${PORTVERSION}
@ -95,25 +96,31 @@ CONFIGURE_ARGS+= --with-optimize-option=-O2
.endif
post-patch:
${REINPLACE_CMD} -e 's|${PORTVERSION}svn|${PORTVERSION}|g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \
${WRKSRC}/Makefile.config.in
${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \
${WRKSRC}/Makefile.config.in
.if empty(PORT_OPTIONS:MDOCS)
post-build:
@cd ${WRKSRC}/docs/CommandGuide && ${GMAKE} ${MAN1}
@cd ${WRKSRC}/docs && ${GMAKE} -f Makefile.sphinx man
.if ${PORT_OPTIONS:MDOCS}
@cd ${WRKSRC}/docs && ${GMAKE} -f Makefile.sphinx html
.endif
post-install:
${MV} ${PREFIX}/lib/${LIBNAME} ${PREFIX}/lib/${LIBNAME}.0
${LN} -s ${LIBNAME}.0 ${PREFIX}/lib/${LIBNAME}
.if empty(PORT_OPTIONS:MDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/html
find ${WRKSRC}/docs/_build/html -type f | \
xargs -I _DOC_ ${INSTALL_DATA} _DOC_ ${DOCSDIR}/html/
.endif
.for man in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/docs/CommandGuide/${man} \
@${INSTALL_MAN} ${WRKSRC}/docs/_build/man/${man} \
${MANPREFIX}/man/man1/
.endfor
.endif
TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${WRKSRC}/Release/lib ${GMAKE} check-local-lit)'
regression-test: ${BUILD_COOKIE}

View File

@ -1,2 +1,2 @@
SHA256 (llvm-3.1.src.tar.gz) = 1ea05135197b5400c1f88d00ff280d775ce778f8f9ea042e25a1e1e734a4b9ab
SIZE (llvm-3.1.src.tar.gz) = 11077429
SHA256 (llvm-3.2.src.tar.gz) = 125090c4d26740f1d5e9838477c931ed7d9ad70d599ba265f46f3a42cb066343
SIZE (llvm-3.2.src.tar.gz) = 12275252

View File

@ -10,9 +10,9 @@ bin/llvm-diff
bin/llvm-dis
bin/llvm-dwarfdump
bin/llvm-extract
bin/llvm-ld
bin/llvm-link
bin/llvm-mc
bin/llvm-mcmarkup
bin/llvm-nm
bin/llvm-objdump
bin/llvm-prof
@ -21,7 +21,6 @@ bin/llvm-readobj
bin/llvm-rtdyld
bin/llvm-size
bin/llvm-stress
bin/llvm-stub
bin/llvm-tblgen
bin/macho-dump
bin/opt
@ -34,6 +33,7 @@ include/llvm-c/EnhancedDisassembly.h
include/llvm-c/ExecutionEngine.h
include/llvm-c/Initialization.h
include/llvm-c/LinkTimeOptimizer.h
include/llvm-c/Linker.h
include/llvm-c/Object.h
include/llvm-c/Target.h
include/llvm-c/TargetMachine.h
@ -66,6 +66,7 @@ include/llvm/ADT/IndexedMap.h
include/llvm/ADT/IntEqClasses.h
include/llvm/ADT/IntervalMap.h
include/llvm/ADT/IntrusiveRefCntPtr.h
include/llvm/ADT/MapVector.h
include/llvm/ADT/NullablePtr.h
include/llvm/ADT/Optional.h
include/llvm/ADT/OwningPtr.h
@ -93,7 +94,6 @@ include/llvm/ADT/StringRef.h
include/llvm/ADT/StringSet.h
include/llvm/ADT/StringSwitch.h
include/llvm/ADT/TinyPtrVector.h
include/llvm/ADT/Trie.h
include/llvm/ADT/Triple.h
include/llvm/ADT/Twine.h
include/llvm/ADT/UniqueVector.h
@ -102,6 +102,7 @@ include/llvm/ADT/VariadicFunction.h
include/llvm/ADT/edit_distance.h
include/llvm/ADT/ilist.h
include/llvm/ADT/ilist_node.h
include/llvm/AddressingMode.h
include/llvm/Analysis/AliasAnalysis.h
include/llvm/Analysis/AliasSetTracker.h
include/llvm/Analysis/BlockFrequencyImpl.h
@ -113,9 +114,8 @@ include/llvm/Analysis/CaptureTracking.h
include/llvm/Analysis/CodeMetrics.h
include/llvm/Analysis/ConstantFolding.h
include/llvm/Analysis/ConstantsScanner.h
include/llvm/Analysis/DIBuilder.h
include/llvm/Analysis/DOTGraphTraitsPass.h
include/llvm/Analysis/DebugInfo.h
include/llvm/Analysis/DependenceAnalysis.h
include/llvm/Analysis/DomPrinter.h
include/llvm/Analysis/DominanceFrontier.h
include/llvm/Analysis/DominatorInternals.h
@ -132,8 +132,8 @@ include/llvm/Analysis/LibCallAliasAnalysis.h
include/llvm/Analysis/LibCallSemantics.h
include/llvm/Analysis/Lint.h
include/llvm/Analysis/Loads.h
include/llvm/Analysis/LoopDependenceAnalysis.h
include/llvm/Analysis/LoopInfo.h
include/llvm/Analysis/LoopInfoImpl.h
include/llvm/Analysis/LoopIterator.h
include/llvm/Analysis/LoopPass.h
include/llvm/Analysis/MemoryBuiltins.h
@ -143,6 +143,8 @@ include/llvm/Analysis/Passes.h
include/llvm/Analysis/PathNumbering.h
include/llvm/Analysis/PathProfileInfo.h
include/llvm/Analysis/PostDominators.h
include/llvm/Analysis/ProfileDataLoader.h
include/llvm/Analysis/ProfileDataTypes.h
include/llvm/Analysis/ProfileInfo.h
include/llvm/Analysis/ProfileInfoLoader.h
include/llvm/Analysis/ProfileInfoTypes.h
@ -178,6 +180,7 @@ include/llvm/CodeGen/Analysis.h
include/llvm/CodeGen/AsmPrinter.h
include/llvm/CodeGen/CalcSpillWeights.h
include/llvm/CodeGen/CallingConvLower.h
include/llvm/CodeGen/CommandFlags.h
include/llvm/CodeGen/DFAPacketizer.h
include/llvm/CodeGen/EdgeBundles.h
include/llvm/CodeGen/FastISel.h
@ -221,6 +224,7 @@ include/llvm/CodeGen/MachineModuleInfo.h
include/llvm/CodeGen/MachineModuleInfoImpls.h
include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/MachinePassRegistry.h
include/llvm/CodeGen/MachinePostDominators.h
include/llvm/CodeGen/MachineRegisterInfo.h
include/llvm/CodeGen/MachineRelocation.h
include/llvm/CodeGen/MachineSSAUpdater.h
@ -232,14 +236,16 @@ include/llvm/CodeGen/PBQP/Heuristics/Briggs.h
include/llvm/CodeGen/PBQP/Math.h
include/llvm/CodeGen/PBQP/Solution.h
include/llvm/CodeGen/Passes.h
include/llvm/CodeGen/ProcessImplicitDefs.h
include/llvm/CodeGen/PseudoSourceValue.h
include/llvm/CodeGen/RegAllocPBQP.h
include/llvm/CodeGen/RegAllocRegistry.h
include/llvm/CodeGen/RegisterClassInfo.h
include/llvm/CodeGen/RegisterPressure.h
include/llvm/CodeGen/RegisterScavenging.h
include/llvm/CodeGen/ResourcePriorityQueue.h
include/llvm/CodeGen/RuntimeLibcalls.h
include/llvm/CodeGen/ScheduleDAG.h
include/llvm/CodeGen/ScheduleDAGILP.h
include/llvm/CodeGen/ScheduleDAGInstrs.h
include/llvm/CodeGen/ScheduleHazardRecognizer.h
include/llvm/CodeGen/SchedulerRegistry.h
@ -249,6 +255,7 @@ include/llvm/CodeGen/SelectionDAGISel.h
include/llvm/CodeGen/SelectionDAGNodes.h
include/llvm/CodeGen/SlotIndexes.h
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm/CodeGen/TargetSchedule.h
include/llvm/CodeGen/ValueTypes.h
include/llvm/CodeGen/ValueTypes.td
include/llvm/Config/AsmParsers.def
@ -259,24 +266,29 @@ include/llvm/Config/config.h
include/llvm/Config/llvm-config.h
include/llvm/Constant.h
include/llvm/Constants.h
include/llvm/DIBuilder.h
include/llvm/DataLayout.h
include/llvm/DebugInfo.h
include/llvm/DebugInfo/DIContext.h
include/llvm/DefaultPasses.h
include/llvm/DerivedTypes.h
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/ExecutionEngine/GenericValue.h
include/llvm/ExecutionEngine/IntelJITEventsWrapper.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/ObjectImage.h
include/llvm/ExecutionEngine/RuntimeDyld.h
include/llvm/Function.h
include/llvm/GVMaterializer.h
include/llvm/GlobalAlias.h
include/llvm/GlobalValue.h
include/llvm/GlobalVariable.h
include/llvm/IRBuilder.h
include/llvm/InitializePasses.h
include/llvm/InlineAsm.h
include/llvm/InstrTypes.h
@ -290,7 +302,8 @@ include/llvm/Intrinsics.td
include/llvm/IntrinsicsARM.td
include/llvm/IntrinsicsCellSPU.td
include/llvm/IntrinsicsHexagon.td
include/llvm/IntrinsicsPTX.td
include/llvm/IntrinsicsMips.td
include/llvm/IntrinsicsNVVM.td
include/llvm/IntrinsicsPowerPC.td
include/llvm/IntrinsicsX86.td
include/llvm/IntrinsicsXCore.td
@ -315,6 +328,7 @@ include/llvm/MC/MCDwarf.h
include/llvm/MC/MCELFObjectWriter.h
include/llvm/MC/MCELFSymbolFlags.h
include/llvm/MC/MCExpr.h
include/llvm/MC/MCFixedLenDisassembler.h
include/llvm/MC/MCFixup.h
include/llvm/MC/MCFixupKindInfo.h
include/llvm/MC/MCInst.h
@ -337,6 +351,7 @@ include/llvm/MC/MCParser/MCAsmParser.h
include/llvm/MC/MCParser/MCAsmParserExtension.h
include/llvm/MC/MCParser/MCParsedAsmOperand.h
include/llvm/MC/MCRegisterInfo.h
include/llvm/MC/MCSchedule.h
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionCOFF.h
include/llvm/MC/MCSectionELF.h
@ -352,6 +367,7 @@ include/llvm/MC/MCWinCOFFObjectWriter.h
include/llvm/MC/MachineLocation.h
include/llvm/MC/SectionKind.h
include/llvm/MC/SubtargetFeature.h
include/llvm/MDBuilder.h
include/llvm/Metadata.h
include/llvm/Module.h
include/llvm/Object/Archive.h
@ -363,6 +379,7 @@ include/llvm/Object/MachO.h
include/llvm/Object/MachOFormat.h
include/llvm/Object/MachOObject.h
include/llvm/Object/ObjectFile.h
include/llvm/Object/RelocVisitor.h
include/llvm/OperandTraits.h
include/llvm/Operator.h
include/llvm/Pass.h
@ -403,6 +420,7 @@ include/llvm/Support/Endian.h
include/llvm/Support/Errno.h
include/llvm/Support/ErrorHandling.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
@ -411,16 +429,17 @@ include/llvm/Support/GCOV.h
include/llvm/Support/GetElementPtrTypeIterator.h
include/llvm/Support/GraphWriter.h
include/llvm/Support/Host.h
include/llvm/Support/IRBuilder.h
include/llvm/Support/IRReader.h
include/llvm/Support/IncludeFile.h
include/llvm/Support/InstIterator.h
include/llvm/Support/InstVisitor.h
include/llvm/Support/IntegersSubset.h
include/llvm/Support/IntegersSubsetMapping.h
include/llvm/Support/LEB128.h
include/llvm/Support/LICENSE.TXT
include/llvm/Support/LeakDetector.h
include/llvm/Support/Locale.h
include/llvm/Support/LockFileManager.h
include/llvm/Support/MDBuilder.h
include/llvm/Support/MachO.h
include/llvm/Support/ManagedStatic.h
include/llvm/Support/MathExtras.h
@ -465,7 +484,6 @@ include/llvm/Support/Threading.h
include/llvm/Support/TimeValue.h
include/llvm/Support/Timer.h
include/llvm/Support/ToolOutputFile.h
include/llvm/Support/TypeBuilder.h
include/llvm/Support/Valgrind.h
include/llvm/Support/ValueHandle.h
include/llvm/Support/Win64EH.h
@ -479,17 +497,16 @@ include/llvm/SymbolTableListTraits.h
include/llvm/TableGen/Error.h
include/llvm/TableGen/Main.h
include/llvm/TableGen/Record.h
include/llvm/TableGen/TableGenAction.h
include/llvm/TableGen/StringMatcher.h
include/llvm/TableGen/TableGenBackend.h
include/llvm/Target/Mangler.h
include/llvm/Target/Target.td
include/llvm/Target/TargetCallingConv.h
include/llvm/Target/TargetCallingConv.td
include/llvm/Target/TargetData.h
include/llvm/Target/TargetELFWriterInfo.h
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
@ -502,6 +519,8 @@ include/llvm/Target/TargetSchedule.td
include/llvm/Target/TargetSelectionDAG.td
include/llvm/Target/TargetSelectionDAGInfo.h
include/llvm/Target/TargetSubtargetInfo.h
include/llvm/Target/TargetTransformImpl.h
include/llvm/TargetTransformInfo.h
include/llvm/Transforms/IPO.h
include/llvm/Transforms/IPO/InlinerPass.h
include/llvm/Transforms/IPO/PassManagerBuilder.h
@ -510,20 +529,25 @@ include/llvm/Transforms/Scalar.h
include/llvm/Transforms/Utils/AddrModeMatcher.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/FunctionUtils.h
include/llvm/Transforms/Utils/CodeExtractor.h
include/llvm/Transforms/Utils/IntegerDivision.h
include/llvm/Transforms/Utils/Local.h
include/llvm/Transforms/Utils/ModuleUtils.h
include/llvm/Transforms/Utils/PromoteMemToReg.h
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/UnifyFunctionExitNodes.h
include/llvm/Transforms/Utils/UnrollLoop.h
include/llvm/Transforms/Utils/ValueMapper.h
include/llvm/Transforms/Vectorize.h
include/llvm/Type.h
include/llvm/TypeBuilder.h
include/llvm/TypeFinder.h
include/llvm/Use.h
include/llvm/User.h
include/llvm/Value.h
@ -582,11 +606,11 @@ lib/libLLVMMipsCodeGen.a
lib/libLLVMMipsDesc.a
lib/libLLVMMipsDisassembler.a
lib/libLLVMMipsInfo.a
lib/libLLVMNVPTXAsmPrinter.a
lib/libLLVMNVPTXCodeGen.a
lib/libLLVMNVPTXDesc.a
lib/libLLVMNVPTXInfo.a
lib/libLLVMObject.a
lib/libLLVMPTXAsmPrinter.a
lib/libLLVMPTXCodeGen.a
lib/libLLVMPTXDesc.a
lib/libLLVMPTXInfo.a
lib/libLLVMPowerPCAsmPrinter.a
lib/libLLVMPowerPCCodeGen.a
lib/libLLVMPowerPCDesc.a
@ -619,120 +643,193 @@ lib/libLTO.so
lib/libprofile_rt.a
lib/libprofile_rt.so
%%PORTDOCS%%%%DOCSDIR%%/html.tar.gz
%%PORTDOCS%%%%DOCSDIR%%/html/.buildinfo
%%PORTDOCS%%%%DOCSDIR%%/html/AliasAnalysis.html
%%PORTDOCS%%%%DOCSDIR%%/html/AliasAnalysis.txt
%%PORTDOCS%%%%DOCSDIR%%/html/Atomics.html
%%PORTDOCS%%%%DOCSDIR%%/html/Atomics.txt
%%PORTDOCS%%%%DOCSDIR%%/html/BitCodeFormat.html
%%PORTDOCS%%%%DOCSDIR%%/html/BitCodeFormat.txt
%%PORTDOCS%%%%DOCSDIR%%/html/BranchWeightMetadata.html
%%PORTDOCS%%%%DOCSDIR%%/html/BranchWeightMetadata.txt
%%PORTDOCS%%%%DOCSDIR%%/html/Bugpoint.html
%%PORTDOCS%%%%DOCSDIR%%/html/Bugpoint.txt
%%PORTDOCS%%%%DOCSDIR%%/html/CMake.html
%%PORTDOCS%%%%DOCSDIR%%/html/CMake.txt
%%PORTDOCS%%%%DOCSDIR%%/html/CodeGenerator.html
%%PORTDOCS%%%%DOCSDIR%%/html/CodeGenerator.txt
%%PORTDOCS%%%%DOCSDIR%%/html/CodingStandards.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/FileCheck.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/bugpoint.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/index.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/lit.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llc.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/lli.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-ar.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-as.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-bcanalyzer.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-build.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-config.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-cov.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-diff.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-dis.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-extract.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-ld.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-link.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-nm.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-prof.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-ranlib.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-stress.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/manpage.css
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/opt.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/tblgen.html
%%PORTDOCS%%%%DOCSDIR%%/html/CodingStandards.txt
%%PORTDOCS%%%%DOCSDIR%%/html/CommandLine.html
%%PORTDOCS%%%%DOCSDIR%%/html/CommandLine.txt
%%PORTDOCS%%%%DOCSDIR%%/html/CompilerWriterInfo.html
%%PORTDOCS%%%%DOCSDIR%%/html/CompilerWriterInfo.txt
%%PORTDOCS%%%%DOCSDIR%%/html/DebuggingJITedCode.html
%%PORTDOCS%%%%DOCSDIR%%/html/DebuggingJITedCode.txt
%%PORTDOCS%%%%DOCSDIR%%/html/DeveloperPolicy.html
%%PORTDOCS%%%%DOCSDIR%%/html/DeveloperPolicy.txt
%%PORTDOCS%%%%DOCSDIR%%/html/ExceptionHandling.html
%%PORTDOCS%%%%DOCSDIR%%/html/ExceptionHandling.txt
%%PORTDOCS%%%%DOCSDIR%%/html/ExtendingLLVM.html
%%PORTDOCS%%%%DOCSDIR%%/html/ExtendingLLVM.txt
%%PORTDOCS%%%%DOCSDIR%%/html/FAQ.html
%%PORTDOCS%%%%DOCSDIR%%/html/FAQ.txt
%%PORTDOCS%%%%DOCSDIR%%/html/FileCheck.html
%%PORTDOCS%%%%DOCSDIR%%/html/FileCheck.txt
%%PORTDOCS%%%%DOCSDIR%%/html/GCCFEBuildInstrs.html
%%PORTDOCS%%%%DOCSDIR%%/html/GarbageCollection.html
%%PORTDOCS%%%%DOCSDIR%%/html/GetElementPtr.html
%%PORTDOCS%%%%DOCSDIR%%/html/GetElementPtr.txt
%%PORTDOCS%%%%DOCSDIR%%/html/GettingStarted.html
%%PORTDOCS%%%%DOCSDIR%%/html/GettingStarted.txt
%%PORTDOCS%%%%DOCSDIR%%/html/GettingStartedVS.html
%%PORTDOCS%%%%DOCSDIR%%/html/GettingStartedVS.txt
%%PORTDOCS%%%%DOCSDIR%%/html/GoldPlugin.html
%%PORTDOCS%%%%DOCSDIR%%/html/GoldPlugin.txt
%%PORTDOCS%%%%DOCSDIR%%/html/HowToAddABuilder.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToAddABuilder.txt
%%PORTDOCS%%%%DOCSDIR%%/html/HowToBuildOnARM.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToBuildOnARM.txt
%%PORTDOCS%%%%DOCSDIR%%/html/HowToReleaseLLVM.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToSetUpLLVMStyleRTTI.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToSetUpLLVMStyleRTTI.txt
%%PORTDOCS%%%%DOCSDIR%%/html/HowToSubmitABug.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToSubmitABug.txt
%%PORTDOCS%%%%DOCSDIR%%/html/HowToUseInstrMappings.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToUseInstrMappings.txt
%%PORTDOCS%%%%DOCSDIR%%/html/LLVMBuild.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl1.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl2.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl3.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl4.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl5-cfg.png
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl5.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl6.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl7.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangImpl8.html
%%PORTDOCS%%%%DOCSDIR%%/html/LangRef.html
%%PORTDOCS%%%%DOCSDIR%%/html/Lexicon.html
%%PORTDOCS%%%%DOCSDIR%%/html/Lexicon.txt
%%PORTDOCS%%%%DOCSDIR%%/html/LinkTimeOptimization.html
%%PORTDOCS%%%%DOCSDIR%%/html/LinkTimeOptimization.txt
%%PORTDOCS%%%%DOCSDIR%%/html/MakefileGuide.html
%%PORTDOCS%%%%DOCSDIR%%/html/MakefileGuide.txt
%%PORTDOCS%%%%DOCSDIR%%/html/MarkedUpDisassembly.html
%%PORTDOCS%%%%DOCSDIR%%/html/MarkedUpDisassembly.txt
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl1.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl2.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl3.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl4.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl5.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl6.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl7.html
%%PORTDOCS%%%%DOCSDIR%%/html/OCamlLangImpl8.html
%%PORTDOCS%%%%DOCSDIR%%/html/Packaging.html
%%PORTDOCS%%%%DOCSDIR%%/html/Packaging.txt
%%PORTDOCS%%%%DOCSDIR%%/html/Passes.html
%%PORTDOCS%%%%DOCSDIR%%/html/Phabricator.html
%%PORTDOCS%%%%DOCSDIR%%/html/Phabricator.txt
%%PORTDOCS%%%%DOCSDIR%%/html/ProgrammersManual.html
%%PORTDOCS%%%%DOCSDIR%%/html/Projects.html
%%PORTDOCS%%%%DOCSDIR%%/html/Projects.txt
%%PORTDOCS%%%%DOCSDIR%%/html/ReleaseNotes.html
%%PORTDOCS%%%%DOCSDIR%%/html/SegmentedStacks.html
%%PORTDOCS%%%%DOCSDIR%%/html/SegmentedStacks.txt
%%PORTDOCS%%%%DOCSDIR%%/html/SourceLevelDebugging.html
%%PORTDOCS%%%%DOCSDIR%%/html/SphinxQuickstartTemplate.html
%%PORTDOCS%%%%DOCSDIR%%/html/SphinxQuickstartTemplate.txt
%%PORTDOCS%%%%DOCSDIR%%/html/SystemLibrary.html
%%PORTDOCS%%%%DOCSDIR%%/html/TableGenFundamentals.html
%%PORTDOCS%%%%DOCSDIR%%/html/TableGenFundamentals.txt
%%PORTDOCS%%%%DOCSDIR%%/html/TestSuiteMakefileGuide.html
%%PORTDOCS%%%%DOCSDIR%%/html/TestingGuide.html
%%PORTDOCS%%%%DOCSDIR%%/html/WritingAnLLVMBackend.html
%%PORTDOCS%%%%DOCSDIR%%/html/WritingAnLLVMPass.html
%%PORTDOCS%%%%DOCSDIR%%/html/ajax-loader.gif
%%PORTDOCS%%%%DOCSDIR%%/html/basic.css
%%PORTDOCS%%%%DOCSDIR%%/html/bugpoint.html
%%PORTDOCS%%%%DOCSDIR%%/html/bugpoint.txt
%%PORTDOCS%%%%DOCSDIR%%/html/comment-bright.png
%%PORTDOCS%%%%DOCSDIR%%/html/comment-close.png
%%PORTDOCS%%%%DOCSDIR%%/html/comment.png
%%PORTDOCS%%%%DOCSDIR%%/html/contents.png
%%PORTDOCS%%%%DOCSDIR%%/html/design_and_overview.html
%%PORTDOCS%%%%DOCSDIR%%/html/design_and_overview.txt
%%PORTDOCS%%%%DOCSDIR%%/html/development_process.html
%%PORTDOCS%%%%DOCSDIR%%/html/development_process.txt
%%PORTDOCS%%%%DOCSDIR%%/html/doctools.js
%%PORTDOCS%%%%DOCSDIR%%/html/down-pressed.png
%%PORTDOCS%%%%DOCSDIR%%/html/down.png
%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.css
%%PORTDOCS%%%%DOCSDIR%%/html/img/Debugging.gif
%%PORTDOCS%%%%DOCSDIR%%/html/img/libdeps.gif
%%PORTDOCS%%%%DOCSDIR%%/html/img/lines.gif
%%PORTDOCS%%%%DOCSDIR%%/html/img/objdeps.gif
%%PORTDOCS%%%%DOCSDIR%%/html/img/venusflytrap.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/file.png
%%PORTDOCS%%%%DOCSDIR%%/html/genindex.html
%%PORTDOCS%%%%DOCSDIR%%/html/index.html
%%PORTDOCS%%%%DOCSDIR%%/html/index.txt
%%PORTDOCS%%%%DOCSDIR%%/html/jquery.js
%%PORTDOCS%%%%DOCSDIR%%/html/lines.gif
%%PORTDOCS%%%%DOCSDIR%%/html/lit.html
%%PORTDOCS%%%%DOCSDIR%%/html/lit.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llc.html
%%PORTDOCS%%%%DOCSDIR%%/html/llc.txt
%%PORTDOCS%%%%DOCSDIR%%/html/lli.html
%%PORTDOCS%%%%DOCSDIR%%/html/lli.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-ar.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-ar.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-as.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-as.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-bcanalyzer.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-bcanalyzer.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-build.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-build.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-config.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-config.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-cov.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-cov.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-diff.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-diff.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-dis.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-dis.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-extract.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-extract.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-link.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-link.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-nm.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-nm.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-prof.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-prof.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-ranlib.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-ranlib.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-stress.html
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-stress.txt
%%PORTDOCS%%%%DOCSDIR%%/html/llvm-theme.css
%%PORTDOCS%%%%DOCSDIR%%/html/llvm.css
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl1.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl2.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl3.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl4.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl5-cfg.png
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl5.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl6.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl7.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl8.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl1.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl2.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl3.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl4.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl5.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl6.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl7.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl8.html
%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/index.html
%%PORTDOCS%%%%DOCSDIR%%/ps/FileCheck.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/bugpoint.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/lit.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llc.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/lli.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-ar.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-as.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-bcanalyzer.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-build.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-config.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-cov.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-diff.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-dis.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-extract.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-ld.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-link.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-nm.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-prof.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-ranlib.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-stress.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/opt.ps
%%PORTDOCS%%%%DOCSDIR%%/ps/tblgen.ps
%%PORTDOCS%%%%DOCSDIR%%/html/logo.png
%%PORTDOCS%%%%DOCSDIR%%/html/mailing_lists.html
%%PORTDOCS%%%%DOCSDIR%%/html/mailing_lists.txt
%%PORTDOCS%%%%DOCSDIR%%/html/minus.png
%%PORTDOCS%%%%DOCSDIR%%/html/navigation.png
%%PORTDOCS%%%%DOCSDIR%%/html/objects.inv
%%PORTDOCS%%%%DOCSDIR%%/html/opt.html
%%PORTDOCS%%%%DOCSDIR%%/html/opt.txt
%%PORTDOCS%%%%DOCSDIR%%/html/plus.png
%%PORTDOCS%%%%DOCSDIR%%/html/programming.html
%%PORTDOCS%%%%DOCSDIR%%/html/programming.txt
%%PORTDOCS%%%%DOCSDIR%%/html/pygments.css
%%PORTDOCS%%%%DOCSDIR%%/html/search.html
%%PORTDOCS%%%%DOCSDIR%%/html/searchindex.js
%%PORTDOCS%%%%DOCSDIR%%/html/searchtools.js
%%PORTDOCS%%%%DOCSDIR%%/html/subsystems.html
%%PORTDOCS%%%%DOCSDIR%%/html/subsystems.txt
%%PORTDOCS%%%%DOCSDIR%%/html/tblgen.html
%%PORTDOCS%%%%DOCSDIR%%/html/tblgen.txt
%%PORTDOCS%%%%DOCSDIR%%/html/underscore.js
%%PORTDOCS%%%%DOCSDIR%%/html/up-pressed.png
%%PORTDOCS%%%%DOCSDIR%%/html/up.png
%%PORTDOCS%%%%DOCSDIR%%/html/userguides.html
%%PORTDOCS%%%%DOCSDIR%%/html/userguides.txt
%%PORTDOCS%%%%DOCSDIR%%/html/websupport.js
%%PORTDOCS%%%%DOCSDIR%%/html/yaml2obj.html
%%PORTDOCS%%%%DOCSDIR%%/html/yaml2obj.txt
@dirrm include/llvm/Transforms/Utils
@dirrm include/llvm/Transforms/IPO
@dirrm include/llvm/Transforms
@ -755,9 +852,5 @@ lib/libprofile_rt.so
@dirrm include/llvm-c/Transforms
@dirrm include/llvm-c
@dirrm include/llvm
%%PORTDOCS%%@dirrm %%DOCSDIR%%/ps
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/tutorial
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/img
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/CommandGuide
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%

View File

@ -6,8 +6,7 @@
#
PORTNAME= clang
PORTVERSION= 3.1
PORTREVISION= 2
PORTVERSION= 3.2
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
@ -18,7 +17,7 @@ EXTRACT_ONLY= ${LLVM_SOURCE}
MAINTAINER= brooks@FreeBSD.org
COMMENT= C, Objective-C, and (alpha-quality) C++ compiler
CONFLICTS= clang-devel-[23]*
CONFLICTS= clang-devel-[23]* clang31-*
CLANG_NAME= clang-${PORTVERSION}.src
CLANG_SOURCE= ${CLANG_NAME}${EXTRACT_SUFX}
@ -93,6 +92,8 @@ post-extract:
${MV} ${CLANG_NAME} clang
post-patch:
${REINPLACE_CMD} -e 's|${PORTVERSION}svn|${PORTVERSION}|g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \
${WRKSRC}/Makefile.config.in
${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \
@ -113,10 +114,8 @@ pre-build:
${LN} -sf ${LOCALBASE}/lib/libLLVMSupport.a ${WRKSRC}/${RELTYPE}/lib/
cd ${WRKSRC}/utils/unittest && ${GMAKE}
.if empty(PORT_OPTIONS:MDOCS)
post-build:
@cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1
.endif
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
@ -133,12 +132,8 @@ post-install:
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/scanview.css ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js ${DATADIR}
.if empty(PORT_OPTIONS:MDOCS)
@${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \
${MANPREFIX}/man/man1/
.else
@${RMDIR} ${DOCSDIR}/html/img
.endif
TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)'
regression-test: ${BUILD_COOKIE}

View File

@ -1,4 +1,4 @@
SHA256 (clang-3.1.src.tar.gz) = ff63e215dcd3e2838ffdea38502f8d35bab17e487f3c3799579961e452d5a786
SIZE (clang-3.1.src.tar.gz) = 8158418
SHA256 (llvm-3.1.src.tar.gz) = 1ea05135197b5400c1f88d00ff280d775ce778f8f9ea042e25a1e1e734a4b9ab
SIZE (llvm-3.1.src.tar.gz) = 11077429
SHA256 (clang-3.2.src.tar.gz) = 2aaaf03f7c0f6b16fe97ecc81247dc2bf2d4bec7620a77cc74670b7e07ff5658
SIZE (clang-3.2.src.tar.gz) = 8805311
SHA256 (llvm-3.2.src.tar.gz) = 125090c4d26740f1d5e9838477c931ed7d9ad70d599ba265f46f3a42cb066343
SIZE (llvm-3.2.src.tar.gz) = 12275252

View File

@ -0,0 +1,17 @@
$FreeBSD$
--- include/llvm/ADT/Triple.h.orig
+++ include/llvm/ADT/Triple.h
@@ -296,6 +296,11 @@
return isMacOSX() || getOS() == Triple::IOS;
}
+ /// isOSFreeBSD - Is this FreeBSD OS
+ bool isOSFreeBSD() const {
+ return getOS() == Triple::FreeBSD;
+ }
+
/// \brief Tests for either Cygwin or MinGW OS
bool isOSCygMing() const {
return getOS() == Triple::Cygwin || getOS() == Triple::MinGW32;

View File

@ -3,13 +3,21 @@ $FreeBSD$
--- tools/clang/include/clang/Analysis/Analyses/FormatString.h.orig
+++ tools/clang/include/clang/Analysis/Analyses/FormatString.h
@@ -143,6 +143,10 @@
@@ -117,7 +117,7 @@
// C99 conversion specifiers.
cArg,
dArg,
- DArg, // Apple extension
+ DArg, // Apple and FreeBSD extension
iArg,
IntArgBeg = dArg, IntArgEnd = iArg,
@@ -148,6 +148,9 @@
// ** Printf-specific **
+ // FreeBSD specific specifiers
+ bArg,
+ DArg,
+
// Objective-C specific specifiers.
ObjCObjArg, // '@'

View File

@ -3,24 +3,46 @@ $FreeBSD$
--- tools/clang/lib/Analysis/PrintfFormatString.cpp.orig
+++ tools/clang/lib/Analysis/PrintfFormatString.cpp
@@ -192,11 +192,20 @@
@@ -198,9 +198,10 @@
case '@': k = ConversionSpecifier::ObjCObjArg; break;
// Glibc specific.
case 'm': k = ConversionSpecifier::PrintErrno; break;
+ // FreeBSD format extensions
+ case 'b': k = ConversionSpecifier::bArg; break; /* check for int and then char * */
+ case 'r': k = ConversionSpecifier::xArg; break;
+ case 'y': k = ConversionSpecifier::iArg; break;
+ case 'D': k = ConversionSpecifier::DArg; break; /* check for u_char * pointer and a char * string */
- // Apple-specific
+
+ // Apple-specific (and one FreeBSD)
case 'D':
- if (Target.getTriple().isOSDarwin())
+ if (Target.getTriple().isOSDarwin() || Target.getTriple().isOSFreeBSD())
k = ConversionSpecifier::DArg;
break;
case 'O':
@@ -211,11 +212,29 @@
if (Target.getTriple().isOSDarwin())
k = ConversionSpecifier::UArg;
break;
+
+ // FreeBSD-specific
+ case 'b':
+ if (Target.getTriple().isOSFreeBSD())
+ k = ConversionSpecifier::bArg;
+ break;
+ case 'r':
+ if (Target.getTriple().isOSFreeBSD())
+ k = ConversionSpecifier::xArg;
+ break;
+ case 'y':
+ if (Target.getTriple().isOSFreeBSD())
+ k = ConversionSpecifier::iArg;
+ break;
}
PrintfConversionSpecifier CS(conversionPosition, k);
FS.setConversionSpecifier(CS);
if (CS.consumesDataArgument() && !FS.usesPositionalArg())
FS.setArgIndex(argIndex++);
+ // FreeBSD extension
+ if (k == ConversionSpecifier::bArg || k == ConversionSpecifier::DArg)
+ argIndex++;
+ if (Target.getTriple().isOSFreeBSD() && (k == ConversionSpecifier::bArg ||
+ k == ConversionSpecifier::DArg))
+ argIndex++;
if (k == ConversionSpecifier::InvalidSpecifier) {
// Assume the conversion takes one argument.

View File

@ -16,8 +16,8 @@ $FreeBSD$
+ // format specifier.
+ const Expr *Ex = getDataArg(argIndex);
+ QualType type = (CS.getKind() == ConversionSpecifier::bArg) ? S.Context.IntTy : S.Context.getPointerType(S.Context.UnsignedCharTy);
+ //const analyze_printf::ArgTypeResult &ATR = S.Context.IntTy;
+ const analyze_printf::ArgTypeResult &ATR = type;
+ //const analyze_printf::ArgType &ATR = S.Context.IntTy;
+ const analyze_printf::ArgType &ATR = type;
+ if (ATR.isValid() && !ATR.matchesType(S.Context, Ex->getType()))
+ S.Diag(getLocationOfByte(CS.getStart()),
+ diag::warn_printf_conversion_argument_type_mismatch)
@ -28,7 +28,7 @@ $FreeBSD$
+ // Now type check the data expression that matches the
+ // format specifier.
+ Ex = getDataArg(argIndex + 1);
+ const analyze_printf::ArgTypeResult &ATR2 = ArgTypeResult::CStrTy;
+ const analyze_printf::ArgType &ATR2 = ArgType::CStrTy;
+ if (ATR2.isValid() && !ATR2.matchesType(S.Context, Ex->getType()))
+ S.Diag(getLocationOfByte(CS.getStart()),
+ diag::warn_printf_conversion_argument_type_mismatch)

View File

@ -1,37 +0,0 @@
$FreeBSD$
--- tools/clang/lib/Sema/SemaDeclCXX.cpp.orig
+++ tools/clang/lib/Sema/SemaDeclCXX.cpp
@@ -10795,14 +10795,23 @@
void Sema::MarkVirtualMembersReferenced(SourceLocation Loc,
const CXXRecordDecl *RD) {
- for (CXXRecordDecl::method_iterator i = RD->method_begin(),
- e = RD->method_end(); i != e; ++i) {
- CXXMethodDecl *MD = *i;
-
- // C++ [basic.def.odr]p2:
- // [...] A virtual member function is used if it is not pure. [...]
- if (MD->isVirtual() && !MD->isPure())
- MarkFunctionReferenced(Loc, MD);
+ // Mark all functions which will appear in RD's vtable as used.
+ CXXFinalOverriderMap FinalOverriders;
+ RD->getFinalOverriders(FinalOverriders);
+ for (CXXFinalOverriderMap::const_iterator I = FinalOverriders.begin(),
+ E = FinalOverriders.end();
+ I != E; ++I) {
+ for (OverridingMethods::const_iterator OI = I->second.begin(),
+ OE = I->second.end();
+ OI != OE; ++OI) {
+ assert(OI->second.size() > 0 && "no final overrider");
+ CXXMethodDecl *Overrider = OI->second.front().Method;
+
+ // C++ [basic.def.odr]p2:
+ // [...] A virtual member function is used if it is not pure. [...]
+ if (!Overrider->isPure())
+ MarkFunctionReferenced(Loc, Overrider);
+ }
}
// Only classes that have virtual bases need a VTT.

View File

@ -6,7 +6,10 @@ bin/clang++
bin/clang-tblgen
bin/scan-build
bin/scan-view
include/clang-c/CXCompilationDatabase.h
include/clang-c/CXString.h
include/clang-c/Index.h
include/clang-c/Platform.h
include/clang/ARCMigrate/ARCMT.h
include/clang/ARCMigrate/ARCMTActions.h
include/clang/ARCMigrate/FileRemapper.h
@ -26,6 +29,18 @@ include/clang/AST/BuiltinTypes.def
include/clang/AST/CXXInheritance.h
include/clang/AST/CanonicalType.h
include/clang/AST/CharUnits.h
include/clang/AST/Comment.h
include/clang/AST/CommentBriefParser.h
include/clang/AST/CommentCommandInfo.inc
include/clang/AST/CommentCommandTraits.h
include/clang/AST/CommentDiagnostic.h
include/clang/AST/CommentHTMLTags.inc
include/clang/AST/CommentHTMLTagsProperties.inc
include/clang/AST/CommentLexer.h
include/clang/AST/CommentNodes.inc
include/clang/AST/CommentParser.h
include/clang/AST/CommentSema.h
include/clang/AST/CommentVisitor.h
include/clang/AST/Decl.h
include/clang/AST/DeclAccessPair.h
include/clang/AST/DeclBase.h
@ -53,6 +68,7 @@ include/clang/AST/NestedNameSpecifier.h
include/clang/AST/OperationKinds.h
include/clang/AST/ParentMap.h
include/clang/AST/PrettyPrinter.h
include/clang/AST/RawCommentList.h
include/clang/AST/RecordLayout.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/Redeclarable.h
@ -76,6 +92,11 @@ include/clang/AST/TypeVisitor.h
include/clang/AST/UnresolvedSet.h
include/clang/AST/VTTBuilder.h
include/clang/AST/VTableBuilder.h
include/clang/ASTMatchers/ASTMatchFinder.h
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
include/clang/ASTMatchers/ASTMatchersMacros.h
include/clang/ASTMatchers/ASTTypeTraits.h
include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h
include/clang/Analysis/Analyses/Dominators.h
include/clang/Analysis/Analyses/FormatString.h
@ -91,6 +112,7 @@ include/clang/Analysis/CFG.h
include/clang/Analysis/CFGStmtMap.h
include/clang/Analysis/CallGraph.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
@ -108,14 +130,16 @@ include/clang/Basic/Builtins.def
include/clang/Basic/Builtins.h
include/clang/Basic/BuiltinsARM.def
include/clang/Basic/BuiltinsHexagon.def
include/clang/Basic/BuiltinsMips.def
include/clang/Basic/BuiltinsNVPTX.def
include/clang/Basic/BuiltinsPPC.def
include/clang/Basic/BuiltinsPTX.def
include/clang/Basic/BuiltinsX86.def
include/clang/Basic/ConvertUTF.h
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticASTKinds.inc
include/clang/Basic/DiagnosticAnalysisKinds.inc
include/clang/Basic/DiagnosticCategories.h
include/clang/Basic/DiagnosticCommentKinds.inc
include/clang/Basic/DiagnosticCommonKinds.inc
include/clang/Basic/DiagnosticDriverKinds.inc
include/clang/Basic/DiagnosticFrontendKinds.inc
@ -123,6 +147,8 @@ include/clang/Basic/DiagnosticGroups.inc
include/clang/Basic/DiagnosticIDs.h
include/clang/Basic/DiagnosticIndexName.inc
include/clang/Basic/DiagnosticLexKinds.inc
include/clang/Basic/DiagnosticOptions.def
include/clang/Basic/DiagnosticOptions.h
include/clang/Basic/DiagnosticParseKinds.inc
include/clang/Basic/DiagnosticSemaKinds.inc
include/clang/Basic/DiagnosticSerializationKinds.inc
@ -139,6 +165,7 @@ include/clang/Basic/LangOptions.h
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
@ -146,6 +173,7 @@ include/clang/Basic/OperatorKinds.def
include/clang/Basic/OperatorKinds.h
include/clang/Basic/PartialDiagnostic.h
include/clang/Basic/PrettyStackTrace.h
include/clang/Basic/Sanitizers.def
include/clang/Basic/SourceLocation.h
include/clang/Basic/SourceManager.h
include/clang/Basic/SourceManagerInternals.h
@ -172,12 +200,10 @@ include/clang/Driver/ArgList.h
include/clang/Driver/CC1AsOptions.h
include/clang/Driver/CC1AsOptions.inc
include/clang/Driver/CC1Options.h
include/clang/Driver/CC1Options.inc
include/clang/Driver/Compilation.h
include/clang/Driver/Driver.h
include/clang/Driver/DriverDiagnostic.h
include/clang/Driver/Job.h
include/clang/Driver/ObjCRuntime.h
include/clang/Driver/OptSpecifier.h
include/clang/Driver/OptTable.h
include/clang/Driver/Option.h
@ -196,30 +222,26 @@ include/clang/Edit/FileOffset.h
include/clang/Edit/Rewriters.h
include/clang/Frontend/ASTConsumers.h
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.def
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
include/clang/Frontend/FrontendOptions.h
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
@ -234,6 +256,7 @@ include/clang/Lex/DirectoryLookup.h
include/clang/Lex/ExternalPreprocessorSource.h
include/clang/Lex/HeaderMap.h
include/clang/Lex/HeaderSearch.h
include/clang/Lex/HeaderSearchOptions.h
include/clang/Lex/LexDiagnostic.h
include/clang/Lex/Lexer.h
include/clang/Lex/LiteralSupport.h
@ -242,12 +265,14 @@ include/clang/Lex/ModuleLoader.h
include/clang/Lex/ModuleMap.h
include/clang/Lex/MultipleIncludeOpt.h
include/clang/Lex/PPCallbacks.h
include/clang/Lex/PPMutationListener.h
include/clang/Lex/PTHLexer.h
include/clang/Lex/PTHManager.h
include/clang/Lex/Pragma.h
include/clang/Lex/PreprocessingRecord.h
include/clang/Lex/Preprocessor.h
include/clang/Lex/PreprocessorLexer.h
include/clang/Lex/PreprocessorOptions.h
include/clang/Lex/ScratchBuffer.h
include/clang/Lex/Token.h
include/clang/Lex/TokenConcatenation.h
@ -256,15 +281,15 @@ include/clang/Parse/AttrLateParsed.inc
include/clang/Parse/ParseAST.h
include/clang/Parse/ParseDiagnostic.h
include/clang/Parse/Parser.h
include/clang/Rewrite/ASTConsumers.h
include/clang/Rewrite/DeltaTree.h
include/clang/Rewrite/FixItRewriter.h
include/clang/Rewrite/FrontendActions.h
include/clang/Rewrite/HTMLRewrite.h
include/clang/Rewrite/RewriteRope.h
include/clang/Rewrite/Rewriter.h
include/clang/Rewrite/Rewriters.h
include/clang/Rewrite/TokenRewriter.h
include/clang/Rewrite/Core/DeltaTree.h
include/clang/Rewrite/Core/HTMLRewrite.h
include/clang/Rewrite/Core/RewriteRope.h
include/clang/Rewrite/Core/Rewriter.h
include/clang/Rewrite/Core/TokenRewriter.h
include/clang/Rewrite/Frontend/ASTConsumers.h
include/clang/Rewrite/Frontend/FixItRewriter.h
include/clang/Rewrite/Frontend/FrontendActions.h
include/clang/Rewrite/Frontend/Rewriters.h
include/clang/Sema/AnalysisBasedWarnings.h
include/clang/Sema/AttrParsedAttrKinds.inc
include/clang/Sema/AttrParsedAttrList.inc
@ -272,6 +297,7 @@ include/clang/Sema/AttrTemplateInstantiate.inc
include/clang/Sema/AttributeList.h
include/clang/Sema/CXXFieldCollector.h
include/clang/Sema/CodeCompleteConsumer.h
include/clang/Sema/CodeCompleteOptions.h
include/clang/Sema/DeclSpec.h
include/clang/Sema/DelayedDiagnostic.h
include/clang/Sema/Designator.h
@ -280,6 +306,7 @@ include/clang/Sema/IdentifierResolver.h
include/clang/Sema/Initialization.h
include/clang/Sema/LocInfoType.h
include/clang/Sema/Lookup.h
include/clang/Sema/MultiplexExternalSemaSource.h
include/clang/Sema/ObjCMethodList.h
include/clang/Sema/Overload.h
include/clang/Sema/Ownership.h
@ -308,8 +335,9 @@ include/clang/Serialization/ModuleManager.h
include/clang/Serialization/SerializationDiagnostic.h
include/clang/StaticAnalyzer/Checkers/ClangCheckers.h
include/clang/StaticAnalyzer/Checkers/CommonBugCategories.h
include/clang/StaticAnalyzer/Checkers/DereferenceChecker.h
include/clang/StaticAnalyzer/Checkers/LocalCheckers.h
include/clang/StaticAnalyzer/Core/Analyses.def
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h
include/clang/StaticAnalyzer/Core/BugReporter/BugType.h
@ -319,19 +347,21 @@ include/clang/StaticAnalyzer/Core/CheckerManager.h
include/clang/StaticAnalyzer/Core/CheckerOptInfo.h
include/clang/StaticAnalyzer/Core/CheckerRegistry.h
include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h
include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h
include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h
include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h
include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.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/FunctionSummary.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
@ -347,8 +377,18 @@ 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
include/clang/Tooling/ArgumentsAdjusters.h
include/clang/Tooling/CommonOptionsParser.h
include/clang/Tooling/CompilationDatabase.h
include/clang/Tooling/CompilationDatabasePluginRegistry.h
include/clang/Tooling/FileMatchTrie.h
include/clang/Tooling/JSONCompilationDatabase.h
include/clang/Tooling/Refactoring.h
include/clang/Tooling/RefactoringCallbacks.h
include/clang/Tooling/Tooling.h
lib/clang/%%PORTVERSION%%/include/__wmmintrin_aes.h
lib/clang/%%PORTVERSION%%/include/__wmmintrin_pclmul.h
lib/clang/%%PORTVERSION%%/include/ammintrin.h
lib/clang/%%PORTVERSION%%/include/arm_neon.h
lib/clang/%%PORTVERSION%%/include/emmintrin.h
lib/clang/%%PORTVERSION%%/include/immintrin.h
@ -366,6 +406,7 @@ lib/libclang.a
lib/libclang.so
lib/libclangARCMigrate.a
lib/libclangAST.a
lib/libclangASTMatchers.a
lib/libclangAnalysis.a
lib/libclangBasic.a
lib/libclangCodeGen.a
@ -375,7 +416,8 @@ lib/libclangFrontend.a
lib/libclangFrontendTool.a
lib/libclangLex.a
lib/libclangParse.a
lib/libclangRewrite.a
lib/libclangRewriteCore.a
lib/libclangRewriteFrontend.a
lib/libclangSema.a
lib/libclangSerialization.a
lib/libclangStaticAnalyzerCheckers.a
@ -388,13 +430,24 @@ lib/libclangTooling.a
%%PORTDOCS%%%%DOCSDIR%%/html/AddressSanitizer.html
%%PORTDOCS%%%%DOCSDIR%%/html/AnalyzerRegions.html
%%PORTDOCS%%%%DOCSDIR%%/html/AutomaticReferenceCounting.html
%%PORTDOCS%%%%DOCSDIR%%/html/ClangPlugins.html
%%PORTDOCS%%%%DOCSDIR%%/html/ClangTools.html
%%PORTDOCS%%%%DOCSDIR%%/html/DriverInternals.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowToSetupToolingForLLVM.html
%%PORTDOCS%%%%DOCSDIR%%/html/InternalsManual.html
%%PORTDOCS%%%%DOCSDIR%%/html/IntroductionToTheClangAST.html
%%PORTDOCS%%%%DOCSDIR%%/html/JSONCompilationDatabase.html
%%PORTDOCS%%%%DOCSDIR%%/html/LanguageExtensions.html
%%PORTDOCS%%%%DOCSDIR%%/html/LibASTMatchers.html
%%PORTDOCS%%%%DOCSDIR%%/html/LibASTMatchersReference.html
%%PORTDOCS%%%%DOCSDIR%%/html/LibTooling.html
%%PORTDOCS%%%%DOCSDIR%%/html/ObjectiveCLiterals.html
%%PORTDOCS%%%%DOCSDIR%%/html/PCHInternals.html
%%PORTDOCS%%%%DOCSDIR%%/html/PTHInternals.html
%%PORTDOCS%%%%DOCSDIR%%/html/RAVFrontendAction.html
%%PORTDOCS%%%%DOCSDIR%%/html/ReleaseNotes.html
%%PORTDOCS%%%%DOCSDIR%%/html/ThreadSanitizer.html
%%PORTDOCS%%%%DOCSDIR%%/html/Tooling.html
%%PORTDOCS%%%%DOCSDIR%%/html/UsersManual.html
%%PORTDOCS%%%%DOCSDIR%%/html/clang/clang.html
%%PORTDOCS%%%%DOCSDIR%%/html/clang/manpage.css
@ -418,6 +471,8 @@ lib/libclangTooling.a
@dirrm include/clang/StaticAnalyzer
@dirrm include/clang/Serialization
@dirrm include/clang/Sema
@dirrm include/clang/Rewrite/Frontend
@dirrm include/clang/Rewrite/Core
@dirrm include/clang/Rewrite
@dirrm include/clang/Parse
@dirrm include/clang/Lex
@ -434,12 +489,14 @@ lib/libclangTooling.a
@dirrm include/clang/Analysis/DomainSpecific
@dirrm include/clang/Analysis/Analyses
@dirrm include/clang/Analysis
@dirrm include/clang/ASTMatchers
@dirrm include/clang/AST
@dirrm include/clang/ARCMigrate
@dirrm include/clang-c
@dirrm include/clang
@dirrm %%PYTHON_SITELIBDIR%%/Resources
%%PORTDOCS%%@dirrm %%DOCSDIR%%/ps
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/img
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/clang
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%