diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-09-08 17:26:07 +0000 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2012-09-08 17:26:07 +0000 |
commit | 928837bd7d8e359bdd907150b9547f11ed4e2dbf (patch) | |
tree | ec889e25fe873beef48915b755c2472a48624c8c /gcc/common.opt | |
parent | 900f757c446237a59aae04884e7b7941509ed4b7 (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/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 87e28b5efe9..73eebf49157 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1470,6 +1470,10 @@ fmem-report Common Report Var(mem_report) Report on permanent memory allocation +fmem-report-wpa +Common Report Var(mem_report_wpa) +Report on permanent memory allocation in WPA only + ; This will attempt to merge constant section constants, if 1 only ; string constants and constants from constant pool, if 2 also constant ; variables. |