872 | - AX_CHECK_COMPILE_FLAG([-fstack-clash-protection],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-clash-protection"],[],["-O0"],
873 | - [AC_LANG_SOURCE([[class D {public: unsigned char buf[32768];}; int main() {D d; return 0;}]])])
874 | + case $host in
875 | + *mingw*)
876 | + dnl stack-clash-protection doesn't currently work, and likely should just be skipped for Windows.
877 | + dnl See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 for more details.
I'm confused by this comment as it contradicts the one from bugzilla:
... Windows has been doing stack clash protection since day #1
How does it contradict it? The two Bugzilla comments say that Windows has it's own mechanisms to handle this (and has done since day #1), hence the -fstack-clash-protection option would seem pointless, and should either be a NOP, or potentially throw an error when being applied to Windows builds.
Re-reading again. That makes sense now.