aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2018-11-13 09:56:46 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2018-11-13 09:56:46 +0000
commit2cc2582cf823912f2cd87aaf9c0aed0ccc989e48 (patch)
tree1ff9666a95980239791bf97e15508a5e1e8c6806
parent6bddea17a0464f674bf71d019af4c50c44ed6ed6 (diff)
downloadgcc-2cc2582cf823912f2cd87aaf9c0aed0ccc989e48.zip
gcc-2cc2582cf823912f2cd87aaf9c0aed0ccc989e48.tar.gz
gcc-2cc2582cf823912f2cd87aaf9c0aed0ccc989e48.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/toplev.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 14a310e..ce95921 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gcc/toplev.c b/gcc/toplev.c
index d7ea11a..3fd4ec4 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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");
}