efriedma added a comment.

> This is an adaptation of the IBM XL compiler's -qstatsym option, which is 
> meant to generate symbol table entries for static variables. An artifact of 
> that compiler is that static variables are often not discarded even when 
> unused.

Oh, I see; the compiler actually doesn't guarantee that the variables are 
preserved, it just ends up preserving them by accident because it's bad at 
optimizing global variables?

Do you have any idea how widespread this is?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150221

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to