From 4811c44ee01bba9fd09fe5e2b6b9fc9be66b33c9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 30 Jan 2015 16:04:58 +0000 Subject: [PATCH] compiler: Pass location to fatal_error. The GCC function is changing. The error functions need to move to a compiler-indepent approach so that changes to the GCC functions are not a concern here. From-SVN: r220292 --- gcc/go/gofrontend/go.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/go/gofrontend/go.cc b/gcc/go/gofrontend/go.cc index 7850e00a041..cd30cca2657 100644 --- a/gcc/go/gofrontend/go.cc +++ b/gcc/go/gofrontend/go.cc @@ -63,7 +63,8 @@ go_parse_input_files(const char** filenames, unsigned int filename_count, { file = fopen(filename, "r"); if (file == NULL) - fatal_error("cannot open %s: %m", filename); + fatal_error(Linemap::unknown_location(), + "cannot open %s: %m", filename); } Lex lexer(filename, file, ::gogo->linemap()); -- 2.30.2