[gcc r15-7649] libstdc++: Add parentheses around _GLIBCXX_HAS_BUILTIN definition
Jonathan Wakely
redi@gcc.gnu.org
Thu Feb 20 11:45:13 GMT 2025
https://gcc.gnu.org/g:57f65c5c027c7c075c2773a857304f341b9dea1a
commit r15-7649-g57f65c5c027c7c075c2773a857304f341b9dea1a
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Feb 19 14:45:16 2025 +0000
libstdc++: Add parentheses around _GLIBCXX_HAS_BUILTIN definition
This allows _GLIBCXX_HAS_BUILTIN (or _GLIBCXX_USE_BUILTIN_TRAIT) to be
used as part of a larger logical expression.
libstdc++-v3/ChangeLog:
* include/bits/c++config (_GLIBCXX_HAS_BUILTIN): Add parentheses.
Diff:
---
libstdc++-v3/include/bits/c++config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config
index b0ca6579cfb8..07f75ea66595 100644
--- a/libstdc++-v3/include/bits/c++config
+++ b/libstdc++-v3/include/bits/c++config
@@ -885,7 +885,7 @@ namespace __gnu_cxx
#ifdef __has_builtin
# ifdef __is_identifier
// Intel and older Clang require !__is_identifier for some built-ins:
-# define _GLIBCXX_HAS_BUILTIN(B) __has_builtin(B) || ! __is_identifier(B)
+# define _GLIBCXX_HAS_BUILTIN(B) (__has_builtin(B) || ! __is_identifier(B))
# else
# define _GLIBCXX_HAS_BUILTIN(B) __has_builtin(B)
# endif
More information about the Libstdc++-cvs
mailing list