aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-03-29 16:49:40 +0100
committerPhilip Herron <herron.philip@googlemail.com>2023-03-30 14:43:48 +0100
commit7851d384452728deccaac13db6d335e0c1f28651 (patch)
tree524baf6150dfda5bc50069cbb96331ceec01cd7b /gcc
parent5055bd893969afbe00ad74882ad0d1fc19fdddea (diff)
downloadgcc-7851d384452728deccaac13db6d335e0c1f28651.zip
gcc-7851d384452728deccaac13db6d335e0c1f28651.tar.gz
gcc-7851d384452728deccaac13db6d335e0c1f28651.tar.bz2
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 <herron.philip@googlemail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/util/rust-attributes.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc
index 6df00ad..6e6f48b 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 ()