aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Young <wenzhang5800@gmail.com>2021-06-17 01:30:05 +0800
committerThomas Young <wenzhang5800@gmail.com>2021-06-17 01:38:08 +0800
commitbe78228790d125fe46af339d6b323a6a545f278f (patch)
tree2e58f29d9907a56a9db4aa603eea4e2cb1ddab32
parent350b0e595144cf7c6cf70807b429d87077173415 (diff)
downloadgcc-be78228790d125fe46af339d6b323a6a545f278f.zip
gcc-be78228790d125fe46af339d6b323a6a545f278f.tar.gz
gcc-be78228790d125fe46af339d6b323a6a545f278f.tar.bz2
avoid abort macro override the abort of std
-rw-r--r--gcc/rust/lex/rust-token.h12
-rw-r--r--gcc/rust/rust-lang.cc2
-rw-r--r--gcc/rust/rust-session-manager.cc4
-rw-r--r--gcc/rust/rust-session-manager.h7
4 files changed, 12 insertions, 13 deletions
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h
index f8680cd..f76899c 100644
--- a/gcc/rust/lex/rust-token.h
+++ b/gcc/rust/lex/rust-token.h
@@ -19,18 +19,18 @@
#ifndef RUST_TOKEN_H
#define RUST_TOKEN_H
-#include "config.h"
-#include "system.h"
-#include "coretypes.h"
-#include "input.h"
-// order: config, system, coretypes, input
-
#include <string>
#include <memory>
#include "rust-linemap.h"
#include "rust-codepoint.h"
+// order: config, system, coretypes, input
+#include "config.h"
+#include "system.h"
+#include "coretypes.h"
+#include "input.h"
+
namespace Rust {
// "Primitive core types" in Rust - the different int and float types, as well
// as some others
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 4b139ef..6edf8cc 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -16,6 +16,7 @@
// along with GCC; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+#include "rust-diagnostics.h"
#include "config.h"
#include "system.h"
#include "coretypes.h"
@@ -31,7 +32,6 @@
#include "convert.h"
#include "langhooks.h"
#include "langhooks-def.h"
-#include "rust-diagnostics.h"
#include <mpfr.h>
// note: header files must be in this order or else forward declarations don't
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index e1938fa..c0d863b 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -17,12 +17,12 @@
// <http://www.gnu.org/licenses/>.
// #include "rust-session-manager.h"
+#include <fstream>
+#include <sstream>
#include "rust-session-manager.h"
#include "rust-diagnostics.h"
#include "diagnostic.h"
#include "input.h"
-#include <fstream>
-#include <sstream>
#include "target.h"
#include "tm.h"
diff --git a/gcc/rust/rust-session-manager.h b/gcc/rust/rust-session-manager.h
index b7e081b..ff3e438 100644
--- a/gcc/rust/rust-session-manager.h
+++ b/gcc/rust/rust-session-manager.h
@@ -20,14 +20,13 @@
#ifndef RUST_SESSION_MANAGER_H
#define RUST_SESSION_MANAGER_H
+#include "rust-linemap.h"
+#include "rust-backend.h"
+
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "options.h"
-#include "rust-system.h"
-
-#include "rust-linemap.h"
-#include "rust-backend.h"
namespace Rust {
// parser forward decl