summaryrefslogtreecommitdiffstats
path: root/gold/script.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-14 06:49:14 +0000
committerIan Lance Taylor <iant@google.com>2007-10-14 06:49:14 +0000
commit75f2446ec3c13eca3fe0c7cfdbb232e760d36596 (patch)
treea243e4c2c79cd8790a316a38b552507b62bf0421 /gold/script.cc
parenteb4dfdd470e49ab56eed5cead19704e0926530d0 (diff)
downloadppe42-binutils-75f2446ec3c13eca3fe0c7cfdbb232e760d36596.tar.gz
ppe42-binutils-75f2446ec3c13eca3fe0c7cfdbb232e760d36596.zip
Run all error handling through an Errors object. Delete output file
on error.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 365cedf9c2..b672385e98 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -1166,9 +1166,7 @@ yyerror(void* closurev, const char* message)
{
Parser_closure* closure = static_cast<Parser_closure*>(closurev);
- fprintf(stderr, _("%s: %s: %s\n"),
- program_name, closure->filename(), message);
- gold_exit(false);
+ gold_error(_("%s: %s\n"), closure->filename(), message);
}
// Called by the bison parser to add a file to the link.
OpenPOWER on IntegriCloud