diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-30 16:04:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-30 16:04:58 +0000 |
commit | 4811c44ee01bba9fd09fe5e2b6b9fc9be66b33c9 (patch) | |
tree | e458cff3d4603f158fb079c6e7d4057ce104234a | |
parent | b4d216f6e206dab4c37d80bfb91b76e2776cb9ef (diff) | |
download | gcc-4811c44ee01bba9fd09fe5e2b6b9fc9be66b33c9.zip gcc-4811c44ee01bba9fd09fe5e2b6b9fc9be66b33c9.tar.gz gcc-4811c44ee01bba9fd09fe5e2b6b9fc9be66b33c9.tar.bz2 |
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
-rw-r--r-- | gcc/go/gofrontend/go.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/go.cc b/gcc/go/gofrontend/go.cc index 7850e00..cd30cca 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()); |