PR 10931
authorIan Lance Taylor <ian@airs.com>
Thu, 31 Dec 2009 01:57:55 +0000 (01:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 31 Dec 2009 01:57:55 +0000 (01:57 +0000)
commitfc59c57250878209dbcacd68712643d88b1c7adc
treee118bf36e60d29e554aa23c914a510c9c50998fe
parent1c74fab0d1fd52933617779be761ce2cc860fa31
PR 10931
* options.h (class General_options): Add --sort-common option.
* symtab.h (class Symbol_table): Define Sort_commons_order enum.
* common.cc (Sort_common): Add sort_order parameter to
constructor.  Add sort_order_ field.
(Sort_commons::operator): Check sort_order_.
(Symbol_table::allocate_commons): Determine the sort order.
(Symbol_table::do_allocate_commons): Add sort_order parameter.
Change all callers.
(Symbol_table::do_allocate_commons_list): Likewise.
gold/ChangeLog
gold/common.cc
gold/options.h
gold/symtab.h