diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-01-20 11:18:34 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-01-20 12:29:29 +0000 |
commit | 109f8af3d3c5424f103ceef5d77f5a447fb931ce (patch) | |
tree | 633065fdd23980414e253b86cc8f3a8265b86bd7 /gcc/go | |
parent | 5929f253fcdbf24fd47706dd11aafdeac5e9ecb6 (diff) | |
download | gcc-109f8af3d3c5424f103ceef5d77f5a447fb931ce.zip gcc-109f8af3d3c5424f103ceef5d77f5a447fb931ce.tar.gz gcc-109f8af3d3c5424f103ceef5d77f5a447fb931ce.tar.bz2 |
libstdc++: Use Clang attribute instead of __constinit
Clang doesn't support the __constinit extension that we use pre-C++20,
but it does have its own equivalent attribute that can be used instead.
This makes it a little easier to use Clang to build libstdc++ (which
isn't supported. but is sometimes attempted for esoteric targets).
libstdc++-v3/ChangeLog:
* src/c++11/cxx11-ios_failure.cc (__constinit): Define as
equivalent attribute for Clang.
* src/c++11/future.cc (__constinit): Likewise.
* src/c++11/system_error.cc (__constinit): Likewise.
* src/c++17/memory_resource.cc (__constinit): Likewise.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions