From 3f6bf15c5bf9a60ccb8b18e8621c6c0456b51b9e Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 7 Apr 2016 07:09:04 -0400 Subject: [PATCH 28/91] FIXME: attempt to print source insns --- gcc/rtl/rtl-frontend.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/rtl/rtl-frontend.c b/gcc/rtl/rtl-frontend.c index a3e284f..6ade16b 100644 --- a/gcc/rtl/rtl-frontend.c +++ b/gcc/rtl/rtl-frontend.c @@ -167,11 +167,16 @@ class function_reader : public rtx_reader }; void -function_reader::handle_unknown_directive (file_location loc, const char *name) +function_reader::handle_unknown_directive (file_location start_loc, + const char *name) { rtx x = read_rtx_code (name); if (!x) return; + /* FIXME: this omits the final closing parenthesis for some reason. */ + location_t end_loc = get_current_location (); + location_t insn_loc = make_location (start_loc, start_loc, end_loc); + inform (insn_loc, "input insn"); debug (x); insns_by_uid.put (INSN_UID(x), x); } -- 1.8.5.3