diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-07-03 21:09:08 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2019-07-03 21:09:08 +0000 |
commit | f370ebac2086dbbf34007d591b59eded75164f59 (patch) | |
tree | 011b6e6eb910b4ba72f1fa90842173c549bfffad /libstdc++-v3/ChangeLog | |
parent | 46f45280c2a0b80cade7dba62edbfdb09812fd78 (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@273024 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1ca540f3ede..147ac95b390 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2019-07-03 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-06-27 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/85494 use rand_s in std::random_device |