Commit a40c2961 by Jan Hubicka Committed by Jan Hubicka

re PR rtl-optimization/12324 ([unit-at-a-time] not emitting function referenced…

re PR rtl-optimization/12324 ([unit-at-a-time] not emitting function referenced from a compound statement)

	PR optimization/12324
	* toplev.c  (rest_of_decl_compilation): Do not deffer when compiling
	in unit-at-a-time mode.

From-SVN: r74252
parent 8ecc63eb
2003-12-03 Jan Hubicka <jh@suse.cz>
PR optimization/12324
* toplev.c (rest_of_decl_compilation): Do not deffer when compiling
in unit-at-a-time mode.
2003-12-03 Jakub Jelinek <jakub@redhat.com>
* expr.c (store_constructor): Only set RTX_UNCHANGING_P for
......
......@@ -1920,8 +1920,15 @@ rest_of_decl_compilation (tree decl,
make_decl_rtl (decl, asmspec);
/* Don't output anything when a tentative file-scope definition
is seen. But at end of compilation, do output code for them. */
if ((at_end || !DECL_DEFER_OUTPUT (decl)) && !DECL_EXTERNAL (decl))
is seen. But at end of compilation, do output code for them.
We do output all variables when unit-at-a-time is active and rely on
callgraph code to defer them except for forward declarations
(see gcc.c-torture/compile/920624-1.c) */
if ((at_end
|| !DECL_DEFER_OUTPUT (decl)
|| (flag_unit_at_a_time && DECL_INITIAL (decl)))
&& !DECL_EXTERNAL (decl))
{
if (flag_unit_at_a_time && !cgraph_global_info_ready
&& TREE_CODE (decl) != FUNCTION_DECL && top_level)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment