diff options
author | Matt Turner <mattst88@gentoo.org> | 2023-05-09 21:28:12 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-11 02:24:41 +0100 |
commit | e34b593e10a86ffc61d54f113729b3fb556b46c0 (patch) | |
tree | d07ce2b4075a208fdbba4b8f922bd248d4b0c5ed /bin | |
parent | install-qa-check.d/90config-impl-decl: Allow wildcards in QA_CONFIG_IMPL_DECL... (diff) | |
download | portage-e34b593e10a86ffc61d54f113729b3fb556b46c0.tar.gz portage-e34b593e10a86ffc61d54f113729b3fb556b46c0.tar.bz2 portage-e34b593e10a86ffc61d54f113729b3fb556b46c0.zip |
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@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/install-qa-check.d/90config-impl-decl | 13 |
1 files changed, 13 insertions, 0 deletions
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. |