aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-07-26 13:36:36 +0000
committerJonathan Wakely <jwakely@redhat.com>2019-07-26 13:36:36 +0000
commit277805b1c3354c542b643b1d107dda21125f7af4 (patch)
tree8cabb880c2b4aef3967c456f6324a224d6ad0671 /libstdc++-v3
parentf5ba42eb97b32a9e1dd9786e3d6f021e1a450967 (diff)
Fix preprocessor checks for Clang builtins
Clang seems to define built-ins that start with "__builtin_" as non-keywords, which means that we need to use __has_builtin to detect them, not __is_identifier. The built-ins that don't start with "__builtin_" are keywords, and can only be detected using __is_identifier and not by __has_builtin. Backport from mainline 2019-07-02 Jonathan Wakely <jwakely@redhat.com> * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER) (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin instead of __is_identifier to detect Clang support. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-9-branch@273832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1c6e5592bf4..d60df1790cd 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,6 +1,15 @@
2019-07-26 Jonathan Wakely <jwakely@redhat.com>
Backport from mainline
+ 2019-07-02 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER)
+ (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin
+ instead of __is_identifier to detect Clang support.
+
+2019-07-26 Jonathan Wakely <jwakely@redhat.com>
+
+ Backport from mainline
2019-05-23 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/status_cxx2017.xml: Add feature test macro for