[PATCH] D52499: [clang-cl] Make /Gs imply default stack probes, not /Gs0 (PR39074)
    Nico Weber via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Sep 26 05:26:35 PDT 2018
    
    
  
thakis added a comment.
Thanks! lgtm.
================
Comment at: include/clang/Driver/CLCompatOptions.td:94
+def : CLFlag<"Gs">, HelpText<"Use stack probes (default)">,
+  Alias<mstack_probe_size>, AliasArgs<["4096"]>;
 def _SLASH_Gs : CLJoined<"Gs">,
----------------
https://docs.microsoft.com/en-us/cpp/build/reference/gs-control-stack-checking-calls?view=vs-2017 still claims that /Gs is /Gs0 though. Is that just wrong? https://bugs.llvm.org/show_bug.cgi?id=39074#c2 suggests it is. Should we ask bruce to file a doc bug?
And since this flag is supposed to get the default behavior, should it be a CLIgnoredFlag instead of duplicating the 4096 somewhat redundantly?
Repository:
  rL LLVM
https://reviews.llvm.org/D52499
    
    
More information about the cfe-commits
mailing list