aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-09-08 17:26:07 +0000
committerAndi Kleen <ak@linux.intel.com>2012-09-08 17:26:07 +0000
commit928837bd7d8e359bdd907150b9547f11ed4e2dbf (patch)
treeec889e25fe873beef48915b755c2472a48624c8c /gcc/lto
parent900f757c446237a59aae04884e7b7941509ed4b7 (diff)
Add -fmem-report-wpa
For parallel LTO builds setting -fmem-report does not work very well because all the LTRANS phases dump it in parallel and typically interleave it to unreadability. Since usually the memory bottleneck is WPA add a flag to only dump the memory report for that. gcc/: 2012-09-08 Andi Kleen <ak@linux.intel.com> * gcc/common.opt (-fmem-report-wpa): Add * gcc/doc/invoke.texi (-fmem-report-wpa): Document. * gcc/lto/lto.c (do_whole_program_analysis): Run mem_report when mem_report_wpa is set. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 5da54124f2d..3c5929912be 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -2016,6 +2016,8 @@ do_whole_program_analysis (void)
/* Show the LTO report before launching LTRANS. */
if (flag_lto_report)
print_lto_report ();
+ if (mem_report_wpa)
+ dump_mem_report ();
}