summaryrefslogtreecommitdiff
path: root/gold/errors.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-07 05:19:02 +0000
committerIan Lance Taylor <iant@google.com>2008-01-07 05:19:02 +0000
commit2dd3e587bdab39d73086c35be60399e096d48b46 (patch)
treee2b7630d5eceec2576855673cf33948b62a18caf /gold/errors.h
parentd4e917ea7f50bef2b4f15c1c83aac2a7f58e42e7 (diff)
Report linker script errors with line numbers. Ignore OUTPUT_FORMAT
with three arguments, and ignore OUTPUT_ARCH.
Diffstat (limited to 'gold/errors.h')
-rw-r--r--gold/errors.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gold/errors.h b/gold/errors.h
index 17b72e10b3..efc0d1ebe9 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -95,10 +95,14 @@ class Errors
// Initialize the lock. We don't do this in the constructor because
// lock initialization wants to know whether we are using threads or
- // not.
- void
+ // not. This returns true if the lock is now initialized.
+ bool
initialize_lock();
+ // Increment a counter, holding the lock.
+ void
+ increment_counter(int*);
+
// The number of times we report an undefined symbol.
static const int max_undefined_error_report = 5;