This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r238371 - in /trunk/gcc: ChangeLog cgraphunit.c...
- From: amonakov at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 15 Jul 2016 11:01:23 -0000
- Subject: r238371 - in /trunk/gcc: ChangeLog cgraphunit.c...
Author: amonakov
Date: Fri Jul 15 11:01:23 2016
New Revision: 238371
URL: https://gcc.gnu.org/viewcvs?rev=238371&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/varpool.c