• Paul Burton's avatar
    MIPS: Enable dead code elimination · c0436b50
    Paul Burton authored
    Select CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION for MIPS, allowing the
    user to enable dead code elimination. In order for this to work, ensure
    that we keep the data bus exception table & the machine list by
    annotating them with KEEP.
    
    This shrinks both 32r2el_defconfig & 64r6el_defconfig builds by ~6%, as
    shown by numbers from scripts/bloat-o-meter:
    
              | 32r2el_defconfig | 64r6el_defconfig
      --------|------------------|------------------
       No DCE | 8919864          | 8286307
          DCE | 8338988 (-6.51%) | 7741808 (-6.57%)
    Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Patchwork: https://patchwork.linux-mips.org/patch/21187/
    Cc: linux-mips@linux-mips.org
    c0436b50
Kconfig 81.9 KB