serge-sans-paille added inline comments.

================
Comment at: clang/include/clang/Basic/DiagnosticDriverKinds.td:276-277
   "-fembed-bitcode is not supported on versions of iOS prior to 6.0">;
+def err_drv_stack_clash_protection_unsupported_on_toolchain : Error<
+  "-fstack-clash-protection is not supported on Windows or Mac OS X">;
 
----------------
kristof.beyls wrote:
> There are more OSes than Linux, Windows or OSX.
> Maybe it's somewhat better to say "-fstack-clash-protection is not supported 
> on %0", with the targeted OS being fed in.
> If that is not easily possible, maybe just say "-fstack-clash-protection is 
> not supported on the targeted OS"?
> Maybe it's somewhat better to say "-fstack-clash-protection is not supported 
> on %0", with the targeted OS being fed in.
I second that one.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3084
 
-  if (!EffectiveTriple.isOSLinux())
+  if (EffectiveTriple.isOSWindows() || EffectiveTriple.isOSDarwin()) {
+    D.Diag(diag::err_drv_stack_clash_protection_unsupported_on_toolchain);
----------------
In that case you should probably allow explicitly the different Linux flavors 
here


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92245

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

Reply via email to