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

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 11:02:59 PST 2019


dblaikie added a comment.

In D71451#1791314 <https://reviews.llvm.org/D71451#1791314>, @Jac1494 wrote:

> >> @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


Am I reading this right that the data would suggest that enabling this feature /reduces/ the size of debug info sections? That doesn't sound right - can you explain why that would be the case? (perhaps the data is incorrect/it wasn't built with -fstandalone-debug?)


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

https://reviews.llvm.org/D71451





More information about the llvm-commits mailing list