[PATCH] D71451: Support to emit extern variables debuginfo with "-fstandalone-debug"

Jaydeep Chauhan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 08:41:09 PST 2019


Jac1494 added a comment.

>> @Jac1494 - have you made any measurements of the size increase of this change? Perhaps a self-host build of clang?

With change(default) and without change size diffrence given below ,in that only debug section size is changed.

Without change:-(default)
$size -A -d  build_debug_withoutfix/bin/clang-10 
....
....
.comment                     159         0
.debug_str               3999832         0
.debug_loc                   941         0
.debug_abbrev              12754         0
.debug_info              2225482         0
.debug_ranges              46672         0
.debug_line               153741         0
.note.gnu.gold-version        28         0
Total                    6835098

With change:-

$size -A -d  build_debug_withfix/bin/clang-10 
.....
.....
.comment                     159         0
.debug_str               3999775         0
.debug_loc                   941         0
.debug_abbrev              12746         0
.debug_info              2225458         0
.debug_ranges              46672         0
.debug_line               153717         0
.note.gnu.gold-version        28         0
Total                    6834985


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71451/new/

https://reviews.llvm.org/D71451





More information about the llvm-commits mailing list