From: Philip Herron Date: Wed, 29 Mar 2023 15:49:40 +0000 (+0100) Subject: gccrs: Add missing known attribute stable X-Git-Tag: basepoints/gcc-15~2728 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e275538169881fecbb8a347b71b2130ebf2f3cf5;p=thirdparty%2Fgcc.git gccrs: Add missing known attribute stable Fixes #2025 gcc/rust/ChangeLog: * util/rust-attributes.cc: Add stable to the table of known attributes Signed-off-by: Philip Herron --- diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc index 55f3aa21ef63..941d4459bd4b 100644 --- a/gcc/rust/util/rust-attributes.cc +++ b/gcc/rust/util/rust-attributes.cc @@ -46,7 +46,8 @@ static const BuiltinAttrDefinition __definitions[] {"target_feature", CODE_GENERATION}, // From now on, these are reserved by the compiler and gated through // #![feature(rustc_attrs)] - {"rustc_inherit_overflow_checks", CODE_GENERATION}}; + {"rustc_inherit_overflow_checks", CODE_GENERATION}, + {"stable", STATIC_ANALYSIS}}; BuiltinAttributeMappings * BuiltinAttributeMappings::get ()