commit:     4c366be03271669cbc8f691d62a7c4ddc73eda9b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  3 03:10:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec  3 03:11:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c366be0

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 <AT> gentoo.org>

 eclass/ada.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 2f68727c519b..8a029def018e 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -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

Reply via email to