commit: e34b593e10a86ffc61d54f113729b3fb556b46c0 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> AuthorDate: Wed May 10 01:28:12 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu May 11 01:24:41 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e34b593e
install-qa-check.d/90config-impl-decl: Skip compiler built-ins Bug: https://bugs.gentoo.org/879687 Bug: https://bugs.gentoo.org/898232 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> Signed-off-by: Sam James <sam <AT> gentoo.org> bin/install-qa-check.d/90config-impl-decl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bin/install-qa-check.d/90config-impl-decl b/bin/install-qa-check.d/90config-impl-decl index 7eb7dcff9..43be4222b 100644 --- a/bin/install-qa-check.d/90config-impl-decl +++ b/bin/install-qa-check.d/90config-impl-decl @@ -31,6 +31,17 @@ is_in() { return 1 } +add_default_skips() { + # Skip built-in functions provided by the compiler + QA_CONFIG_IMPL_DECL_SKIP+=( + "__builtin_*" + # https://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html + "__sync_*" + # https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html + "__atomic_*" + ) +} + find_log_targets() { local log_targets=( 'config.log' @@ -68,6 +79,8 @@ config_impl_decl_check() { local re_asc local is_utf8 + add_default_skips + # Given the UTF-8 character type, both gcc and clang may enclose the # function name between the LEFT SINGLE QUOTATION MARK and RIGHT SINGLE # QUOTATION MARK codepoints.