projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d216f
)
compiler: Pass location to fatal_error.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 30 Jan 2015 16:04:58 +0000
(16:04 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 30 Jan 2015 16:04:58 +0000
(16:04 +0000)
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
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/go.cc
b/gcc/go/gofrontend/go.cc
index 7850e00a041f0c4babfbc8b2b74a7a47580a25b0..cd30cca265741638431ec576d5b6753e753d4f10 100644
(file)
--- 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());