diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-06-22 21:10:57 +0200 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-06-23 01:31:09 +0200 |
commit | 56a33ba3dd2bfd411e77946871814e98d92ec2fa (patch) | |
tree | bbd4880ad479e244bb30cfb96c98231f12df7742 /libcxx/utils/generate_feature_test_macro_components.py | |
parent | 758504b8ab64cff98a862a4f4e022ab4e069f3f1 (diff) | |
download | llvm-56a33ba3dd2bfd411e77946871814e98d92ec2fa.tar.gz |
[libc++] Implement P0154R1 (Hardware inference size)
`__GCC_CONSTRUCTIVE_SIZE` and `__GCC_DESTRUCTIVE_SIZE` are available since GCC 12. I'm assuming clang will also implement these for compatability with libstdc++.
Reviewed By: ldionne, #libc
Spies: h-vetinari, libcxx-commits, arichardson
Differential Revision: https://reviews.llvm.org/D122276
Diffstat (limited to 'libcxx/utils/generate_feature_test_macro_components.py')
-rwxr-xr-x | libcxx/utils/generate_feature_test_macro_components.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py index f1977b58b704..0e9ae78efe22 100755 --- a/libcxx/utils/generate_feature_test_macro_components.py +++ b/libcxx/utils/generate_feature_test_macro_components.py @@ -329,8 +329,9 @@ feature_test_macros = [ add_version_header(x) for x in [ }, { "name": "__cpp_lib_hardware_interference_size", "values": { "c++17": 201703 }, + "test_suite_guard": "defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE)", + "libcxx_guard": "defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE)", "headers": ["new"], - "unimplemented": True, }, { "name": "__cpp_lib_has_unique_object_representations", "values": { "c++17": 201606 }, |