aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/default-rust.cc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2022-02-02 23:45:31 +0100
committerThomas Schwinge <thomas@codesourcery.com>2022-02-03 12:44:54 +0100
commit5691503f11fb6bc5acd8be1e43faa0c5898c4b14 (patch)
tree7ce6d130244d4875c3fa71f2e8d84eb9fe3c1b6e /gcc/config/default-rust.cc
parentf7f14de056eb3887e70f29b0f29da4025f746559 (diff)
downloadgcc-5691503f11fb6bc5acd8be1e43faa0c5898c4b14.zip
gcc-5691503f11fb6bc5acd8be1e43faa0c5898c4b14.tar.gz
gcc-5691503f11fb6bc5acd8be1e43faa0c5898c4b14.tar.bz2
GCC/Rust pieces of GCC upstream "Mass rename of C++ .c files to .cc suffix"
... in preparation of merge of the latter.
Diffstat (limited to 'gcc/config/default-rust.cc')
-rw-r--r--gcc/config/default-rust.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/config/default-rust.cc b/gcc/config/default-rust.cc
new file mode 100644
index 0000000..a275439
--- /dev/null
+++ b/gcc/config/default-rust.cc
@@ -0,0 +1,26 @@
+/* Default Rust language target hooks initializer.
+ Copyright (C) 2020-2022 Free Software Foundation, Inc.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 3, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#include "config.h"
+#include "system.h"
+#include "coretypes.h"
+#include "memmodel.h"
+#include "tm_rust.h"
+#include "rust/rust-target.h"
+#include "rust/rust-target-def.h"
+
+struct gcc_targetrustm targetrustm = TARGETRUSTM_INITIALIZER;