PR 10860
authorIan Lance Taylor <ian@airs.com>
Wed, 4 Nov 2009 01:24:41 +0000 (01:24 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 4 Nov 2009 01:24:41 +0000 (01:24 +0000)
commit1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232
treef35dae3b6a4203d8c2cc52a25d3f23c5188db707
parent690a96ed8ce0d2256eec357a187252a0974241af
PR 10860
* options.h (class General_options): Add --warn-common.
* resolve.cc (Symbol_table::resolve): Handle --warn-common when
merging two common symbols.
(Symbol_table::should_override): Handle --warn-common when merging
a common symbol with a defined symbol.  Use report_resolve_problem
for multiple definitions.
(Symbol_table::report_resolve_problem): New function.
* symtab.h (class Symbol_table): Declare report_resolve_problem.
gold/ChangeLog
gold/options.h
gold/resolve.cc
gold/symtab.h