r142504 - in /branches/lto/gcc: ChangeLog.lto l...

dougkwan@gcc.gnu.org dougkwan@gcc.gnu.org
Fri Dec 5 22:07:00 GMT 2008


Author: dougkwan
Date: Fri Dec  5 22:07:39 2008
New Revision: 142504

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142504
Log:
2008-12-04  Doug Kwan  <dougkwan@google.com>

ChangeLog.lto:
	* lto-function-out.c (output_remaining_constructors_and_inits):
	Only output externally visible vars.
	(output_function_decl): Remove code to output LTO DECL flags.
	(output_var_decl): Remove code to fixup up globalized statics.
	Also, no need to check for LTO_DECL_FLAG_FORCE_GLOBAL.
	* lto-function-in.c (input_function_decl): Remove code to read
	LTO DECL flags.
	(input_var_decl): Remove code to fix up globalized statics.
	* lto-utils.h (LTO_DECL_FLAG_FORCE_GLOBAL): Remove flag.

lto/ChangeLog:
	* lto.c (globalize_context_t): New type to store states in
	globalization of cross-file statics.
	(globalize_cross_file_statics): New.
	(lto_scan_statics_in_ref_table): Walk tree to look for reachable
	static decls that need to be fixed up.
 	(lto_scan_statics_in_cgraph_node): Change call interface to use
	a globalize_context_t CONTEXT for all states used.
	(lto_scan_statics_in_remaining_global_vars): New.
 	(lto_promote_cross_file_statics): Use new call interface of
	LTO_SCAN_STATICS_IN_CGRAPH_NODE.  Handle remaining externally
	visible vars in the last set.
 
testsuite/ChangeLog.lto:
	* g++.dg/lto/20081204-2_0.C: New
	* g++.dg/lto/20081204-2_1.C: New


Added:
    branches/lto/gcc/testsuite/g++.dg/lto/20081204-2_0.C
    branches/lto/gcc/testsuite/g++.dg/lto/20081204-2_1.C
Modified:
    branches/lto/gcc/ChangeLog.lto
    branches/lto/gcc/lto-function-in.c
    branches/lto/gcc/lto-function-out.c
    branches/lto/gcc/lto-utils.h
    branches/lto/gcc/lto/ChangeLog
    branches/lto/gcc/lto/lto.c
    branches/lto/gcc/testsuite/ChangeLog.lto



More information about the Gcc-cvs mailing list