https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 48960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48960&action=edit updated patch Avoid aliases and thunks, avoid not declared builtins w/o body. Updates stats for cc1 to FILE SIZE VM SIZE -------------- -------------- +1.0% +1.21Mi [ = ] 0 .debug_info +4.4% +92.0Ki [ = ] 0 .debug_abbrev +0.1% +6.76Ki [ = ] 0 .debug_str +0.0% +5.80Ki [ = ] 0 .debug_line +0.0% +426 [ = ] 0 .debug_loc +0.0% +144 [ = ] 0 .debug_ranges +0.0% +80 +0.0% +80 .text +0.0% +52 [ = ] 0 .strtab +0.0% +32 +0.0% +32 .rodata +0.0% +24 [ = ] 0 .symtab +0.0% +16 +0.0% +16 .eh_frame +0.0% +8 +0.0% +8 .eh_frame_hdr -1.9% -138 [ = ] 0 [Unmapped] +0.4% +1.31Mi +0.0% +136 TOTAL and after applying DWZ to both: FILE SIZE VM SIZE -------------- -------------- +1.0% +751Ki [ = ] 0 .debug_info +4.8% +87.8Ki [ = ] 0 .debug_abbrev +0.1% +6.76Ki [ = ] 0 .debug_str +0.0% +5.80Ki [ = ] 0 .debug_line +0.0% +426 [ = ] 0 .debug_loc +0.0% +144 [ = ] 0 .debug_ranges +0.0% +80 +0.0% +80 .text +0.0% +52 [ = ] 0 .strtab +0.0% +32 +0.0% +32 .rodata +0.0% +24 [ = ] 0 .symtab +0.0% +16 +0.0% +16 .eh_frame +0.0% +8 +0.0% +8 .eh_frame_hdr -1.9% -137 [ = ] 0 [Unmapped] +0.3% +852Ki +0.0% +136 TOTAL