aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-lang.cc
diff options
context:
space:
mode:
authorCohenArthur <arthur.cohen@epita.fr>2021-06-03 18:29:15 +0200
committerCohenArthur <arthur.cohen@epita.fr>2021-06-03 18:04:57 +0200
commit665df329a2ad60580ab593f6cbd646aa55927a37 (patch)
tree1d6adaae5665a813f771e96c163c6f2b6d112234 /gcc/rust/rust-lang.cc
parent51cbf184f3bddec37011ed2970d0aff943d98ce0 (diff)
downloadgcc-665df329a2ad60580ab593f6cbd646aa55927a37.zip
gcc-665df329a2ad60580ab593f6cbd646aa55927a37.tar.gz
gcc-665df329a2ad60580ab593f6cbd646aa55927a37.tar.bz2
rust_debug: Replace fprintf (stderr) with rust_debug
Co-authored-by: tschwinge <thomas@schwinge.name>
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r--gcc/rust/rust-lang.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index a6fd48a..4b139ef 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -31,6 +31,7 @@
#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
@@ -165,7 +166,7 @@ grs_langhook_init_options_struct (struct gcc_options * /* opts */)
static void
grs_langhook_parse_file (void)
{
- fprintf (stderr, "Preparing to parse files. \n");
+ rust_debug ("Preparing to parse files. ");
session.parse_files (num_in_fnames, in_fnames);
}