handle undefined extern vars in output_in_order
authorAlexander Monakov <amonakov@ispras.ru>
Fri, 15 Jul 2016 11:01:23 +0000 (14:01 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Fri, 15 Jul 2016 11:01:23 +0000 (14:01 +0300)
commit3ef4678208cb06208343de776ad96de2db4de25c
tree652086436fa04743a73656233cc4b3f5c0a32a3a
parenta8e15f9074d70cf2b029e04f3f56ed64e5171556
handle undefined extern vars in output_in_order

* cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
(output_in_order): Loop over undefined variables too.  Output them
via assemble_undefined_decl.  Skip variables that correspond to hard
registers or have value-exprs.
* varpool.c (symbol_table::output_variables): Handle undefined
variables together with defined ones.

From-SVN: r238371
gcc/ChangeLog
gcc/cgraphunit.c
gcc/varpool.c