aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r--gcc/rust/rust-session-manager.cc20
1 files changed, 1 insertions, 19 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 4e140fd..5529fbf 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -19,21 +19,6 @@
#include "rust-session-manager.h"
#include "rust-diagnostics.h"
-
-//#include "rust-target.h"
-/*TODO This isn't (currently?) necessary, but if '#include'd after '#include
- "target.h"', causes: In file included from
- [...]/gcc/rust/rust-session-manager.cc:31:
- [...]/gcc/rust/rust-target.h:23: error: "DEFHOOK" redefined [-Werror]
- 23 | #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (*NAME) PARAMS;
- |
- In file included from [...]/gcc/rust/rust-session-manager.cc:27:
- [...]/gcc/target.h:272: note: this is the location of the previous
- definition 272 | #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME)
- PARAMS;
- |
-*/
-
#include "rust-lex.h"
#include "rust-parse.h"
#include "rust-macro-expand.h"
@@ -47,10 +32,7 @@
#include "diagnostic.h"
#include "input.h"
-#include "target.h"
-#include "tm.h"
-#include "memmodel.h"
-#include "tm_p.h"
+#include "rust-target.h"
extern bool
saw_errors (void);