Commit 2cc2582c by Eric Botcazou Committed by Eric Botcazou

toplev.c (output_stack_usage): Turn test on flag_stack_usage into test on stack_usage_file.

	* toplev.c (output_stack_usage): Turn test on flag_stack_usage into
	test on stack_usage_file.
	(lang_dependent_init): Do not open the .su file if generating LTO.

From-SVN: r266063
parent 6bddea17
2018-11-13 Eric Botcazou <ebotcazou@adacore.com>
* toplev.c (output_stack_usage): Turn test on flag_stack_usage into
test on stack_usage_file.
(lang_dependent_init): Do not open the .su file if generating LTO.
2018-11-13 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/87918
......@@ -989,7 +989,7 @@ output_stack_usage (void)
stack_usage += current_function_dynamic_stack_size;
}
if (flag_stack_usage)
if (stack_usage_file)
{
expanded_location loc
= expand_location (DECL_SOURCE_LOCATION (current_function_decl));
......@@ -1934,7 +1934,7 @@ lang_dependent_init (const char *name)
init_asm_output (name);
/* If stack usage information is desired, open the output file. */
if (flag_stack_usage)
if (flag_stack_usage && !flag_generate_lto)
stack_usage_file = open_auxiliary_file ("su");
}
......
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