[llvm-branch-commits] [openmp] c0097c7 - [OpenMP][Libomptarget] Remove possible harmful copy constructor call for RTLsTy

2021-02-02 Thread Atmn Patel via llvm-branch-commits

Author: Atmn Patel
Date: 2021-02-02T22:04:20-05:00
New Revision: c0097c784179e6f927ed8ae6b28796faee2fea61

URL: 
https://github.com/llvm/llvm-project/commit/c0097c784179e6f927ed8ae6b28796faee2fea61
DIFF: 
https://github.com/llvm/llvm-project/commit/c0097c784179e6f927ed8ae6b28796faee2fea61.diff

LOG: [OpenMP][Libomptarget] Remove possible harmful copy constructor call for 
RTLsTy

>From https://bugs.llvm.org/show_bug.cgi?id=48973, we know that
`std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, PM->RTLs)` causes compile
time problems in libstdc++v3 5.3.1. This is because there was a defect in the
standard regarding the `call_once` (LWG 2442). This was fixed in libstdc++ soon
thereafter, but there are likely other standard libraries where this will fail.

By matching this function call with the other one, we fix this bug.

Differential Revision: https://reviews.llvm.org/D95769

Added: 


Modified: 
openmp/libomptarget/src/interface.cpp

Removed: 




diff  --git a/openmp/libomptarget/src/interface.cpp 
b/openmp/libomptarget/src/interface.cpp
index 239570935cb2..cf6d36960c75 100644
--- a/openmp/libomptarget/src/interface.cpp
+++ b/openmp/libomptarget/src/interface.cpp
@@ -94,7 +94,7 @@ EXTERN void __tgt_register_requires(int64_t flags) {
 /// adds a target shared library to the target execution image
 EXTERN void __tgt_register_lib(__tgt_bin_desc *desc) {
   TIMESCOPE();
-  std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, PM->RTLs);
+  std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, &PM->RTLs);
   for (auto &RTL : PM->RTLs.AllRTLs) {
 if (RTL.register_lib) {
   if ((*RTL.register_lib)(desc) != OFFLOAD_SUCCESS) {



___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits


[llvm-branch-commits] [clang] b6d2402 - [docs] Add release notes for things I've done for the 12.x release branch.

2021-02-02 Thread Martin Storsjö via llvm-branch-commits

Author: Martin Storsjö
Date: 2021-02-02T15:08:17+02:00
New Revision: b6d2402e319be00592908b2c9cb63fccdb481008

URL: 
https://github.com/llvm/llvm-project/commit/b6d2402e319be00592908b2c9cb63fccdb481008
DIFF: 
https://github.com/llvm/llvm-project/commit/b6d2402e319be00592908b2c9cb63fccdb481008.diff

LOG: [docs] Add release notes for things I've done for the 12.x release branch.

Added: 


Modified: 
clang/docs/ReleaseNotes.rst
lld/docs/ReleaseNotes.rst
llvm/docs/ReleaseNotes.rst

Removed: 




diff  --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 3001d6feb631..a34cd512ca59 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -150,6 +150,9 @@ Attribute Changes in Clang
 Windows Support
 ---
 
+- Implicitly add ``.exe`` suffix for MinGW targets, even when cross compiling.
+  (This matches a change from GCC 8.)
+
 C Language Changes in Clang
 ---
 

diff  --git a/lld/docs/ReleaseNotes.rst b/lld/docs/ReleaseNotes.rst
index e0b17ca3e030..ea1403888eba 100644
--- a/lld/docs/ReleaseNotes.rst
+++ b/lld/docs/ReleaseNotes.rst
@@ -35,12 +35,28 @@ Breaking changes
 COFF Improvements
 -
 
-* ...
+* Error out clearly if creating a DLL with too many exported symbols.
+  (`D86701 `_)
 
 MinGW Improvements
 --
 
-* ...
+* Enabled dynamicbase by default. (`D86654 `_)
+
+* Tolerate mismatches between COMDAT section sizes with 
diff erent amount of
+  padding (produced by binutils) by inspecting the aux section definition.
+  (`D86659 `_)
+
+* Support setting the subsystem version via the subsystem argument.
+  (`D88804 `_)
+
+* Implemented the GNU -wrap option.
+  (`D89004 `_,
+  `D91689 `_)
+
+* Handle the ``--demangle`` and ``--no-demangle`` options.
+  (`D93950 `_)
+
 
 MachO Improvements
 --

diff  --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst
index de8431fe3908..f2eb53778406 100644
--- a/llvm/docs/ReleaseNotes.rst
+++ b/llvm/docs/ReleaseNotes.rst
@@ -92,6 +92,25 @@ Changes to TableGen
   uses the "`...`" range punctuation (e.g., ``{0...9}``). The hyphen syntax
   is deprecated.
 
+Changes to the AArch64 Backend
+--
+
+During this release ...
+
+* Lots of improvements to generation of Windows unwind data; the unwind
+  data is optimized and written in packed form where possible, reducing
+  the size of unwind data (pdata and xdata sections) by around 60%
+  compared with LLVM 11. The generation of prologs/epilogs is tweaked
+  when targeting Windows, to increase the chances of being able to use
+  the packed unwind info format.
+
+* Support for creating Windows unwind data using ``.seh_*`` assembler
+  directives.
+
+* Produce proper assembly output for the Windows target, including
+  ``:lo12:`` relocation specifiers, to allow the assembly output
+  to actually be assembled.
+
 Changes to the ARM Backend
 --
 



___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits