summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-30 16:04:58 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-30 16:04:58 +0000
commit29f68d21d683541a286f85185c7e6a9a0cb21e3d (patch)
treee458cff3d4603f158fb079c6e7d4057ce104234a
parent1a38587a321331911615409b3ec92b2e6b9109a1 (diff)
downloadgcc-29f68d21d683541a286f85185c7e6a9a0cb21e3d.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220292 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/go/gofrontend/go.cc3
1 files changed, 2 insertions, 1 deletions
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());