ada.eclass: filter -Warray-bounds

This could maybe be done in theory for ADAFLAGS only but not sure how well
that would work with LTO anyway.

Bug: https://gcc.gnu.org/PR116226
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-03 03:10:22 +00:00
parent c239c7e41c
commit 4c366be032
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -31,6 +31,8 @@ esac
if [[ -z ${_ADA_ECLASS} ]]; then
_ADA_ECLASS=1
inherit flag-o-matic
# @ECLASS_VARIABLE: ADA_DEPS
# @OUTPUT_VARIABLE
# @DESCRIPTION:
@ -471,6 +473,9 @@ ada_setup() {
unset EADA
# https://gcc.gnu.org/PR116226
filter-flags -Warray-bounds
if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then
if use "ada_target_${_ADA_SUPPORTED_IMPLS[0]}"; then
# Only one supported implementation, enable it explicitly