aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-28 15:37:15 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:49:34 +0100
commitce1ca503d2baf64633f807c70dcfc1d10e264578 (patch)
tree88e07e521bedc313aba4e072d4cb285e1fbb2c3f /gcc
parent2420506ddf844a7f53110c6d6a0ebc957769f0d5 (diff)
downloadgcc-ce1ca503d2baf64633f807c70dcfc1d10e264578.zip
gcc-ce1ca503d2baf64633f807c70dcfc1d10e264578.tar.gz
gcc-ce1ca503d2baf64633f807c70dcfc1d10e264578.tar.bz2
gccrs: collector: Output extern function attributes
Outer attributes on external functions did not output correctly. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Output outer attributes on external functions. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/ast/rust-ast-collector.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc
index 6e2494e..88a25f0 100644
--- a/gcc/rust/ast/rust-ast-collector.cc
+++ b/gcc/rust/ast/rust-ast-collector.cc
@@ -2194,6 +2194,7 @@ TokenCollector::visit (ExternalStaticItem &item)
void
TokenCollector::visit (ExternalFunctionItem &function)
{
+ visit_items_as_lines (function.get_outer_attrs ());
visit (function.get_visibility ());
auto id = function.get_identifier ().as_string ();