r273832 - /branches/gcc-9-branch/libstdc++-v3/C...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Jul 26 13:36:00 GMT 2019

Author: redi
Date: Fri Jul 26 13:36:36 2019
New Revision: 273832

URL: https://gcc.gnu.org/viewcvs?rev=273832&root=gcc&view=rev
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)
	instead of __is_identifier to detect Clang support.


More information about the Libstdc++-cvs mailing list