[clang] [clang] [MinGW] Explicitly always pass the -fno-use-init-array (PR #68571)

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 9 03:23:42 PDT 2023


mstorsjo wrote:

This is an alternative to #68570. This has the upside that the `UseInitArray` flag is set to the correct value throughout the chain, for any other potential users of the field, in case it would affect code generation in other places. The downside is that if we only go with this, then any other language frontend, which might not know about the details about `.ctors`, will end up with the same bug unless they also add a similar fix. (We could of course go with both fixes as well.)

https://github.com/llvm/llvm-project/pull/68571


More information about the cfe-commits mailing list