diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-09-08 17:26:07 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2012-09-08 17:26:07 +0000 |
commit | b3e44629b84562454405c9b17c639e50c536e3b6 (patch) | |
tree | ec889e25fe873beef48915b755c2472a48624c8c /gcc/common.opt | |
parent | 1a760de952fb4743c2f2c8664d08651e14acc936 (diff) | |
download | gcc-b3e44629b84562454405c9b17c639e50c536e3b6.zip gcc-b3e44629b84562454405c9b17c639e50c536e3b6.tar.gz gcc-b3e44629b84562454405c9b17c639e50c536e3b6.tar.bz2 |
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.
From-SVN: r191095
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 87e28b5..73eebf4 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. |