From e8b8b81bb5b440588b5e574c6f28d16c567af5f7 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 7 Apr 2016 10:28:20 -0400 Subject: [PATCH 33/91] FIXME: improve location for fatal_with_file_and_line --- gcc/read-md.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/read-md.c b/gcc/read-md.c index 459ea37..0ccd030 100644 --- a/gcc/read-md.c +++ b/gcc/read-md.c @@ -313,6 +313,10 @@ fatal_with_file_and_line (const char *msg, ...) vfprintf (stderr, msg, ap); putc ('\n', stderr); +#ifndef GENERATOR_FILE + file_location loc = rtx_reader_ptr->get_current_location (); +#endif + /* Gather some following context. */ for (i = 0; i < sizeof (context)-1; ++i) { @@ -334,7 +338,6 @@ fatal_with_file_and_line (const char *msg, ...) va_end (ap); #ifndef GENERATOR_FILE - file_location loc = rtx_reader_ptr->get_current_location (); inform (loc, "here"); #endif -- 1.8.5.3