• Denys Vlasenko's avatar
    [SCSI] aic7xxx: introduce "dont_generate_debug_code" keyword in aicasm parser · fa25b99a
    Denys Vlasenko authored
    aic7xxx still contains ~30kb of dead code if pretty printing of registers
    is requested. These patches deal with it.
    
    Size differences:
    
       text    data     bss     dec     hex filename
    DEBUG_ENABLE+PRETTY_PRINT:
     234697    2362    1188  238247   3a2a7 linux-2.6.26-rc8-/drivers/scsi/aic7xxx/built-in.o
     205092    2362    1188  208642   32f02 linux-2.6.26-rc8/drivers/scsi/aic7xxx/built-in.o
    NO_DEBUG_ENABLE+PRETTY_PRINT:
     227272    2362    1172  230806   38596 linux-2.6.26-rc8-/drivers/scsi/aic7xxx/built-in.o
     197671    2362    1172  201205   311f5 linux-2.6.26-rc8/drivers/scsi/aic7xxx/built-in.o
    DEBUG_ENABLE+NO_PRETTY_PRINT:
     192457    2362    1188  196007   2fda7 linux-2.6.26-rc8-/drivers/scsi/aic7xxx/built-in.o
     192457    2362    1188  196007   2fda7 linux-2.6.26-rc8/drivers/scsi/aic7xxx/built-in.o
    NO_DEBUG_ENABLE+NO_PRETTY_PRINT:
     185040    2362    1172  188574   2e09e linux-2.6.26-rc8-/drivers/scsi/aic7xxx/built-in.o
     185040    2362    1172  188574   2e09e linux-2.6.26-rc8/drivers/scsi/aic7xxx/built-in.o
    
    This patch:
    
    Introduce "dont_generate_debug_code" keyword in aicasm parser.
    Signed-off-by: default avatarDenys Vlasenko <vda.linux@googlemail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Acked-by: default avatarHannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    fa25b99a
aicasm_gram.y 41 KB