https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65076
--- Comment #25 from Jan Hubicka <hubicka at gcc dot gnu.org> --- The memory use report: rtl.c:317 (copy_rtx) 9610680: 1.6% 0: 0.0% 0: 0.0% 0: 0.0% 401870 tree.c:8281 (build_method_type_directly) 2839536: 0.5% 0: 0.0% 6803496: 3.5% 0: 0.0% 57399 cfg.c:222 (connect_src) 9958800: 1.6% 0: 0.0% 0: 0.0% 0: 0.0% 248970 cfg.c:232 (connect_dest) 10182184: 1.7% 94040: 0.0% 0: 0.0% 0: 0.0% 254404 cp/pt.c:11057 (tsubst_decl) 1826688: 0.3% 0: 0.0% 8401536: 4.4% 0: 0.0% 79908 emit-rtl.c:3852 (make_insn_raw) 11540800: 1.9% 0: 0.0% 64: 0.0% 0: 0.0% 180326 cp/pt.c:3696 (reduce_template_parm_level) 3402072: 0.6% 0: 0.0% 8579552: 4.4% 0: 0.0% 78853 tree.c:6521 (build_distinct_type_copy) 498792: 0.1% 0: 0.0% 11808384: 6.1% 0: 0.0% 73257 gimple-expr.c:486 (create_tmp_var_raw) 12338640: 2.0% 0: 0.0% 0: 0.0% 0: 0.0% 85685 cp/lex.c:674 (copy_type) 3760344: 0.6% 0: 0.0% 9471840: 4.9% 0: 0.0% 78763 fold-const.c:2229 (fold_convert_loc) 13500256: 2.2% 0: 0.0% 14400: 0.0% 0: 0.0% 422333 tree-inline.c:712 (remap_block) 12999184: 2.1% 0: 0.0% 1007072: 0.5% 0: 0.0% 159162 cp/pt.c:7051 (coerce_template_parms) 14424944: 2.4% 0: 0.0% 612088: 0.3% 0: 0.0% 359017 cp/pt.c:10272 (tsubst_template_args) 13006088: 2.1% 0: 0.0% 3179968: 1.6% 0: 0.0% 377257 cp/lex.c:636 (copy_decl) 317760: 0.1% 0: 0.0% 17295456: 9.0% 0: 0.0% 94604 gimple.c:1687 (gimple_copy) 18912384: 3.1% 0: 0.0% 0: 0.0% 107608: 0.8% 217479 tree-ssanames.c:166 (make_ssa_name_fn) 24862536: 4.1% 0: 0.0% 0: 0.0% 0: 0.0% 345313 cfg.c:148 (alloc_block) 24957400: 4.1% 0: 0.0% 0: 0.0% 0: 0.0% 239975 tree-inline.c:5000 (copy_tree_r) 33060096: 5.4% 0: 0.0% 736: 0.0% 0: 0.0% 815260 hash-table.h:1336 (alloc_entries) 31255400: 5.2% 5441592: 2.1% 4493776: 2.3% 416848: 3.0% 71795 Total 606753058 262201484 193060957 13796011 15521861 source location Garbage Freed Leak Overhead Times I suppose I could try to dig into who is producing so many of hash tables.