diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-06-24 05:01:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-06-24 05:01:17 +0000 |
commit | 459c9f1c5f4e19a4fdf39ccd9289f0fde532a21b (patch) | |
tree | cd3535671fa5e3a04044dd9da0a07b8c83c4f5e4 /gold/options.h | |
parent | dab97f2471e9939e4ddd126a5cab730c5f6831b5 (diff) | |
download | binutils-gdb-459c9f1c5f4e19a4fdf39ccd9289f0fde532a21b.tar.gz |
PR 10237
* options.cc (General_options::parse_V): Set printed_version_.
(General_options::General_options): Initialize printed_version_.
* options.h (class General_options): Add printed_version_ field.
* gold.cc (queue_initial_tasks): If there are no input files,
don't give a fatal error if we printed the version information.
(queue_middle_tasks): If using -r with a shared object, give a
fatal error rather than an ordinary error.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h index aac0439c07d..deec2ba871e 100644 --- a/gold/options.h +++ b/gold/options.h @@ -946,6 +946,11 @@ class General_options // any problems. void finalize(); + // True if we printed the version information. + bool + printed_version() const + { return this->printed_version_; } + // The macro defines output() (based on --output), but that's a // generic name. Provide this alternative name, which is clearer. const char* @@ -1090,6 +1095,8 @@ class General_options void add_plugin_option(const char* opt); + // Whether we printed version information. + bool printed_version_; // Whether to mark the stack as executable. Execstack execstack_status_; // Whether to do a static link. @@ -1106,7 +1113,7 @@ class General_options // --incremental-unchanged or --incremental-unknown option. The // value may change as we proceed parsing the command line flags. Incremental_disposition incremental_disposition_; - // Wheater we have seen one of the options that require incremental + // Whether we have seen one of the options that require incremental // build (--incremental-changed, --incremental-unchanged or // --incremental-unknown) bool implicit_incremental_; |