[PATCH] D40925: Add option -fkeep-static-consts

Elizabeth Andrews via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 25 11:26:56 PDT 2018


eandrews added a comment.

I think it makes sense to include this case just to make the flag more complete. Also, we don't really match GCC behavior for this flag. GCC emits all static constants by default (when O0). When optimized, this flag has no effect on GCC.  The negation is used to not emit the constants.

Erich has uploaded a possible fix here - https://reviews.llvm.org/D53718


Repository:
  rC Clang

https://reviews.llvm.org/D40925





More information about the cfe-commits mailing list