aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-08-18 17:01:34 -0400
committerPhilip Herron <philip.herron@embecosm.com>2023-08-31 10:35:29 +0000
commita8876144d7df90baa11c3fe59764c8796e977b16 (patch)
treea561e517052992a2063d3042df7716aed4f8868b /gcc/rust/backend
parent16939cc6458c196efba1705559de13d22f2299a1 (diff)
downloadgcc-a8876144d7df90baa11c3fe59764c8796e977b16.zip
gcc-a8876144d7df90baa11c3fe59764c8796e977b16.tar.gz
gcc-a8876144d7df90baa11c3fe59764c8796e977b16.tar.bz2
Handle gengtype annotations in backend/rust-tree.{cc,h}
gcc/rust/ChangeLog: * config-lang.in: Add "backend/rust-tree.h" and "backend/rust-tree.h" to gtfiles. * backend/rust-tree.cc: Include new header generated by gengtype. * backend/rust-tree.h (struct language_function): Add TODO. * rust-lang.cc: Include "rust-tree.h". (struct lang_type): Remove duplicate definition. (struct lang_decl): Likewise. (struct lang_identifier): Likewise. (struct language_function): Likewise. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r--gcc/rust/backend/rust-tree.cc4
-rw-r--r--gcc/rust/backend/rust-tree.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc
index 096a7d8..45e0a79 100644
--- a/gcc/rust/backend/rust-tree.cc
+++ b/gcc/rust/backend/rust-tree.cc
@@ -6210,3 +6210,7 @@ array_string_literal_compatible_p (tree type, tree init)
}
} // namespace Rust
+
+using namespace Rust;
+
+#include "gt-rust-rust-tree.h"
diff --git a/gcc/rust/backend/rust-tree.h b/gcc/rust/backend/rust-tree.h
index 93c908c..fc48aa0 100644
--- a/gcc/rust/backend/rust-tree.h
+++ b/gcc/rust/backend/rust-tree.h
@@ -2289,7 +2289,8 @@ struct rust_named_label_hash : ggc_remove<rust_named_label_entry *>
// forked from gcc/cp/cp-tree.h
-/* Global state pertinent to the current function. */
+/* Global state pertinent to the current function.
+ TODO: remove vestigial fields */
struct GTY (()) language_function
{