diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-21 05:43:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-21 05:43:33 +0000 |
commit | ca3a67a5cf313a093f28624258b1fd2201d1835e (patch) | |
tree | 9440662bfedcd3f321dd8928a24bafd1e344ee7c /gold/options.cc | |
parent | c51e6221b8abc026554349b0e8aa59477753b57b (diff) | |
download | gdb-ca3a67a5cf313a093f28624258b1fd2201d1835e.zip gdb-ca3a67a5cf313a093f28624258b1fd2201d1835e.tar.gz gdb-ca3a67a5cf313a093f28624258b1fd2201d1835e.tar.bz2 |
From Craig Silverstein: Add -O option.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index fc3d7c6..2f83e10 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -244,6 +244,9 @@ options::Command_line_options::options[] = &General_options::add_to_search_path), GENERAL_ARG('m', NULL, N_("Ignored for compatibility"), NULL, ONE_DASH, &General_options::ignore), + GENERAL_ARG('O', NULL, N_("Optimize output file size"), + N_("-O level"), ONE_DASH, + &General_options::set_optimization_level), GENERAL_ARG('o', "output", N_("Set output file name"), N_("-o FILE, --output FILE"), TWO_DASHES, &General_options::set_output_file_name), @@ -289,6 +292,7 @@ General_options::General_options() : export_dynamic_(false), dynamic_linker_(NULL), search_path_(), + optimization_level_(0), output_file_name_("a.out"), is_relocatable_(false), create_eh_frame_hdr_(false), |