-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[builtins] Avoid using long double in FreeBSD standalone environment #76175
[builtins] Avoid using long double in FreeBSD standalone environment #76175
Conversation
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
compiler-rt/lib/builtins/int_types.h
Outdated
@@ -156,7 +156,9 @@ typedef struct { | |||
// still makes it 80 bits. Clang will match whatever compiler it is trying to | |||
// be compatible with. On 32-bit x86 Android, long double is 64 bits, while on | |||
// x86_64 Android, long double is 128 bits. | |||
#if (defined(__i386__) || defined(__x86_64__)) && \ | |||
#if !CRT_HAS_FLOATING_POINT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be cleaner to just hoist the #if CRT_HAS_FLOATING_POINT
from line 225 above this check and omit all floating point typedefs etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I agree, move the HAS_80_BIT_LONG_DOUBLE
into the else
clause around L129.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, but you both seem to suggest different things. :)
So @arichardson seems to suggest extending the #if CRT_HAS_FLOATING_POINT
block from line 132 (just after the #if defined(__FreeBSD__) && defined(_STANDALONE)
line) to the next-to-last #endif
(just before #endif // INT_TYPES_H
). I.e., remove the #endif
on line 142 (just after the float_bits
and double_bits
unions), and also remove #if CRT_HAS_FLOATING_POINT
on line 223 (just before the #if __STDC_VERSION__ >= 199901L
line. Effectively, this makes everything from line 132 onward disappear when floating point isn't supported.
@compnerd seems to to suggest only moving only the block that defines HAS_80BIT_LONG_DOUBLE
(lines 154 through 166) to just after line 129. I.e. in the #else
case of the #if defined(__FreeBSD__) && defined(_STANDALONE)
block.
Have I got that right? I think @arichardson's suggestion is somewhat more clear, and I would also like to add comments in the #endif
directives to indicated what block they belong to. I.e. #endif // CRT_HAS_FLOATING_POINT
etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some interleaving definitions which would be removed if it were extended. If there's no references to them, extending the else clause should be okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can see, all the types that are defined (in the original int_types.h
) from line 124 onward, so after the #endif // CRT_HAS_128BIT
block, are specifically meant for floating point support in some form or other. I wouldn't want to break any other uses though, there are a whole bunch of powerpc64 and 128-bit defines in between, and not all of them fall under CRT_HAS_FLOATING_POINT
. I will just move only the really required stuff to the top.
Hmm I need to do a bit more work on this, since
@arichardson do you remember the details about this? I think (The powerpc64 failures seem to be something entirely different, these are calls to undeclared |
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
@arichardson the problem, at least on FreeBSD, is that we've been building I.e. in older versions of compiler-rt, functions like |
After 05a4212 a number of long double related declarations are enabled in `int_types.h`, whenever the CPU architecture and platform support it. However, this does not work with FreeBSD's standalone environment, which disallows any use of floating point. In add98b2 this was made conditional with `CRT_HAS_FLOATING_POINT`, so extend the block guarded by that define to include all floating point related declarations.
9971e98
to
d75acf3
Compare
Ok, in the end it was much easier to just extend the |
fix libsa including compiler-rt builtins.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, this seems reasonable. I still wonder if anyone is going to be impacted by the missing type definitions, but if they are, we can deal with them then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the uqwords struct should be hoisted before the #ifdef
block for the floating point types but otherwise this looks good to me.
@@ -139,7 +139,6 @@ typedef union { | |||
udwords u; | |||
double f; | |||
} double_bits; | |||
#endif | |||
|
|||
typedef struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this struct not needed outside of the no-fp case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, uqwords
is only used in the subsequent declarations of the xf_bits
union (for 80 bit long doubles) and the tf_bits
union (for 128 bit quads). (This is not the case for the earlier udwords
, btw)
The tf functions are not long double, they are tetra-float, i.e. 128-bit floating point. Using long double was incorrect for x86 which should only be using it for the xf functions. So you should remove the xf files for !x86. The other option would be to use the same pattern as in the tf files where they compile to nothing if 80-bit floats are not available (this would require updating the ifdef guards and is probably a bit more work than just changing the makefile). |
Yes, I've done this in DimitryAndric/freebsd-src@2d20348 , effectively moving |
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
fix libsa including compiler-rt builtins.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
fix libsa including compiler-rt builtins.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
fix libsa including compiler-rt builtins.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
fix libsa including compiler-rt builtins.
commit a7fb520 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 22:50:52 2024 +0100 Update libllvm for new RISCVGenMacroFusion.inc tblgen header. commit 92e38d7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 19:01:09 2024 +0100 Update libllvm for removed file. commit 1f05b14 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 16:59:11 2024 +0100 Bump llvm-project version numbers to llvmorg-18.1.0-rc2-0-gc6c86965d967. commit dd2f072 Merge: 024a010 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:58:02 2024 +0100 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month commit 024a010 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 12:41:51 2024 +0100 [libc++] Rename __bit_reference template parameter to avoid conflict As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference` contains a template `__fill_n` with a bool `_FillValue` parameter. Unfortunately there is a relatively widely used piece of scientific software called NetCDF, which exposes a (C) macro `_FillValue` in its public headers. When building the NetCDF C++ bindings, this quickly leads to compilation errors when the macro interferes with the template in `__bit_reference`. Rename the parameter to `_FillVal` to avoid the conflict. commit 4721947 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Feb 5 10:16:17 2024 +0100 Merge commit 5f4ee5a2dfa9 from llvm-project (by Shanzhi): [Clang][AST] Fix a crash on attaching doc comments (#78716) This crash is basically caused by calling `ASTContext::getRawCommentForDeclNoCacheImp` with its input arguments `RepresentativeLocForDecl` and `CommentsInTheFile` refering to different files. A reduced reproducer is provided in this patch. After the source locations for instantiations of funtion template are corrected in the commit 256a0b298c68b89688b80350b034daf2f7785b67, the variable `CommitsInThisFile` in the function `ASTContext::attachCommentsToJustParsedDecls` would refer to the source file rather than the header file for implicit function template instantiation. Therefore, in the first loop in `ASTContext::attachCommentsToJustParsedDecls`, `D` should also be adjusted for relevant scenarios like the second loop. Fixes #67979 Fixes #68524 Fixes #70550 This should fix a segfault when compiling graphics/gdal. commit d4389cf Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 28 21:34:42 2024 +0100 Merge commit 6e4930c67508 from llvm-project (by Alexander Kornienko): Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)" This reverts commit 924701311aa79180e86ad8ce43d253f27d25ec7d. Causes compilation errors on valid code, see llvm/llvm-project#77768 (comment). commit 638a121 Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:21:16 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18361-g22683463740e (and 18.1.0). commit fb7b27d Merge: 2ed68de 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:04:14 2024 +0100 Merge llvm-project release/18.x llvmorg-18-init-18361-g22683463740e This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18-init-18361-g22683463740e. PR: 276104 MFC after: 1 month commit 2ed68de Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:03:20 2024 +0100 Tentatively apply libcxxrt/libcxxrt#27. commit a0cf20a Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 26 16:02:51 2024 +0100 libc++: use build defines and flags similar to upstream. commit 66f3903 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 09:27:12 2024 +0100 Add one more header to libc++. commit ddf7238 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 00:39:43 2024 +0100 Update libclang, libllvm, llc and lli Makefiles. commit e025714 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:35:46 2024 +0100 Update libc++ generated files, and add __assertion_handler. commit e7cb0e2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:31:39 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-18359-g93248729cfae. commit efd9603 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:23:36 2024 +0100 Update contrib/llvm-project/FREEBSD-Xlist. commit 550d813 Merge: 74464e8 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:17:23 2024 +0100 Merge llvm-project main llvmorg-18-init-18359-g93248729cfae This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. PR: 276104 MFC after: 1 month commit 74464e8 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 15 00:18:22 2024 +0100 Tabify libc++ Makefile. commit 1fbb16e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 14 14:20:42 2024 +0100 Redo libc++ customizations: * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization commit f6cfebe Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 14:47:52 2024 +0100 Update libc++ module.modulemap. commit 2c45cec Author: Dimitry Andric <dim@FreeBSD.org> Date: Fri Jan 12 10:57:07 2024 +0100 Fixup libllvm Makefile for DWARFLinker stuff being moved around. commit 1f35f87 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:30:38 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16864-g3b3ee1f53424. commit 7b02ddb Merge: 6ec4eed 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:29:01 2024 +0100 Merge llvm-project main llvmorg-18-init-16864-g3b3ee1f53424 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. PR: 276104 MFC after: 1 month commit 6ec4eed Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:49:11 2024 +0100 Update libllvm and llvm-tblgen Makefiles. commit b861bf2 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 14:48:50 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16595-g7c00a5be5cde. commit 42aaf55 Merge: c8faa43 aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 21:00:28 2024 +0100 Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. PR: 276104 MFC after: 1 month commit c8faa43 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 17:03:13 2024 +0100 Tentatively merge llvm/llvm-project#77242: [libcxx] Re-include <osreldate.h> in __config for FreeBSD In 0a97720d0197 some changes were made to `__config` for assuming that `__BYTE_ORDER__` is always present. However, this deleted a `<osreldate.h>` include for FreeBSD, which is required to get the value of `__FreeBSD_version`, and that is used later in the file to determine whether `_LIBCPP_C_HAS_NO_GETS` needs to be enabled. Include `<osreldate.h>` just after the other includes used for feature detection, to fix this. Note that when FreeBSD 13 is EOLed, this can be removed, as then all supported FreeBSD versions will no longer have `gets()`. commit 9db148e Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:32:29 2024 +0100 Add two FreeBSD customizations to libc++, to better support ports usage of older clang versions: * Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler version checks, to avoid any warnings about support. This makes some ports that use -Werror fall over. * When using clang < 15.0, avoid using a type visibility attribute on the std namespace, as older versions of clang do not support this. commit ab1dc4a Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Jan 7 12:28:35 2024 +0100 Fix up ObsoleteFiles entries for libc++. commit 626eed6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Jan 6 20:55:41 2024 +0100 Add more clang 17 ObsoleteFiles entries. commit d23764d Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 20:35:30 2024 +0100 Add files needed for lldb FreeBSD-Kernel DynamicLoader. commit 7656fbd Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:22:03 2024 +0100 Bump llvm-project version numbers to llvmorg-18-init-16003-gfc5f51cf5af4. commit 9739ebd Merge: b8840b4 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 19:04:11 2024 +0100 Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month commit b8840b4 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:09:41 2024 +0100 compiler-rt builtins: move 80-bit long double functions into their own block, only enabling it for x86, and add more 128-bit quad functions. commit b3086e6 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 2 17:07:31 2024 +0100 Revert upstream commit 0e46b49de433: Reapply "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" This reverts commit c398fa009a47eb24f88383d5e911e59e70f8db86. PPC backend was fixed in 2f82662ce901c6666fceb9c6c5e0de216a1c9667 Since it causes an assertion failure building /sys/dev/fb/vga.c: llvm/llvm-project#76416 commit c71a0fe Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Jan 1 18:58:15 2024 +0100 Apply llvmorg-18-init-15846-g953ae94149f0. commit fab14fd Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 19:20:33 2023 +0100 Add new files and remove deleted files from various Makefiles. commit 5d05e48 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:50:08 2023 +0100 Bump llvm-project version numbers to llvmorg-18-init-15692-g007ed0dccd6a. commit 678f56a Merge: 5f710e3 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 18:35:41 2023 +0100 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. PR: 276104 MFC after: 1 month commit 5f710e3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 23:30:02 2023 +0100 Tentatively apply llvm/llvm-project#76175, to fix libsa including compiler-rt builtins. commit bfd4f0d Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 16:56:34 2023 +0100 Add several new builtins to compiler-rt, and enable quad support for amd64. commit 60b6608 Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Dec 21 14:47:43 2023 +0100 Use -Wno-vla-cxx-extension for libomp, since clang 18 complains. commit b051bbb Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:05:48 2023 +0100 Update libomp generated headers. commit 98d0e7c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 23:00:26 2023 +0100 Update libclang_rt makefiles. commit a08a308 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 21:41:18 2023 +0100 Update build glue for libc++. commit 326d983 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Dec 20 19:47:22 2023 +0100 Fix up clang version in lib/libclang_rt/compiler-rt-vars.mk. commit 325ba5b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 23:43:32 2023 +0100 Update build glue to build lldb. commit 612cd33 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:54:32 2023 +0100 Regenerate lib/clang/liblldb/LLDBWrapLua.cpp. commit 12d2341 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 21:48:16 2023 +0100 Update build glue to build llvm extra tools. commit bd80bb1 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 20:10:38 2023 +0100 Update build glue to build full clang (with static analyzer). commit 0e60a9e Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 19:30:46 2023 +0100 Update build glue to build default llvm tools for world. commit 1e1229d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:08 2023 +0100 Add new files to libclang, and re-sort. commit 80bc357 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 17:40:00 2023 +0100 Add new files to libllvm, and re-sort. commit 220597d Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:31 2023 +0100 Add newly introduced .inc files to libclang. commit daeeb74 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 15:37:11 2023 +0100 Cleanup removed files from libclang. commit 69a6c58 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:34:00 2023 +0100 After llvm/llvm-project@ac182deee8287 RISCV's global isel td file got split off to RISCVGISel.td, so handle that in libllvm's Makefile. commit e27e76b Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Dec 19 12:27:35 2023 +0100 Cleanup removed files from libllvm. commit fa84ac3 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:52:45 2023 +0100 Update Makefile for llvm-tblgen. commit d43e62d Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:40:01 2023 +0100 Update FREEBSD-Xlist for llvm 18. commit a3780ea Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 22:38:45 2023 +0100 Bump llvm-project numbers from 17.0.6 to 18.0.0. commit 5d469ef Merge: 8758bf0 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 18 21:30:12 2023 +0100 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month commit 4fdf604 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Feb 7 15:37:28 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. commit 2d835ae Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 25 19:03:34 2024 +0100 Vendor import of llvm-project branch release/18.x llvmorg-18-init-18361-g22683463740e. commit 4df029c Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 24 20:11:41 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae, the last commit before the upstream release/18.x branch was created. commit 950076c Author: Dimitry Andric <dim@FreeBSD.org> Date: Thu Jan 11 19:24:21 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16864-g3b3ee1f53424. commit aca2e42 Author: Dimitry Andric <dim@FreeBSD.org> Date: Tue Jan 9 20:58:18 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16595-g7c00a5be5cde. commit 77dbea0 Author: Dimitry Andric <dim@FreeBSD.org> Date: Wed Jan 3 17:57:07 2024 +0100 Vendor import of llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. commit 99aabd7 Author: Dimitry Andric <dim@FreeBSD.org> Date: Mon Dec 25 14:49:57 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15692-g007ed0dccd6a. commit 312c0ed Author: Dimitry Andric <dim@FreeBSD.org> Date: Sun Dec 17 21:41:09 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb. commit b1c7353 Author: Dimitry Andric <dim@FreeBSD.org> Date: Sat Dec 9 14:28:42 2023 +0100 Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1.
fix libsa including compiler-rt builtins.
fix libsa including compiler-rt builtins.
This fixes libsa including compiler-rt builtins. PR: 276104 MFC after: 1 month
This fixes libsa including compiler-rt builtins. PR: 276104 MFC after: 1 month (cherry picked from commit 3d68ee6)
This fixes libsa including compiler-rt builtins. PR: 276104 MFC after: 1 month (cherry picked from commit 3d68ee6)
This fixes libsa including compiler-rt builtins. PR: 276104 MFC after: 1 month
After 05a4212 a number of long double related declarations are enabled in
int_types.h
, whenever the CPU architecture and platform support it. However, this does not work with FreeBSD's standalone environment, which disallows any use of floating point.In add98b2 this was made conditional with
CRT_HAS_FLOATING_POINT
, so use that macro to also determine whetherHAS_80_BIT_LONG_DOUBLE
can be turned on.