aboutsummaryrefslogtreecommitdiff
path: root/gold/main.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-27 00:29:34 +0000
committerIan Lance Taylor <iant@google.com>2007-10-27 00:29:34 +0000
commit3c2fafa5311f159f222047699968e091a8f260d6 (patch)
tree48a53667ae73288fab5264e1decc5ab27160d445 /gold/main.cc
parent4af13c269b9cd216b8593a2afbcabde5746c720f (diff)
downloadgdb-3c2fafa5311f159f222047699968e091a8f260d6.zip
gdb-3c2fafa5311f159f222047699968e091a8f260d6.tar.gz
gdb-3c2fafa5311f159f222047699968e091a8f260d6.tar.bz2
From Craig Silverstein and Ian Lance Taylor: Process --script option.
Diffstat (limited to 'gold/main.cc')
-rw-r--r--gold/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gold/main.cc b/gold/main.cc
index eda586b..a4dcc5a 100644
--- a/gold/main.cc
+++ b/gold/main.cc
@@ -54,6 +54,10 @@ main(int argc, char** argv)
Errors errors(program_name);
+ // Initialize the global parameters, to let random code get to the
+ // errors object.
+ initialize_parameters(&errors);
+
// Handle the command line options.
Command_line command_line;
command_line.process(argc - 1, argv + 1);
@@ -62,7 +66,8 @@ main(int argc, char** argv)
if (command_line.options().print_stats())
start_time = get_run_time();
- initialize_parameters(&command_line.options(), &errors);
+ // Store some options in the globally accessible parameters.
+ set_parameters_from_options(&command_line.options());
// The work queue.
Workqueue workqueue(command_line.options());