diff options
author | ryoon <ryoon> | 2014-01-19 14:06:41 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2014-01-19 14:06:41 +0000 |
commit | ff0d26be5caa8a11cc263fdf8af0f9836b9ee6d4 (patch) | |
tree | 776c15ffe3e4b72b1fff93b9d203caa54babc99a | |
parent | 865abf71ae667a2186cb473057a9928bf5b313af (diff) | |
download | pkgsrc-ff0d26be5caa8a11cc263fdf8af0f9836b9ee6d4.tar.gz |
Update to 3.4
* Tested under NetBSD/amd64 6.99.28 and Debian GNU/Linux/amd64 7.3
Changelog:
From: http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_34/final/docs/ReleaseNotes.rst
Non-comprehensive list of changes in this release
=================================================
* This is expected to be the last release of LLVM which compiles using a C++98
toolchain. We expect to start using some C++11 features in LLVM and other
sub-projects starting after this release. That said, we are committed to
supporting a reasonable set of modern C++ toolchains as the host compiler on
all of the platforms. This will at least include Visual Studio 2012 on
Windows, and Clang 3.1 or GCC 4.7.x on Mac and Linux. The final set of
compilers (and the C++11 features they support) is not set in stone, but we
wanted users of LLVM to have a heads up that the next release will involve
a substantial change in the host toolchain requirements.
* The regression tests now fail if any command in a pipe fails. To disable it in
a directory, just add ``config.pipefail = False`` to its ``lit.local.cfg``.
See :doc:`Lit <CommandGuide/lit>` for the details.
* Support for exception handling has been removed from the old JIT. Use MCJIT
if you need EH support.
* The R600 backend is not marked experimental anymore and is built by default.
* ``APFloat::isNormal()`` was renamed to ``APFloat::isFiniteNonZero()`` and
``APFloat::isIEEENormal()`` was renamed to ``APFloat::isNormal()``. This
ensures that ``APFloat::isNormal()`` conforms to IEEE-754R-2008.
* The library call simplification pass has been removed. Its functionality
has been integrated into the instruction combiner and function attribute
marking passes.
* Support for building using Visual Studio 2008 has been dropped. Use VS 2010
or later instead. For more information, see the `Getting Started using Visual
Studio <GettingStartedVS.html>`_ page.
* The Loop Vectorizer that was previously enabled for ``-O3`` is now enabled
for ``-Os`` and ``-O2``.
* The new SLP Vectorizer is now enabled by default.
* ``llvm-ar`` now uses the new Object library and produces archives and
symbol tables in the gnu format.
* FileCheck now allows specifing ``-check-prefix`` multiple times. This
helps reduce duplicate check lines when using multiple RUN lines.
* The bitcast instruction no longer allows casting between pointers
with different address spaces. To achieve this, use the new addrspacecast
instruction.
* Different sized pointers for different address spaces should now
generally work. This is primarily useful for GPU targets.
* OCaml bindings have been significantly extended to cover almost all of the
LLVM libraries.
Mips Target
-----------
Support for the MIPS SIMD Architecture (MSA) has been added. MSA is supported
through inline assembly, intrinsics with the prefix '``__builtin_msa``', and
normal code generation.
For more information on MSA (including documentation for the instruction set),
see the `MIPS SIMD page at Imagination Technologies
<http://imgtec.com/mips/mips-simd.asp>`_
PowerPC Target
--------------
Changes in the PowerPC backend include:
* fast-isel support (for faster ``-O0`` code generation)
* many improvements to the builtin assembler
* support for generating unaligned (Altivec) vector loads
* support for generating the fcpsgn instruction
* generate ``frin`` for ``round()`` (not ``nearbyint()`` and ``rint()``, which
had been done only in fast-math mode)
* improved instruction scheduling for embedded cores (such as the A2)
* improved prologue/epilogue generation (especially in 32-bit mode)
* support for dynamic stack alignment (and dynamic stack allocations with large alignments)
* improved generation of counter-register-based loops
* bug fixes
SPARC Target
------------
The SPARC backend got many improvements, namely
* experimental SPARC V9 backend
* JIT support for SPARC
* fp128 support
* exception handling
* TLS support
* leaf functions optimization
* bug fixes
SystemZ/s390x Backend
---------------------
LLVM and clang can now optimize for zEnterprise z196 and zEnterprise EC12
targets. In clang these targets are selected using ``-march=z196`` and
``-march=zEC12`` respectively.
From: http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_34/final/docs/ReleaseNotes.rst
What's New in Clang 3.4?
========================
Some of the major new features and improvements to Clang are listed here.
Generic improvements to Clang as a whole or to its underlying infrastructure
are described first, followed by language-specific sections with improvements
to Clang's support for those languages.
Last release which will build as C++98
--------------------------------------
This is expected to be the last release of Clang which compiles using a C++98
toolchain. We expect to start using some C++11 features in Clang starting after
this release. That said, we are committed to supporting a reasonable set of
modern C++ toolchains as the host compiler on all of the platforms. This will
at least include Visual Studio 2012 on Windows, and Clang 3.1 or GCC 4.7.x on
Mac and Linux. The final set of compilers (and the C++11 features they support)
is not set in stone, but we wanted users of Clang to have a heads up that the
next release will involve a substantial change in the host toolchain
requirements.
Note that this change is part of a change for the entire LLVM project, not just
Clang.
Major New Features
------------------
Improvements to Clang's diagnostics
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Clang's diagnostics are constantly being improved to catch more issues, explain
them more clearly, and provide more accurate source information about them. The
improvements since the 3.3 release include:
- -Wheader-guard warns on mismatches between the #ifndef and #define lines
in a header guard.
.. code-block:: c
#ifndef multiple
#define multi
#endif
returns
`warning: 'multiple' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]`
- -Wlogical-not-parentheses warns when a logical not ('!') only applies to the
left-hand side of a comparison. This warning is part of -Wparentheses.
.. code-block:: c++
int i1 = 0, i2 = 1;
bool ret;
ret = !i1 == i2;
returns
`warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]`
- Boolean increment, a deprecated feature, has own warning flag
-Wdeprecated-increment-bool, and is still part of -Wdeprecated.
- Clang errors on builtin enum increments and decrements.
.. code-block:: c++
enum A { A1, A2 };
void test() {
A a;
a++;
}
returns
`error: must use 'enum' tag to refer to type 'A'`
- -Wloop-analysis now warns on for-loops which have the same increment or
decrement in the loop header as the last statement in the loop.
.. code-block:: c
void foo(char *a, char *b, unsigned c) {
for (unsigned i = 0; i < c; ++i) {
a[i] = b[i];
++i;
}
}
returns
`warning: variable 'i' is incremented both in the loop header and in the loop body [-Wloop-analysis]`
- -Wuninitialized now performs checking across field initializers to detect
when one field in used uninitialized in another field initialization.
.. code-block:: c++
class A {
int x;
int y;
A() : x(y) {}
};
returns
`warning: field 'y' is uninitialized when used here [-Wuninitialized]`
- Clang can detect initializer list use inside a macro and suggest parentheses
if possible to fix.
- Many improvements to Clang's typo correction facilities, such as:
+ Adding global namespace qualifiers so that corrections can refer to shadowed
or otherwise ambiguous or unreachable namespaces.
+ Including accessible class members in the set of typo correction candidates,
so that corrections requiring a class name in the name specifier are now
possible.
+ Allowing typo corrections that involve removing a name specifier.
+ In some situations, correcting function names when a function was given the
wrong number of arguments, including situations where the original function
name was correct but was shadowed by a lexically closer function with the
same name yet took a different number of arguments.
+ Offering typo suggestions for 'using' declarations.
+ Providing better diagnostics and fixit suggestions in more situations when
a '->' was used instead of '.' or vice versa.
+ Providing more relevant suggestions for typos followed by '.' or '='.
+ Various performance improvements when searching for typo correction
candidates.
- `LeakSanitizer <LeakSanitizer.html>`_ is an experimental memory leak detector
which can be combined with AddressSanitizer.
New Compiler Flags
------------------
- Clang no longer special cases -O4 to enable lto. Explicitly pass -flto to
enable it.
- Clang no longer fails on >= -O5. These flags are mapped to -O3 instead.
- Command line "clang -O3 -flto a.c -c" and "clang -emit-llvm a.c -c"
are no longer equivalent.
- Clang now errors on unknown -m flags (``-munknown-to-clang``),
unknown -f flags (``-funknown-to-clang``) and unknown
options (``-what-is-this``).
C Language Changes in Clang
---------------------------
- Added new checked arithmetic builtins for security critical applications.
C++ Language Changes in Clang
-----------------------------
- Fixed an ABI regression, introduced in Clang 3.2, which affected
member offsets for classes inheriting from certain classes with tail padding.
See Bug16537.
- Clang 3.4 supports the 2013-08-28 draft of the ISO WG21 SG10 feature test
macro recommendations. These aim to provide a portable method to determine
whether a compiler supports a language feature, much like Clang's
|has_feature macro|_.
.. |has_feature macro| replace:: ``__has_feature`` macro
.. _has_feature macro: LanguageExtensions.html#has-feature-and-has-extension
C++1y Feature Support
^^^^^^^^^^^^^^^^^^^^^
Clang 3.4 supports all the features in the current working draft of the
upcoming C++ standard, provisionally named C++1y. Support for the following
major new features has been added since Clang 3.3:
- Generic lambdas and initialized lambda captures.
- Deduced function return types (``auto f() { return 0; }``).
- Generalized ``constexpr`` support (variable mutation and loops).
- Variable templates and static data member templates.
- Use of ``'`` as a digit separator in numeric literals.
- Support for sized ``::operator delete`` functions.
In addition, ``[[deprecated]]`` is now accepted as a synonym for Clang's
existing ``deprecated`` attribute.
Use ``-std=c++1y`` to enable C++1y mode.
OpenCL C Language Changes in Clang
----------------------------------
- OpenCL C "long" now always has a size of 64 bit, and all OpenCL C
types are aligned as specified in the OpenCL C standard. Also,
"char" is now always signed.
Internal API Changes
--------------------
These are major API changes that have happened since the 3.3 release of
Clang. If upgrading an external codebase that uses Clang as a library,
this section should help get you past the largest hurdles of upgrading.
Wide Character Types
^^^^^^^^^^^^^^^^^^^^
The ASTContext class now keeps track of two different types for wide character
types: WCharTy and WideCharTy. WCharTy represents the built-in wchar_t type
available in C++. WideCharTy is the type used for wide character literals; in
C++ it is the same as WCharTy, but in C99, where wchar_t is a typedef, it is an
integer type.
Static Analyzer
---------------
The static analyzer has been greatly improved. This impacts the overall analyzer quality and reduces a number of false positives.
In particular, this release provides enhanced C++ support, reasoning about initializer lists, zeroing constructors, noreturn destructors and modeling of destructor calls on calls to delete.
Clang Format
------------
Clang now includes a new tool ``clang-format`` which can be used to
automatically format C, C++ and Objective-C source code. ``clang-format``
automatically chooses linebreaks and indentation and can be easily integrated
into editors, IDEs and version control systems. It supports several pre-defined
styles as well as precise style control using a multitude of formatting
options. ``clang-format`` itself is just a thin wrapper around a library which
can also be used directly from code refactoring and code translation tools.
More information can be found on `Clang Format's
site <http://clang.llvm.org/docs/ClangFormat.html>`_.
-rw-r--r-- | lang/clang/Makefile | 10 | ||||
-rw-r--r-- | lang/clang/PLIST | 114 | ||||
-rw-r--r-- | lang/clang/distinfo | 18 | ||||
-rw-r--r-- | lang/clang/patches/patch-ac | 22 | ||||
-rw-r--r-- | lang/clang/patches/patch-include_llvm_Support_Host.h | 8 |
5 files changed, 96 insertions, 76 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile index 76236c17e89..b828f407839 100644 --- a/lang/clang/Makefile +++ b/lang/clang/Makefile @@ -1,17 +1,17 @@ -# $NetBSD: Makefile,v 1.23 2013/12/24 05:57:44 richard Exp $ +# $NetBSD: Makefile,v 1.24 2014/01/19 14:06:41 ryoon Exp $ -DISTNAME= clang-3.3 +DISTNAME= clang-3.4 CATEGORIES= lang MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ DISTFILES= llvm-${PKGVERSION_NOREV}.src.tar.gz \ - cfe-${PKGVERSION_NOREV}.src.tar.gz + clang-${PKGVERSION_NOREV}.src.tar.gz 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 +WRKSRC= ${WRKDIR}/llvm-${PKGVERSION_NOREV} USE_LANGUAGES= c c++ USE_TOOLS+= chown gmake groff pod2html pod2man @@ -81,7 +81,7 @@ SUBST_SED.fix-paths+= -e 's,^.*cxa_finalize.*$$, ; //cxa_finalize.o,g' .endif post-extract: - mv ${WRKDIR}/cfe-${PKGVERSION_NOREV}.src ${WRKSRC}/tools/clang + 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 diff --git a/lang/clang/PLIST b/lang/clang/PLIST index 5015673c1e3..d747e882797 100644 --- a/lang/clang/PLIST +++ b/lang/clang/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.9 2013/07/02 10:33:02 adam Exp $ +@comment $NetBSD: PLIST,v 1.10 2014/01/19 14:06:41 ryoon Exp $ bin/bugpoint bin/c-index-test bin/clang @@ -8,6 +8,7 @@ bin/clang-format bin/clang-tblgen bin/llc bin/lli +bin/lli-child-target bin/llvm-ar bin/llvm-as bin/llvm-bcanalyzer @@ -22,7 +23,6 @@ bin/llvm-mc bin/llvm-mcmarkup bin/llvm-nm bin/llvm-objdump -bin/llvm-prof bin/llvm-ranlib bin/llvm-readobj bin/llvm-rtdyld @@ -44,7 +44,9 @@ include/clang/AST/AST.h include/clang/AST/ASTConsumer.h include/clang/AST/ASTContext.h include/clang/AST/ASTDiagnostic.h +include/clang/AST/ASTFwd.h include/clang/AST/ASTImporter.h +include/clang/AST/ASTLambda.h include/clang/AST/ASTMutationListener.h include/clang/AST/ASTTypeTraits.h include/clang/AST/ASTUnresolvedSet.h @@ -94,8 +96,8 @@ include/clang/AST/ExprCXX.h include/clang/AST/ExprObjC.h include/clang/AST/ExternalASTSource.h include/clang/AST/GlobalDecl.h -include/clang/AST/LambdaMangleContext.h include/clang/AST/Mangle.h +include/clang/AST/MangleNumberingContext.h include/clang/AST/NSAPI.h include/clang/AST/NestedNameSpecifier.h include/clang/AST/OperationKinds.h @@ -112,6 +114,7 @@ include/clang/AST/StmtGraphTraits.h include/clang/AST/StmtIterator.h include/clang/AST/StmtNodes.inc include/clang/AST/StmtObjC.h +include/clang/AST/StmtOpenMP.h include/clang/AST/StmtVisitor.h include/clang/AST/TemplateBase.h include/clang/AST/TemplateName.h @@ -129,7 +132,12 @@ include/clang/ASTMatchers/ASTMatchFinder.h include/clang/ASTMatchers/ASTMatchers.h include/clang/ASTMatchers/ASTMatchersInternal.h include/clang/ASTMatchers/ASTMatchersMacros.h +include/clang/ASTMatchers/Dynamic/Diagnostics.h +include/clang/ASTMatchers/Dynamic/Parser.h +include/clang/ASTMatchers/Dynamic/Registry.h +include/clang/ASTMatchers/Dynamic/VariantValue.h include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h +include/clang/Analysis/Analyses/Consumed.h include/clang/Analysis/Analyses/Dominators.h include/clang/Analysis/Analyses/FormatString.h include/clang/Analysis/Analyses/LiveVariables.h @@ -148,11 +156,7 @@ 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/BlkExprDeclBitVector.h include/clang/Analysis/Support/BumpVector.h -include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h -include/clang/Analysis/Visitors/CFGRecStmtVisitor.h -include/clang/Analysis/Visitors/CFGStmtVisitor.h include/clang/Basic/ABI.h include/clang/Basic/AddressSpaces.h include/clang/Basic/AllDiagnostics.h @@ -167,6 +171,7 @@ include/clang/Basic/BuiltinsMips.def include/clang/Basic/BuiltinsNVPTX.def include/clang/Basic/BuiltinsPPC.def include/clang/Basic/BuiltinsX86.def +include/clang/Basic/BuiltinsXCore.def include/clang/Basic/CapturedStmt.h include/clang/Basic/CharInfo.h include/clang/Basic/CommentOptions.h @@ -230,12 +235,12 @@ include/clang/Basic/VersionTuple.h include/clang/Basic/Visibility.h include/clang/Basic/arm_neon.inc include/clang/CodeGen/BackendUtil.h +include/clang/CodeGen/CGFunctionInfo.h +include/clang/CodeGen/CodeGenABITypes.h include/clang/CodeGen/CodeGenAction.h include/clang/CodeGen/ModuleBuilder.h include/clang/Config/config.h include/clang/Driver/Action.h -include/clang/Driver/Arg.h -include/clang/Driver/ArgList.h include/clang/Driver/CC1AsOptions.h include/clang/Driver/CC1AsOptions.inc include/clang/Driver/CC1Options.h @@ -243,12 +248,10 @@ include/clang/Driver/Compilation.h include/clang/Driver/Driver.h include/clang/Driver/DriverDiagnostic.h include/clang/Driver/Job.h -include/clang/Driver/OptSpecifier.h -include/clang/Driver/OptTable.h -include/clang/Driver/Option.h include/clang/Driver/Options.h include/clang/Driver/Options.inc include/clang/Driver/Phases.h +include/clang/Driver/SanitizerArgs.h include/clang/Driver/Tool.h include/clang/Driver/ToolChain.h include/clang/Driver/Types.def @@ -290,6 +293,8 @@ include/clang/Frontend/TextDiagnosticPrinter.h include/clang/Frontend/Utils.h 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 @@ -318,8 +323,9 @@ include/clang/Lex/ScratchBuffer.h include/clang/Lex/Token.h include/clang/Lex/TokenConcatenation.h include/clang/Lex/TokenLexer.h -include/clang/Parse/AttrExprArgs.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 @@ -333,6 +339,7 @@ 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/AttrParsedAttrImpl.inc include/clang/Sema/AttrParsedAttrKinds.inc include/clang/Sema/AttrParsedAttrList.inc include/clang/Sema/AttrSpellingListIndex.inc @@ -362,6 +369,7 @@ include/clang/Sema/SemaConsumer.h include/clang/Sema/SemaDiagnostic.h include/clang/Sema/SemaFixItUtils.h include/clang/Sema/SemaInternal.h +include/clang/Sema/SemaLambda.h include/clang/Sema/Template.h include/clang/Sema/TemplateDeduction.h include/clang/Sema/TypoCorrection.h @@ -378,13 +386,14 @@ include/clang/Serialization/Module.h include/clang/Serialization/ModuleManager.h include/clang/Serialization/SerializationDiagnostic.h include/clang/StaticAnalyzer/Checkers/ClangCheckers.h -include/clang/StaticAnalyzer/Checkers/CommonBugCategories.h include/clang/StaticAnalyzer/Checkers/LocalCheckers.h +include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.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 +include/clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h include/clang/StaticAnalyzer/Core/Checker.h include/clang/StaticAnalyzer/Core/CheckerManager.h @@ -429,6 +438,7 @@ include/clang/Tooling/FileMatchTrie.h include/clang/Tooling/JSONCompilationDatabase.h include/clang/Tooling/Refactoring.h include/clang/Tooling/RefactoringCallbacks.h +include/clang/Tooling/ReplacementsYaml.h include/clang/Tooling/Tooling.h include/llvm-c/Analysis.h include/llvm-c/BitReader.h @@ -436,10 +446,12 @@ include/llvm-c/BitWriter.h include/llvm-c/Core.h include/llvm-c/Disassembler.h include/llvm-c/ExecutionEngine.h +include/llvm-c/IRReader.h include/llvm-c/Initialization.h include/llvm-c/LinkTimeOptimizer.h include/llvm-c/Linker.h include/llvm-c/Object.h +include/llvm-c/Support.h include/llvm-c/Target.h include/llvm-c/TargetMachine.h include/llvm-c/Transforms/IPO.h @@ -472,7 +484,6 @@ include/llvm/ADT/IntervalMap.h include/llvm/ADT/IntrusiveRefCntPtr.h include/llvm/ADT/MapVector.h include/llvm/ADT/None.h -include/llvm/ADT/NullablePtr.h include/llvm/ADT/Optional.h include/llvm/ADT/OwningPtr.h include/llvm/ADT/PackedVector.h @@ -508,11 +519,13 @@ 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/polymorphic_ptr.h include/llvm/Analysis/AliasAnalysis.h include/llvm/Analysis/AliasSetTracker.h include/llvm/Analysis/BlockFrequencyImpl.h include/llvm/Analysis/BlockFrequencyInfo.h include/llvm/Analysis/BranchProbabilityInfo.h +include/llvm/Analysis/CFG.h include/llvm/Analysis/CFGPrinter.h include/llvm/Analysis/CallGraph.h include/llvm/Analysis/CallGraphSCCPass.h @@ -547,14 +560,7 @@ include/llvm/Analysis/MemoryBuiltins.h include/llvm/Analysis/MemoryDependenceAnalysis.h include/llvm/Analysis/PHITransAddr.h 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 include/llvm/Analysis/PtrUseVisitor.h include/llvm/Analysis/RegionInfo.h include/llvm/Analysis/RegionIterator.h @@ -574,7 +580,6 @@ include/llvm/Assembly/Parser.h include/llvm/Assembly/PrintModulePass.h include/llvm/Assembly/Writer.h include/llvm/AutoUpgrade.h -include/llvm/Bitcode/Archive.h include/llvm/Bitcode/BitCodes.h include/llvm/Bitcode/BitstreamReader.h include/llvm/Bitcode/BitstreamWriter.h @@ -606,6 +611,7 @@ include/llvm/CodeGen/LiveIntervalAnalysis.h include/llvm/CodeGen/LiveIntervalUnion.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 @@ -661,6 +667,8 @@ include/llvm/CodeGen/SelectionDAG.h include/llvm/CodeGen/SelectionDAGISel.h include/llvm/CodeGen/SelectionDAGNodes.h include/llvm/CodeGen/SlotIndexes.h +include/llvm/CodeGen/StackMaps.h +include/llvm/CodeGen/StackProtector.h include/llvm/CodeGen/TargetLoweringObjectFileImpl.h include/llvm/CodeGen/TargetSchedule.h include/llvm/CodeGen/ValueTypes.h @@ -687,6 +695,7 @@ 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/SectionMemoryManager.h include/llvm/GVMaterializer.h @@ -712,6 +721,7 @@ include/llvm/IR/IntrinsicInst.h include/llvm/IR/Intrinsics.gen include/llvm/IR/Intrinsics.h include/llvm/IR/Intrinsics.td +include/llvm/IR/IntrinsicsAArch64.td include/llvm/IR/IntrinsicsARM.td include/llvm/IR/IntrinsicsHexagon.td include/llvm/IR/IntrinsicsMips.td @@ -721,11 +731,14 @@ include/llvm/IR/IntrinsicsR600.td include/llvm/IR/IntrinsicsX86.td include/llvm/IR/IntrinsicsXCore.td include/llvm/IR/LLVMContext.h +include/llvm/IR/LegacyPassManager.h +include/llvm/IR/LegacyPassManagers.h include/llvm/IR/MDBuilder.h include/llvm/IR/Metadata.h include/llvm/IR/Module.h include/llvm/IR/OperandTraits.h include/llvm/IR/Operator.h +include/llvm/IR/PassManager.h include/llvm/IR/SymbolTableListTraits.h include/llvm/IR/Type.h include/llvm/IR/TypeBuilder.h @@ -737,6 +750,8 @@ include/llvm/IR/ValueSymbolTable.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/LinkAllIR.h include/llvm/LinkAllPasses.h include/llvm/Linker.h @@ -744,6 +759,7 @@ include/llvm/MC/MCAsmBackend.h include/llvm/MC/MCAsmInfo.h include/llvm/MC/MCAsmInfoCOFF.h 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 @@ -758,9 +774,11 @@ include/llvm/MC/MCELFObjectWriter.h include/llvm/MC/MCELFStreamer.h include/llvm/MC/MCELFSymbolFlags.h include/llvm/MC/MCExpr.h +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 @@ -772,8 +790,11 @@ include/llvm/MC/MCLabel.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 @@ -782,6 +803,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/MCRelocationInfo.h include/llvm/MC/MCSchedule.h include/llvm/MC/MCSection.h include/llvm/MC/MCSectionCOFF.h @@ -790,6 +812,7 @@ include/llvm/MC/MCSectionMachO.h include/llvm/MC/MCStreamer.h include/llvm/MC/MCSubtargetInfo.h include/llvm/MC/MCSymbol.h +include/llvm/MC/MCSymbolizer.h include/llvm/MC/MCTargetAsmParser.h include/llvm/MC/MCValue.h include/llvm/MC/MCWin64EH.h @@ -800,12 +823,17 @@ include/llvm/MC/SubtargetFeature.h include/llvm/Object/Archive.h include/llvm/Object/Binary.h include/llvm/Object/COFF.h +include/llvm/Object/COFFYAML.h include/llvm/Object/ELF.h +include/llvm/Object/ELFObjectFile.h +include/llvm/Object/ELFTypes.h +include/llvm/Object/ELFYAML.h include/llvm/Object/Error.h include/llvm/Object/MachO.h -include/llvm/Object/MachOFormat.h +include/llvm/Object/MachOUniversal.h include/llvm/Object/ObjectFile.h include/llvm/Object/RelocVisitor.h +include/llvm/Object/YAML.h include/llvm/Option/Arg.h include/llvm/Option/ArgList.h include/llvm/Option/OptParser.td @@ -815,7 +843,6 @@ include/llvm/Option/Option.h include/llvm/Pass.h include/llvm/PassAnalysisSupport.h include/llvm/PassManager.h -include/llvm/PassManagers.h include/llvm/PassRegistry.h include/llvm/PassSupport.h include/llvm/Support/AIXDataTypesFix.h @@ -866,13 +893,12 @@ include/llvm/Support/GraphWriter.h include/llvm/Support/Host.h include/llvm/Support/IncludeFile.h include/llvm/Support/InstIterator.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/MD5.h include/llvm/Support/MachO.h include/llvm/Support/ManagedStatic.h include/llvm/Support/MathExtras.h @@ -885,8 +911,6 @@ include/llvm/Support/NoFolder.h include/llvm/Support/OutputBuffer.h include/llvm/Support/PassNameParser.h include/llvm/Support/Path.h -include/llvm/Support/PathV1.h -include/llvm/Support/PathV2.h include/llvm/Support/PatternMatch.h include/llvm/Support/PluginLoader.h include/llvm/Support/PointerLikeTypeTraits.h @@ -907,6 +931,7 @@ include/llvm/Support/Solaris.h include/llvm/Support/SourceMgr.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 @@ -917,6 +942,8 @@ include/llvm/Support/Threading.h include/llvm/Support/TimeValue.h include/llvm/Support/Timer.h include/llvm/Support/ToolOutputFile.h +include/llvm/Support/Unicode.h +include/llvm/Support/UnicodeCharRanges.h include/llvm/Support/Valgrind.h include/llvm/Support/ValueHandle.h include/llvm/Support/Watchdog.h @@ -932,6 +959,7 @@ include/llvm/TableGen/Error.h include/llvm/TableGen/Main.h include/llvm/TableGen/Record.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 @@ -961,26 +989,29 @@ include/llvm/Transforms/Instrumentation.h include/llvm/Transforms/ObjCARC.h include/llvm/Transforms/Scalar.h include/llvm/Transforms/Utils/BasicBlockUtils.h -include/llvm/Transforms/Utils/BlackList.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/GlobalStatus.h include/llvm/Transforms/Utils/IntegerDivision.h include/llvm/Transforms/Utils/Local.h +include/llvm/Transforms/Utils/LoopUtils.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/SpecialCaseList.h include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h include/llvm/Transforms/Utils/UnrollLoop.h include/llvm/Transforms/Utils/ValueMapper.h include/llvm/Transforms/Vectorize.h -lib/BugpointPasses.${SOEXT} -lib/LLVMHello.${SOEXT} +lib/BugpointPasses.so +lib/LLVMHello.so +lib/clang/${PKGVERSION}/include/Intrin.h lib/clang/${PKGVERSION}/include/__wmmintrin_aes.h lib/clang/${PKGVERSION}/include/__wmmintrin_pclmul.h lib/clang/${PKGVERSION}/include/altivec.h @@ -1010,6 +1041,7 @@ 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/shaintrin.h lib/clang/${PKGVERSION}/include/smmintrin.h lib/clang/${PKGVERSION}/include/stdalign.h lib/clang/${PKGVERSION}/include/stdarg.h @@ -1017,6 +1049,7 @@ lib/clang/${PKGVERSION}/include/stdbool.h lib/clang/${PKGVERSION}/include/stddef.h lib/clang/${PKGVERSION}/include/stdint.h lib/clang/${PKGVERSION}/include/stdnoreturn.h +lib/clang/${PKGVERSION}/include/tbmintrin.h lib/clang/${PKGVERSION}/include/tgmath.h lib/clang/${PKGVERSION}/include/tmmintrin.h lib/clang/${PKGVERSION}/include/unwind.h @@ -1039,7 +1072,6 @@ lib/libLLVMARMDesc.a lib/libLLVMARMDisassembler.a lib/libLLVMARMInfo.a lib/libLLVMAnalysis.a -lib/libLLVMArchive.a lib/libLLVMAsmParser.a lib/libLLVMAsmPrinter.a lib/libLLVMBitReader.a @@ -1059,13 +1091,8 @@ lib/libLLVMInstCombine.a lib/libLLVMInstrumentation.a lib/libLLVMInterpreter.a lib/libLLVMJIT.a +lib/libLLVMLTO.a lib/libLLVMLinker.a -lib/libLLVMMBlazeAsmParser.a -lib/libLLVMMBlazeAsmPrinter.a -lib/libLLVMMBlazeCodeGen.a -lib/libLLVMMBlazeDesc.a -lib/libLLVMMBlazeDisassembler.a -lib/libLLVMMBlazeInfo.a lib/libLLVMMC.a lib/libLLVMMCDisassembler.a lib/libLLVMMCJIT.a @@ -1092,6 +1119,10 @@ lib/libLLVMPowerPCAsmPrinter.a lib/libLLVMPowerPCCodeGen.a lib/libLLVMPowerPCDesc.a lib/libLLVMPowerPCInfo.a +lib/libLLVMR600AsmPrinter.a +lib/libLLVMR600CodeGen.a +lib/libLLVMR600Desc.a +lib/libLLVMR600Info.a lib/libLLVMRuntimeDyld.a lib/libLLVMScalarOpts.a lib/libLLVMSelectionDAG.a @@ -1103,6 +1134,7 @@ lib/libLLVMSystemZAsmParser.a lib/libLLVMSystemZAsmPrinter.a lib/libLLVMSystemZCodeGen.a lib/libLLVMSystemZDesc.a +lib/libLLVMSystemZDisassembler.a lib/libLLVMSystemZInfo.a lib/libLLVMTableGen.a lib/libLLVMTarget.a @@ -1133,10 +1165,12 @@ lib/libclangAnalysis.a lib/libclangBasic.a lib/libclangCodeGen.a lib/libclangDriver.a +lib/libclangDynamicASTMatchers.a lib/libclangEdit.a lib/libclangFormat.a lib/libclangFrontend.a lib/libclangFrontendTool.a +lib/libclangIndex.a lib/libclangLex.a lib/libclangParse.a lib/libclangRewriteCore.a @@ -1147,8 +1181,6 @@ lib/libclangStaticAnalyzerCheckers.a lib/libclangStaticAnalyzerCore.a lib/libclangStaticAnalyzerFrontend.a lib/libclangTooling.a -lib/libprofile_rt.${SOEXT} -lib/libprofile_rt.a man/man1/clang.1 share/doc/llvm/html.tar.gz share/doc/llvm/html/Dummy.html diff --git a/lang/clang/distinfo b/lang/clang/distinfo index ec280a13bd1..3e4543b8b3b 100644 --- a/lang/clang/distinfo +++ b/lang/clang/distinfo @@ -1,14 +1,14 @@ -$NetBSD: distinfo,v 1.21 2013/07/09 08:11:05 richard Exp $ +$NetBSD: distinfo,v 1.22 2014/01/19 14:06:41 ryoon Exp $ -SHA1 (cfe-3.3.src.tar.gz) = ccd6dbf2cdb1189a028b70bcb8a22509c25c74c8 -RMD160 (cfe-3.3.src.tar.gz) = ff5d684c83b0c1aa36595dcb457da80b58eaf58f -Size (cfe-3.3.src.tar.gz) = 9425539 bytes -SHA1 (llvm-3.3.src.tar.gz) = c6c22d5593419e3cb47cbcf16d967640e5cce133 -RMD160 (llvm-3.3.src.tar.gz) = 22878ad746c50b02a7ac8713dd6f8c95c7af4220 -Size (llvm-3.3.src.tar.gz) = 13602421 bytes +SHA1 (clang-3.4.src.tar.gz) = a6a3c815dd045e9c13c7ae37d2cfefe65607860d +RMD160 (clang-3.4.src.tar.gz) = 4fbd7e735edc96e224a82ebe2277c69efc488e6b +Size (clang-3.4.src.tar.gz) = 10619607 bytes +SHA1 (llvm-3.4.src.tar.gz) = 10b1fd085b45d8b19adb9a628353ce347bc136b8 +RMD160 (llvm-3.4.src.tar.gz) = 67e3f7baa679ca95d944b9cc3528d1ffbe3cdee0 +Size (llvm-3.4.src.tar.gz) = 15920544 bytes SHA1 (patch-ab) = 8dd0da6d47a57ac25eea358996cf874dd3289e08 -SHA1 (patch-ac) = d94fdd7508302e6fb6acbf58f7b2305c3db5cf08 +SHA1 (patch-ac) = 0f0cc98d443ec957fc5374fb491809d27e4f9d4e SHA1 (patch-ad) = ad1f6720e4c73e57fce10ba968b03637a133602d -SHA1 (patch-include_llvm_Support_Host.h) = 102a76575b94f3d1b5fe0b138eb0ad54efd08b05 +SHA1 (patch-include_llvm_Support_Host.h) = 545f9542cd2aaa6cea58d3653902b4e1a9e7189a SHA1 (patch-utils_lit_utils_check-coverage) = aec7c140d5b9e8cc38a0022533a5848d6b1ff0b8 SHA1 (patch-utils_lit_utils_check-sdist) = df63c41b07f7531e787b54f6994458869023b66c diff --git a/lang/clang/patches/patch-ac b/lang/clang/patches/patch-ac index 378438b4297..04975e50ad1 100644 --- a/lang/clang/patches/patch-ac +++ b/lang/clang/patches/patch-ac @@ -1,20 +1,8 @@ -$NetBSD: patch-ac,v 1.8 2013/07/02 10:33:02 adam Exp $ +$NetBSD: patch-ac,v 1.9 2014/01/19 14:06:41 ryoon Exp $ ---- Makefile.rules.orig 2013-05-03 21:53:50.000000000 +0000 +--- Makefile.rules.orig 2013-11-14 23:51:29.000000000 +0000 +++ Makefile.rules -@@ -640,11 +640,6 @@ ifneq ($(HOST_OS), $(filter $(HOST_OS), - ifneq ($(HOST_OS), Darwin) - ifdef TOOLNAME - LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' -- ifdef EXAMPLE_TOOL -- LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag) -- else -- LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag) -- endif - endif - else - ifneq ($(DARWIN_MAJVERS),4) -@@ -842,9 +837,6 @@ endif +@@ -808,9 +808,6 @@ endif # in the file so they get built before dependencies #--------------------------------------------------------- @@ -24,7 +12,7 @@ $NetBSD: patch-ac,v 1.8 2013/07/02 10:33:02 adam Exp $ # To create other directories, as needed, and timestamp their creation %/.dir: $(Verb) $(MKDIR) $* > /dev/null -@@ -979,7 +971,9 @@ install-local:: +@@ -954,7 +951,9 @@ install-local:: uninstall-local:: $(Echo) UnInstall circumvented with NO_INSTALL else @@ -35,7 +23,7 @@ $NetBSD: patch-ac,v 1.8 2013/07/02 10:33:02 adam Exp $ $(Echo) Installing Configuration Files To $(DESTDIR)$(PROJ_etcdir) $(Verb)for file in $(CONFIG_FILES); do \ if test -f $(PROJ_OBJ_DIR)/$${file} ; then \ -@@ -1401,7 +1395,7 @@ install-local:: $(DestArchiveLib) +@@ -1248,7 +1247,7 @@ install-local:: $(DestArchiveLib) $(DestArchiveLib): $(LibName.A) $(DESTDIR)$(PROJ_libdir) $(Echo) Installing $(BuildMode) Archive Library $(DestArchiveLib) $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_libdir) diff --git a/lang/clang/patches/patch-include_llvm_Support_Host.h b/lang/clang/patches/patch-include_llvm_Support_Host.h index 1970495c68f..123cec01b56 100644 --- a/lang/clang/patches/patch-include_llvm_Support_Host.h +++ b/lang/clang/patches/patch-include_llvm_Support_Host.h @@ -1,13 +1,13 @@ -$NetBSD: patch-include_llvm_Support_Host.h,v 1.1 2013/07/09 08:11:05 richard Exp $ +$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-04-15 20:13:59.000000000 +0000 +--- 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__) + #if defined(__linux__) || defined(__GNU__) #include <endian.h> +#elif defined(__sun) & defined(__SVR4) +# ifndef BYTE_ORDER @@ -24,5 +24,5 @@ http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225 +# endif /* sun */ +# endif /* BYTE_ORDER */ #else - #ifndef LLVM_ON_WIN32 + #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32) #include <machine/endian.h> |