From 10c9ea62d6d07e20d23b0ff6ea5211a573b0b9c0 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 25 Jul 2016 13:28:52 +0200 Subject: [PATCH] Don't call get_working_sets w/ LTO and -fauto-profile (PR * lto-cgraph.c (input_symtab): Don't call get_working_sets if flag_auto_profile is set to true. From-SVN: r238707 --- gcc/ChangeLog | 5 +++++ gcc/lto-cgraph.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a8a69c5a45..e8952cbba74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-25 Martin Liska + + * lto-cgraph.c (input_symtab): Don't call get_working_sets + if flag_auto_profile is set to true. + 2016-07-25 Martin Liska PR gcov-profile/71868 diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 5cef2bae159..26420411b0d 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -1867,7 +1867,9 @@ input_symtab (void) } merge_profile_summaries (file_data_vec); - get_working_sets (); + + if (!flag_auto_profile) + get_working_sets (); /* Clear out the aux field that was used to store enough state to -- 2.30.2