[PATCH] D150221: Add option -fkeep-static-variables to emit all static variables

Zheng Qian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 8 08:29:49 PDT 2023


qianzhen added a comment.

@erichkeane Thanks for the comments!

> How does this work with function-local statics?

This is a valid case. The function-local statics should be kept; the missing implementation is added now.

> What does the behavior look like in C?

The C behavior should be the same as those examples in the included C++ test case (except for the C++ specific ones). Do you have any special considerations about C in mind?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150221



More information about the cfe-commits mailing list