aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-lang.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2020-05-02 18:19:32 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 19:09:39 +0000
commit9fec18623e1a937863f86cc25fa855e65e91d473 (patch)
tree929d973fb3cf1cddfb994fe1d95cc18b5f6d92a7 /gcc/rust/rust-lang.cc
parent8e2f81b35a5f1b2be33379a8d91455b6cc68f3a7 (diff)
downloadgcc-9fec18623e1a937863f86cc25fa855e65e91d473.zip
gcc-9fec18623e1a937863f86cc25fa855e65e91d473.tar.gz
gcc-9fec18623e1a937863f86cc25fa855e65e91d473.tar.bz2
This sets up the conversion from AST to GCC
It will crash when compiling but its the code setup i want to get in sooner than later. Addresses #15
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r--gcc/rust/rust-lang.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 66895dc..91c77bc 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -155,7 +155,6 @@ grs_langhook_parse_file (void)
{
fprintf (stderr, "Preparing to parse files. \n");
- // grs_parse_files(num_in_fnames, in_fnames);
session.parse_files (num_in_fnames, in_fnames);
}
@@ -183,7 +182,7 @@ grs_langhook_type_for_mode (machine_mode mode, int unsignedp)
return unsignedp ? unsigned_intSI_type_node : intSI_type_node;
if (mode
== TYPE_MODE (
- intDI_type_node)) // double integer mode - eight-byte integer
+ intDI_type_node)) // double integer mode - eight-byte integer
return unsignedp ? unsigned_intDI_type_node : intDI_type_node;
if (mode
== TYPE_MODE (intTI_type_node)) // tetra integer mode - 16-byte integer