[PATCH] D150221: Add option -fkeep-static-variables to emit all static variables
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 15 12:56:24 PDT 2023
efriedma added a comment.
It's not unprecedented to add flags to copy the behavior of other compilers, to make porting easier, especially when it doesn't place much burden on compiler maintainers. But what compiler preserves the names/values of static variables by default? It's not the sort of feature I'd expect anyone to advertise. And we don't really want to encourage people to use global flags for this sort of thing; applying behavior everywhere has weird effects, and users often don't understand the flags they're using.
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