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

Jaydeep Chauhan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 21 01:37:59 PST 2019


Jac1494 added a comment.

> 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?)

Hi @dblaikie  sorry for incorrect data.

Updated result are as per below:

Without "-fstandalone-debug" option :-
...
...
.comment                     159         0
.debug_str               2655675         0
.debug_loc                   941         0
.debug_abbrev              10761         0
.debug_info              1526674         0
.debug_ranges              46672         0
.debug_line               149807         0
.note.gnu.gold-version        28         0
Total                    4786206

With "-fstandalone-debug" option :-
...
...
.comment                     159         0
.debug_str               3997839         0
.debug_loc                   941         0
.debug_abbrev              12746         0
.debug_info              2225392         0
.debug_ranges              46672         0
.debug_line               153779         0
.note.gnu.gold-version        28         0
Total                    6833045


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

https://reviews.llvm.org/D71451





More information about the cfe-commits mailing list