330080 |
27-Feb-2018 |
dim |
Avoid using the C++11 auto keyword, which was introduced in r328555, as part of an upstream change. This is not supported by gcc 4.2.1, which is still the default system compiler for some architectures.
Direct commit to stable/9 and stable/10, since this does not apply to stable/11 and head.
Reported by: jau@iki.fi PR: 202665,226068 |
328555 |
29-Jan-2018 |
dim |
Pull in r217197 from upstream clang trunk (by Richard Smith):
PR20844: If we fail to list-initialize a reference, map to the referenced type before retrying the initialization to produce diagnostics. Otherwise, we may fail to produce any diagnostics, and silently produce invalid AST in a -Asserts build. Also add a note to this codepath to make it more clear why we were trying to create a temporary.
This should fix assertions when parsing some forms of incomplete list intializers.
Direct commit to stable/9 and stable/10, since stable/11 and head already have this upstream fix.
Reported by: ajcbowhill@gmail.com PR: 202665 |
326976 |
19-Dec-2017 |
dim |
MFC r326880:
Pull in r320755 from upstream clang trunk (by me):
Don't trigger -Wuser-defined-literals for system headers
Summary: In D41064, I proposed adding `#pragma clang diagnostic ignored "-Wuser-defined-literals"` to some of libc++'s headers, since these warnings are now triggered by clang's new `-std=gnu++14` default:
$ cat test.cpp #include <string>
$ clang -std=c++14 -Wsystem-headers -Wall -Wextra -c test.cpp In file included from test.cpp:1: In file included from /usr/include/c++/v1/string:470: /usr/include/c++/v1/string_view:763:29: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string_view<char> operator "" sv(const char *__str, size_t __len) ^ /usr/include/c++/v1/string_view:769:32: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string_view<wchar_t> operator "" sv(const wchar_t *__str, size_t __len) ^ /usr/include/c++/v1/string_view:775:33: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string_view<char16_t> operator "" sv(const char16_t *__str, size_t __len) ^ /usr/include/c++/v1/string_view:781:33: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string_view<char32_t> operator "" sv(const char32_t *__str, size_t __len) ^ In file included from test.cpp:1: /usr/include/c++/v1/string:4012:24: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string<char> operator "" s( const char *__str, size_t __len ) ^ /usr/include/c++/v1/string:4018:27: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t __len ) ^ /usr/include/c++/v1/string:4024:28: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string<char16_t> operator "" s( const char16_t *__str, size_t __len ) ^ /usr/include/c++/v1/string:4030:28: warning: user-defined literal suffixes not starting with '_' are reserved [-Wuser-defined-literals] basic_string<char32_t> operator "" s( const char32_t *__str, size_t __len ) ^ 8 warnings generated.
Both @aaron.ballman and @mclow.lists felt that adding this workaround to the libc++ headers was the wrong way, and it should be fixed in clang instead.
Here is a proposal to do just that. I verified that this suppresses the warning, even when -Wsystem-headers is used, and that the warning is still emitted for a declaration outside of system headers.
Reviewers: aaron.ballman, mclow.lists, rsmith
Reviewed By: aaron.ballman
Subscribers: mclow.lists, aaron.ballman, andrew, emaste, cfe-commits
Differential Revision: https://reviews.llvm.org/D41080
This will allow to compile some of the libc++ headers in C++14 mode (which is the default for gcc 6 and higher, and will be the default for clang 6.0.0 and higher), with -Wsystem-headers and -Werror enabled.
Reported by: andrew |
303170 |
22-Jul-2016 |
emaste |
MFC r303031: clang++: Always use --eh-frame-hdr on FreeBSD, even for -static
FreeBSD uses LLVM's libunwind on FreeBSD/arm64 today (and we expect to use it more widely in the future) and it requires the EH frame segment in static binaries. |
296942 |
16-Mar-2016 |
ian |
Revert r296940, it contained unintended changes, and will be redone. |
296940 |
16-Mar-2016 |
ian |
MFC r296807:
Require firewall setup before running rc.d/netwait, otherwise the ping packets sent by netwait may not get through.
PR: 207916 |
283036 |
17-May-2015 |
dim |
For clang 3.4.1, when using -fformat-extensions, and warning about the FreeBSD-specific %D and %b printf format specifiers, avoid possible argument overruns. Also reduce the differences with the version added in r280031 (which has been sent upstream).
Direct commit to stable/10, since head already has clang 3.6.0. |
279302 |
25-Feb-2015 |
emaste |
Implement the -fuse-ld= option.
Merge upstream Clang revision 211785: This commit implements the -fuse-ld= option, so that the user can specify -fuse-ld=bfd to use ld.bfd.
This commit re-applies r194328 with some test case changes. It seems that r194328 was breaking macosx or mingw build because clang can't find ld.bfd or ld.gold in the given sysroot. We should use -B to specify the executable search path instead.
Patch originally by David Chisnall.
This is a direct commit to stable/10 as this is change is already included in Clang 3.5 in HEAD. The patch is also reworked slightly for Clang 3.4.1.
Reviewed by: dim Sponsored by: The FreeBSD Foundation |
279289 |
25-Feb-2015 |
dim |
Pull in r199571 from upstream clang trunk (by Ted Kremenek):
Harden InitListExpr::isStringLiteralInit() against getInit() returning null.
This led to a crash on invalid code (sorry, no good test case).
Fixes <rdar://problem/15831804>.
This fixes an assertion when compiling certain incorrect code, as reported upstream in http://llvm.org/PR22684 .
Direct commit to stable/10 and stable/9, since head has clang 3.5.1, which already includes this change.
Reported by: hbowden@securelabsllc.com |
278788 |
14-Feb-2015 |
dim |
Pull in r201130 from upstream clang trunk (by Ted Kremenek):
Fix PCH deserialization bug with local static symbols being treated as local extern.
This triggered a miscompilation of code using Boost's function_template.hpp when it was included inside a PCH file. A local static within that header would be treated as local extern, resulting in the wrong mangling. This only occurred during PCH deserialization.
Fixes <rdar://problem/15975816> and <rdar://problem/15926311>.
This fixes a crash in audio/murmur, which is using both PCH and Boost.
Direct commit to stable/10 and stable/9, since head has clang 3.5.1, which already includes this change.
Reported by: smh PR: 197389 |
275872 |
17-Dec-2014 |
dim |
MFC r275759:
Pull in r221170 from upstream clang trunk (by Roman Divacky):
Implement vaarg lowering for ppc32. Lowering of scalars and aggregates is supported. Complex numbers are not.
This adds va_args support for PowerPC (32 bit) to clang.
Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D1308 |
271729 |
18-Sep-2014 |
emaste |
MFC Clang debuginfo crash fix
r271432: Merge upstream Clang rev 205331 debuginfo crash fix:
Debug info: fix a crash when emitting IndirectFieldDecls, which were previously not handled at all. rdar://problem/16348575
r271433: Add clang patch corresponding to r271432
Approved by: re Sponsored by: DARPA, AFRL |
271414 |
11-Sep-2014 |
emaste |
MFC Clang debug info crash fix
r271282: Merge Clang debug info crash fix rev 200797:
Debug info: fix a crasher when when emitting debug info for not-yet-completed templated types. getTypeSize() needs a complete type.
rdar://problem/15931354
r271283: Add clang patch for r271282
Note that r271282 contains only the src change from Clang rev 200797. This patch file includes two follow-on changes to the test case, which do not apply to the copy in the FreeBSD tree.
Upstream Clang revisions:
200797:
Debug info: fix a crasher when when emitting debug info for not-yet-completed templated types. getTypeSize() needs a complete type.
rdar://problem/15931354
200798:
Simplify testcase from r200797 some more.
200805:
Further simplify r200797 and add an explanatory comment.
PR: 193347 Approved by: re Sponsored by: DARPA, AFRL |
270072 |
17-Aug-2014 |
ian |
MFC r269387: Update the ARMv6 core clang targets to be an arm1176jzf-s. |
269011 |
23-Jul-2014 |
emaste |
MFC r265477: Merge -fstandalone-debug from Clang r198655:
Implement a new -fstandalone-debug option. rdar://problem/15685848 It controls everything that -flimit-debug-info used to, plus the vtable type optimization. The old -fno-limit-debug-info option is now an alias to -fstandalone-debug and vice versa.
Standalone is the default on Darwin until dtrace is updated to work with non-standalone debug info (rdar://problem/15758808).
Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind because NoStandaloneDebugInfo sounded even more confusing. |
269000 |
22-Jul-2014 |
emaste |
MFC debug info for variadic functions
r264826: Merge LLVM r202188:
Debug info: Support variadic functions. Variadic functions have an unspecified parameter tag after the last argument. In IR this is represented as an unspecified parameter in the subroutine type.
Paired commit with CFE r202185.
rdar://problem/13690847
This re-applies r202184 + a bugfix in DwarfDebug's argument handling.
This merge includes a change to use the LLVM 3.4 API in lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:
DwarfUnit -> CompileUnit
r264827: Merge Clang r202185:
Debug info: Generate debug info for variadic functions. Paired commit with LLVM.
rdar://problem/13690847
This merege includes changes to use the Clang 3.4 API (revisions 199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp:
getParamType -> getArgType getNumParams -> getNumArgs getReturnType -> getResultType
r264828: Add patches corresponding to r264826 and r264827
Sponsored by: DARPA, AFRL |
266789 |
28-May-2014 |
dim |
MFC r266674:
Pull in r209489 from upstream clang trunk (by Akira Hatanaka):
Fix a bug in xmmintrin.h.
The last step of _mm_cvtps_pi16 should use _mm_packs_pi32, which is a function that reads two __m64 values and packs four 32-bit values into four 16-bit values.
<rdar://problem/16873717> |
266715 |
26-May-2014 |
dim |
MFC r265925:
Upgrade our copy of llvm/clang to 3.4.1 release. This release contains mostly fixes, for the following upstream bugs:
http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000 http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165 http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316 http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515 http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762 http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994 http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033 http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326 |
264464 |
14-Apr-2014 |
dim |
MFC r264345:
Amend r263891, by making clang default to DWARF2 debug info format for all FreeBSD versions, not just 10.x and earlier. Apparently too many people seem to have trouble with post-1993 formats.
Also remove the related notes about messing with kernel configuration files from UPDATING, which are now superfluous.
Requested by: many |
263984 |
01-Apr-2014 |
dim |
MFC r263891:
Make clang default to DWARF2 debug info format for FreeBSD 10.x and earlier. For head, this commit does not change anything, but it is purely meant to be MFC'd. |
263763 |
26-Mar-2014 |
dim |
MFC r262613:
Merge the projects/clang-sparc64 branch back to head. This brings in several updates from the llvm and clang trunks to make the sparc64 backend fully functional.
Apart from one patch to sys/sparc64/include/pcpu.h which is still under discussion, this makes it possible to let clang fully build world and kernel for sparc64.
Any assistance with testing this on actual sparc64 hardware is greatly appreciated, as there will unavoidably be bugs left.
Many thanks go to Roman Divacky for his upstream work on getting the sparc64 backend into shape.
MFC r262985:
Repair a few minor mismerges from r262261 in the clang-sparc64 project branch. This is also to minimize differences with upstream. |
263508 |
21-Mar-2014 |
dim |
MFC 261991:
Upgrade our copy of llvm/clang to 3.4 release. This version supports all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y.
The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work.
Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html>
MFC 262121 (by emaste):
Update lldb for clang/llvm 3.4 import
This commit largely restores the lldb source to the upstream r196259 snapshot with the addition of threaded inferior support and a few bug fixes.
Specific upstream lldb revisions restored include: SVN git 181387 779e6ac 181703 7bef4e2 182099 b31044e 182650 f2dcf35 182683 0d91b80 183862 15c1774 183929 99447a6 184177 0b2934b 184948 4dc3761 184954 007e7bc 186990 eebd175
Sponsored by: DARPA, AFRL
MFC 262186 (by emaste):
Fix mismerge in r262121
A break statement was lost in the merge. The error had no functional impact, but restore it to reduce the diff against upstream.
MFC 262303:
Pull in r197521 from upstream clang trunk (by rdivacky):
Use the integrated assembler by default on FreeBSD/ppc and ppc64.
Requested by: jhibbits
MFC 262611:
Pull in r196874 from upstream llvm trunk:
Fix a crash that occurs when PWD is invalid.
MCJIT needs to be able to run in hostile environments, even when PWD is invalid. There's no need to crash MCJIT in this case.
The obvious fix is to simply leave MCContext's CompilationDir empty when PWD can't be determined. This way, MCJIT clients, and other clients that link with LLVM don't need a valid working directory.
If we do want to guarantee valid CompilationDir, that should be done only for clients of getCompilationDir(). This is as simple as checking for an empty string.
The only current use of getCompilationDir is EmitGenDwarfInfo, which won't conceivably run with an invalid working dir. However, in the purely hypothetically and untestable case that this happens, the AT_comp_dir will be omitted from the compilation_unit DIE.
This should help fix assertions occurring with ports-mgmt/tinderbox, when it is using jails, and sometimes invalidates clang's current working directory.
Reported by: decke
MFC 262809:
Pull in r203007 from upstream clang trunk:
Don't produce an alias between destructors with different calling conventions.
Fixes pr19007.
(Please note that is an LLVM PR identifier, not a FreeBSD one.)
This should fix Firefox and/or libxul crashes (due to problems with regparm/stdcall calling conventions) on i386.
Reported by: multiple users on freebsd-current PR: bin/187103
MFC 263048:
Repair recognition of "CC" as an alias for the C++ compiler, since it was silently broken by upstream for a Windows-specific use-case.
Apparently some versions of CMake still rely on this archaic feature...
Reported by: rakuco
MFC 263049:
Garbage collect the old way of adding the libstdc++ include directories in clang's InitHeaderSearch.cpp. This has been superseded by David Chisnall's commit in r255321.
Moreover, if libc++ is used, the libstdc++ include directories should not be in the search path at all. These directories are now only used if you pass -stdlib=libstdc++. |
261794 |
12-Feb-2014 |
dim |
MFC r261680:
Pull in r200899 from upstream clang trunk:
Allow transformation of VariableArray to ConstantArray.
In the following code:
struct A { static const int sz; }; template<class T> void f() { T arr[A::sz]; }
the array 'arr' is represented as a variable size array in the template. If 'A::sz' gets value below in the translation unit, the array in instantiation can turn into constant size array.
This change fixes PR18633.
Differential Revision: http://llvm-reviews.chandlerc.com/D2688
This fixes "Assertion failed: (T::isKind(*this)), function castAs" errors, which can occur when building the security/quantis port.
Reported by: ale |
259664 |
20-Dec-2013 |
dim |
MFC r259498:
Pull in r197399 from upstream clang trunk:
Add bit_FXSAVE as an alias for bit_FXSR, for gcc compat. |
259214 |
11-Dec-2013 |
dim |
MFC r259100:
Pull in r196658 from upstream clang trunk:
CodeGen: Don't emit linkage on thunks that aren't emitted because they're vararg.
This can happen when we're trying to emit a thunk with available_externally linkage with optimization enabled but bail because it doesn't make sense for vararg functions.
[LLVM] PR18098.
This should fix clang "Broken module found, compilation aborted" errors when building the qt4-based dvbcut port.
Reported by: se |
259157 |
10-Dec-2013 |
dim |
MFC r259053:
Pull in r196590 from upstream clang trunk (by rdivacky):
Move the body of GCCInstallationDetector ctor into an init() function and call it from its only user. The linux toolchain. This saves quite a lot of directory searching on other platforms.
See http://docs.freebsd.org/cgi/mid.cgi?51E6FAF5.3080802 for the original discussion. With this fix, the search for gcc installations is completely eliminated on FreeBSD.
Reported by: Kurt Lidl <lidl@pix.net> |
258747 |
29-Nov-2013 |
dim |
MFC r258620:
Pull in r195558 from upstream clang trunk:
Fix a SSE2 intrinsics typo
Full discourse at:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092514.html http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/068124.html
Patch by Dimitry Andric and Alexey Dokuchaev!
Reported by: danfe Approved by: re (gjb) |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
256030 |
03-Oct-2013 |
dim |
Pull in r189644 from upstream llvm trunk:
Add ms_abi and sysv_abi attribute handling.
Based on a patch by Benno Rice!
This will help to develop EFI support.
Approved by: re (kib) Verified by: benno MFC after: 1 week
|
255321 |
06-Sep-2013 |
theraven |
On platforms where clang is the default compiler, don't build gcc or libstdc++. To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change.
GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build).
Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains.
Sorry to all of the people who helped who I forgot to mention by name.
Reviewed by: bapt, imp, dim, ...
|
254582 |
20-Aug-2013 |
dim |
Pull in r182983 from upstream clang trunk:
Fix handling of braced-init-list as reference initializer within aggregate initialization. Previously we would incorrectly require an extra set of braces around such initializers.
Pull in r188718 from upstream clang trunk:
Handle init lists and _Atomic fields.
Fixes PR16931.
These fixes are needed for the atomic_flag type to work correctly in our stdatomic.h.
Requested by: theraven
|
254581 |
20-Aug-2013 |
dim |
Pull in r188716 from upstream clang trunk:
PR16727: don't try to evaluate a potentially value-dependent expression when checking for missing parens in &&/|| expressions.
This fixes an assertion encountered when building the lang/sdcc port.
Reported by: kwm
|
253802 |
30-Jul-2013 |
dim |
Pull in r186696 from upstream clang trunk:
This patch implements __get_cpuid_max() as an inline and __cpuid() and __cpuid_count() as macros to be compatible with GCC's cpuid.h. It also adds bit_<foo> constants for the various feature bits as described in version 039 (May 2011) of Intel's SDM Volume 2 in the description of the CPUID instruction. The list of bit_<foo> constants is a bit exhaustive (GCC doesn't do near this many). More bits could be added from a newer version of SDM if desired.
Patch by John Baldwin!
This should fix several ports which depend on this functionality being available.
MFC after: 1 week
|
252587 |
03-Jul-2013 |
dim |
Pull in r185446 from clang trunk:
Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout.
Reported by: glebius
|
251790 |
15-Jun-2013 |
andrew |
Pull in r183926 from LLVM trunk:
Allow clang to build __clear_cache on ARM.
__clear_cache is special. It needs no signature, but is a real function in compiler_rt or libgcc.
Patch by Andrew Turner.
This allows us to build the __clear_cache function in compiler-rt.
|
251785 |
15-Jun-2013 |
ed |
Pull in r184040 from upstream clang trunk:
Emit native implementations of atomic operations on FreeBSD/armv6.
Just like on Linux, FreeBSD/armv6 assumes the system supports ldrex/strex unconditionally. It is also used by the kernel. We can therefore enable support for it, like we do on Linux.
While there, change one of the unit tests to explicitly test against armv5 instead of armv7, as it actually tests whether libcalls are emitted.
|
251662 |
12-Jun-2013 |
dim |
Upgrade our copy of llvm/clang to 3.3 release.
Release notes are still in the works, these will follow soon.
MFC after: 1 month
|
251216 |
01-Jun-2013 |
ed |
Pull in r183033 and r183036 from LLVM trunk:
Add support for optimized (non-generic) atomic libcalls.
For integer types of sizes 1, 2, 4 and 8, libcompiler-rt (and libgcc) provide atomic functions that pass parameters by value and return results directly.
libgcc and libcompiler-rt only provide optimized libcalls for __atomic_fetch_*, as generic libcalls on non-integer types would make little sense. This means that we can finally make __atomic_fetch_* work on architectures for which we don't provide these operations as builtins (e.g. ARM).
This should fix the dreaded "cannot compile this atomic library call yet" error that would pop up once every while.
This should make it possible for me to get C11 atomics working on all of our platforms.
|
249423 |
12-Apr-2013 |
dim |
Upgrade our copy of llvm/clang to trunk r178860, in preparation of the upcoming 3.3 release (branching and freezing expected in a few weeks).
Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html>
An MFC is planned once the actual 3.3 release is finished.
|
248548 |
20-Mar-2013 |
andrew |
Pull in r177252 from upstream clang trunk:
Make sure to use same EABI version for external assembler as for integrated as.
This allows us to use gcc on a world built with clang on ARM.
|
247166 |
22-Feb-2013 |
dim |
Pull in r172354 from upstream clang trunk:
Refactor the x86 CPU name logic in the driver and pass -march and -mcpu flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer.
Fixes PR14697.
Pull in r175919 from upstream clang trunk:
Driver: Pass down the -march setting down to -cc1as on x86 too.
The assembler historically didn't make use of any target features, but this has changed when support for old CPUs that don't support long nops was added.
This should fix the long nops that still occurred in crt*.o, and possibly other object files, if the system was compiled for a CPU that does not support those, such as Geode.
Note that gcc on i386 also does not pass through any -march, -mcpu or -mtune setting to gas, but this has not caused any trouble yet, because gas defaults to i386.
Reported by: lev MFC after: 1 week
|
246259 |
02-Feb-2013 |
dim |
Pull in r170135 from upstream clang trunk:
Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user specifies not to. Dont build ASTMatchers with Rewriter disabled and StaticAnalyzer when it's disabled.
Without all those three, the clang binary shrinks (x86_64) from ~36MB to ~32MB (unstripped).
To disable these clang components, and get a smaller clang binary built and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the initial stages of buildworld, those extra components are already disabled automatically, to save some build time.
MFC after: 1 week
|
244640 |
23-Dec-2012 |
andrew |
Pull in r170096 from upstream clang trunk:
Initial support for FreeBSD on ARM.
|
244628 |
23-Dec-2012 |
dim |
Upgrade our copy of llvm/clang to 3.2 release.
Release notes for llvm: http://llvm.org/releases/3.2/docs/ReleaseNotes.html
Release notes for clang: http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html
MFC after: 2 weeks
|
243830 |
03-Dec-2012 |
dim |
Upgrade our copy of llvm/clang to r168974, from upstream's release_32 branch. This is effectively llvm/clang 3.2 RC2; the 3.2 release is coming soon.
|
242080 |
25-Oct-2012 |
ed |
Pull in r166498 from upstream clang trunk:
Add a new warning -Wmissing-variable-declarations, to warn about variables defined without a previous declaration. This is similar to -Wmissing-prototypes, but for variables instead of functions.
|
241163 |
03-Oct-2012 |
dim |
Pull in r164717 from upstream clang trunk:
Allow -MF to be used in combination with -E -M or -E -MM.
This should help with building the lang/ghc port.
MFC after: 1 week
|
239619 |
23-Aug-2012 |
dim |
Pull in r162360 from upstream clang trunk:
Merge existing attributes before processing pragmas in friend template declarations. Fixes pr13662.
This should help when building Firefox with libc++.
|
239462 |
20-Aug-2012 |
dim |
Upgrade our copy of llvm/clang to trunk r162107. With thanks to Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
|
238864 |
28-Jul-2012 |
dim |
Similar to what is already done for Linux, make clang not complain about unused -g, -emit-llvm or -w arguments when doing linking. E.g. invoking "clang -g foo.o -o foo" will now be silent.
Reported by: Jakub Lach <jakub_lach@mailplus.pl> MFC after: 1 week
|
238863 |
28-Jul-2012 |
dim |
Similar to r238472, let clang pass --enable-new-dtags to the linker invocation by default. Also make sure --hash-style=both is passed for the same arches as gcc, e.g. arm, sparc and x86.
X-MFC-with: r238472
|
238429 |
13-Jul-2012 |
dim |
Pull in r159895 from upstream clang trunk:
When marking virtual functions as used for a class' vtable, mark all functions which will appear in the vtable as used, not just those ones which were declared within the class itself. Fixes an issue reported as comment#3 in PR12763 -- we sometimes assert in codegen if we try to emit a reference to a function declaration which we've not marked as referenced. This also matches gcc's observed behavior.
This should fix clang assertions when building certain components of the LibreOffice port.
MFC after: 3 days
|
236260 |
29-May-2012 |
dim |
Pull in r156591 from upstream llvm trunk:
Allow unique_file to take a mode for file permissions, but default to user only read/write.
and r156592 from upstream clang trunk:
For final output files create them with mode 0664 to match other compilers and expected defaults.
This should fix clang creating files with mode 0600.
Reported by: James <james@hicag.org> MFC after: 3 days
|
236258 |
29-May-2012 |
dim |
For clang, similar to r236137, enable gnu hash generation for dynamic ELF binaries on x86.
|
236149 |
27-May-2012 |
dim |
Pull in r157212 from upstream clang trunk:
Revert r115805. An array type is required to have a range type, however, the range can be unknown for the upper bound.
Testcase to follow.
Part of rdar://11457152
This should fix ctfconvert producing error messages during kernel builds, similar to:
ERROR: scsi_all.c: die 24561: failed to retrieve array bounds
These were caused by incorrect debug information for flexible array members of structs.
MFC after: 3 days
|
235864 |
23-May-2012 |
dim |
Upgrade our copy of llvm/clang to 3.1 release. Release notes can be found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html
MFC after: 3 days
|
234982 |
03-May-2012 |
dim |
Upgrade our copy of llvm/clang to r155985, from upstream's release_31 branch. This brings us very close to the 3.1 release, which is planned for May 14th.
MFC after: 2 weeks
|
234353 |
16-Apr-2012 |
dim |
Upgrade our copy of llvm/clang to trunk r154661, in preparation of the upcoming 3.1 release (expected in a few weeks). Preliminary release notes can be found at: <http://llvm.org/docs/ReleaseNotes.html>
MFC after: 2 weeks
|
232894 |
12-Mar-2012 |
dim |
Pull in r145194 from upstream clang trunk:
Make our handling of MMX x SSE closer to what gcc does:
* Enabling sse enables mmx. * Disabling (-mno-mmx) mmx, doesn't disable sse (we got this right already). * The order in not important. -msse -mno-mmx is the same as -mno-mmx -msse.
Some configure scripts depend on this.
PR: i386/165968 MFC after: 3 days
|
228379 |
09-Dec-2011 |
dim |
Upgrade our copy of llvm/clang to 3.0 release. Release notes can be found at: http://llvm.org/releases/3.0/docs/ReleaseNotes.html
MFC after: 1 week
|
227739 |
19-Nov-2011 |
andreast |
Rename the linker emulation name for powerpc and powerc64. This is needed that we can also use the upstream binutils linker where we have to have a unique name for the FreeBSD emulation.
|
227737 |
19-Nov-2011 |
dim |
Pull in r144505 from upstream clang trunk:
Fix the signature of the getcontext builtin, eliminating incorrect warnings about its prototype.
This also adds a -W(no-)builtin-requires-header option, which can be used to enable or disable warnings of this kind.
MFC after: 1 week
|
227735 |
19-Nov-2011 |
dim |
Pull in r144110 from upstream clang trunk:
Mark the overloaded atomic builtins as having custom type checking, which they do. This avoids all of the default argument promotions that we (1) don't want, and (2) undo during that custom type checking, and makes sure that we don't run into trouble during template instantiation. Fixes llvm/clang PR11320.
MFC after: 1 week
|
226951 |
30-Oct-2011 |
dim |
Pull in r143305 and r143312 from upstream clang trunk, so using "clang -march=native" on AMD K10 family processors no longer errors out with "unknown target CPU 'amdfam10'". This also enables use of SSE4A.
Reported by: David Marec <david.marec@davenulle.org> MFC after: 3 days
|
226633 |
22-Oct-2011 |
dim |
Upgrade our copy of llvm/clang to r142614, from upstream's release_30 branch. This brings us very close to the 3.0 release, which is expected in a week or two.
MFC after: 1 week
|
226525 |
19-Oct-2011 |
dim |
Fix breakage introduced by r226518.
Spotted by: tinderbox, yanefbsd at gmail.com Pointy hat to: dim
|
226518 |
18-Oct-2011 |
dim |
Fix the way clang retrieves the major FreeBSD release number from the target triple, so that the __FreeBSD__ and __FreeBSD_cc_version builtin macros return the expected results.
Spotted by: nalitoja at gmail.com
|
224145 |
17-Jul-2011 |
dim |
Upgrade our copy of llvm/clang to r135360, from upstream's trunk.
|
223017 |
12-Jun-2011 |
dim |
Upgrade our copy of llvm/clang to r132879, from upstream's trunk.
|
221345 |
02-May-2011 |
dim |
Upgrade our copy of llvm/clang to r130700, from upstream's trunk.
|
220754 |
17-Apr-2011 |
dim |
For clang, make -mno-mmx imply -mno-3dnow. This is what gcc does.
Submitted by: arundel Obtained from: http://llvm.org/viewvc/llvm-project?view=rev&revision=129665
|
219077 |
27-Feb-2011 |
dim |
Update llvm/clang to trunk r126547.
There are several bugfixes in this update, but the most important one is to ensure __start_ and __stop_ symbols for linker sets and kernel module metadata are always emitted in object files:
http://llvm.org/bugs/show_bug.cgi?id=9292
Before this fix, if you compiled kernel modules with clang, they would not be properly processed by kldxref, and if they had any dependencies, the kernel would fail to load those. Another problem occurred when attempting to mount a tmpfs filesystem, which would result in 'operation not supported by device'.
|
219073 |
26-Feb-2011 |
dim |
Remove getDriver().Dir + /../libexec and /usr/libexec from clang's program paths. Unlike gcc, clang has no executables in libexec.
|
219072 |
26-Feb-2011 |
dim |
Remove misapplied space.
|
219011 |
24-Feb-2011 |
dim |
Recently, in upstream clang, a fix was done to add -L/usr/lib to the arguments passed to ld, when linking. This was to appease configure scripts in several ports, that grep for such a -L option in "${CC} -v" output, to determine the startup objects passed to ld. Note ld itself does not need to be told about /usr/lib, since it has this path builtin anyway.
However, if clang is built as a bootstrap tool during buildworld, it should not use *anything* outside ${WORLDTMP} to include or link with. The upstream fix to add -L/usr/lib breaks this assumption, and can thus cause libraries from /usr/lib to be linked in during buildworld.
This can result in buildworld dying during linking of zinject, where it picks up the wrong copy of libzpool.so, eventually leading to:
/usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference to `_rtld_get_stack_prot'
Fix this issue by not adding any hardcoded paths, but by looping through the run-time library path list, which is already correctly set for the bootstrap phase.
Reported by: datastream.freecity@gmail.com Pointy hat to: dim
|
218893 |
20-Feb-2011 |
dim |
Upgrade our copy of llvm/clang to r126079, from upstream's trunk.
This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
|
213786 |
13-Oct-2010 |
rdivacky |
Actually, check for any kind of "C string type".
Approved by: rpaulo (mentor)
|
213777 |
13-Oct-2010 |
rdivacky |
Extend this check for const unsigned char *.
Approved by: rpaulo (mentor)
|
213695 |
11-Oct-2010 |
dim |
Remove more unneeded files and directories from contrib/llvm. This still allows us to build tblgen and clang, and further reduces the footprint in the tree.
Approved by: rpaulo (mentor)
|
213694 |
11-Oct-2010 |
rpaulo |
Rework the analysis of the 'r' specifier. It turns out that we can't make it like xArg because they are different ('x' doesn't accept sign, but 'r' does). This fixes some warnings when building DDB with clang.
With help from: rdivacky
|
213681 |
11-Oct-2010 |
rpaulo |
Restore the support for the 'r' and the 'y' conversion specifiers, first added on r208987. These are undocumented but are part of printf(9).
|
213534 |
07-Oct-2010 |
dim |
Upgrade Clang and LLVM to the 2.8 release. See here for release notes: http://llvm.org/releases/2.8/docs/ReleaseNotes.html
Approved by: rpaulo (mentor)
|
213492 |
06-Oct-2010 |
dim |
Apply r207674 from the clangbsd project branch:
Make "clang -print-multi-os-directory" return "." on amd64, matching gcc's behaviour. This is needed because some ports use the option to determine the installation directory for their libraries.
Requested by: kwm Approved by: rpaulo (mentor)
|
212904 |
20-Sep-2010 |
dim |
Upgrade our Clang in base to r114020, from upstream's release_28 branch.
Approved-by: rpaulo (mentor)
|
211573 |
21-Aug-2010 |
rpaulo |
Modify clang so that when TOOLS_PREFIX is defined we register the CLANG_PREFIX macro. This changes the default header search path when we are building clang as part of cross-tools.
Submitted by: Dimitry Andric <dimitry at andric.com> Reviewed by: freebsd-current
|
210299 |
20-Jul-2010 |
ed |
Upgrade our Clang in base to r108428.
This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8.
Obtained from: projects/clangbsd
|
209107 |
12-Jun-2010 |
ed |
Do the branding right this time.
I've looked at other places in the source tree where CLANG_VENDOR is used and I suspect it might not be safe to use newlines here. CLANG_VENDOR should just be defined to "FreeBSD ", just like the latest Clang preview in OS X uses "Apple ". Properly use SVN_REVISION to define it to the imported revision of Clang. I do want to have a date in there, so slightly modify the code to support CLANG_VENDOR_SUFFIX.
|
208987 |
10-Jun-2010 |
rdivacky |
Introduce -fformat-extensions. A local FreeBSD extension used for additional printf modifiers in kernel.
Approved by: ed (mentor)
|
208962 |
09-Jun-2010 |
rdivacky |
Remove the commented out piece that slipped as a mismerge.
Approved by: ed (mentor)
|
208961 |
09-Jun-2010 |
rdivacky |
Adjust include paths to FreeBSD. Remove /usr/local/include and add /usr/include/clang/$VERSION (currently VERSION is 2.0).
Approved by: ed (mentor)
|
208959 |
09-Jun-2010 |
rdivacky |
Change the default CPU to i486 on i386 (architecture).
Approved by: ed (mentor)
|
208954 |
09-Jun-2010 |
rdivacky |
Import LLVM/clang from vendor stripped of docs/ test/ website/ www/ examples/ in llvm/ and/or llvm/contrib/clang/ respectively.
Approved by: ed (mentor) Approved by: core
|
208600 |
27-May-2010 |
rdivacky |
Update clang to r104832.
|
207632 |
04-May-2010 |
rdivacky |
Update clang to r103052.
|
207619 |
04-May-2010 |
rdivacky |
Update clang to r103004.
|
206275 |
06-Apr-2010 |
rdivacky |
Update clang to r100520.
|
206125 |
03-Apr-2010 |
rdivacky |
Update clang to r100285.
|
206084 |
02-Apr-2010 |
rdivacky |
Update clang to r100181.
|
205408 |
21-Mar-2010 |
rdivacky |
Update clang to r99115.
|
205219 |
16-Mar-2010 |
rdivacky |
Update clang to r98631.
|
204962 |
10-Mar-2010 |
rdivacky |
Update clang to r98164.
|
204793 |
06-Mar-2010 |
rdivacky |
Update clang to r97873.
|
204643 |
03-Mar-2010 |
rdivacky |
Update clang to 97654.
|
203955 |
16-Feb-2010 |
rdivacky |
Update clang to r96341.
|
202879 |
23-Jan-2010 |
rdivacky |
Update clang to r94309.
|
202379 |
15-Jan-2010 |
rdivacky |
Update clang to r93512.
|
201361 |
01-Jan-2010 |
rdivacky |
Updaet clang to 92395.
|
200583 |
15-Dec-2009 |
rdivacky |
Update clang to 91430.
|
199990 |
01-Dec-2009 |
rdivacky |
Update clang to r90226.
|
199512 |
19-Nov-2009 |
rdivacky |
Update clang to r89337.
|
199482 |
18-Nov-2009 |
rdivacky |
Update clang to r89205.
|
198954 |
05-Nov-2009 |
rdivacky |
Update clang to r86140.
|
198893 |
04-Nov-2009 |
rdivacky |
Update clang to r86025.
|
198398 |
23-Oct-2009 |
rdivacky |
Update clang to r84949.
|
198143 |
15-Oct-2009 |
rdivacky |
Delete some more files.
|
198112 |
15-Oct-2009 |
rdivacky |
Update clang to 84175.
|
198092 |
14-Oct-2009 |
rdivacky |
Update clang to r84119.
|
195341 |
04-Jul-2009 |
ed |
Import Clang r74788.
|
195099 |
27-Jun-2009 |
ed |
Import Clang r74383.
|
194755 |
23-Jun-2009 |
ed |
Import Clang r73984.
|
194711 |
23-Jun-2009 |
ed |
Import Clang r73954.
|
194613 |
22-Jun-2009 |
ed |
Update Clang sources to r73879.
|
194179 |
14-Jun-2009 |
ed |
Import Clang r73340.
|
193725 |
08-Jun-2009 |
ed |
Import Clang r73070.
|
193631 |
07-Jun-2009 |
ed |
Import Clang r73021.
|
193576 |
06-Jun-2009 |
ed |
Import clang, at r72995.
|
193401 |
03-Jun-2009 |
ed |
Import Clang, at r72805.
|
193380 |
03-Jun-2009 |
ed |
Import Clang, at r72770.
|
193326 |
02-Jun-2009 |
ed |
Import Clang, at r72732.
|