[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 13:32:25 PDT 2023


mstorsjo wrote:

> Hmm...
> 
> Maybe the backend should have some notion of a default ctors section. So if the frontend doesn't explicitly specify anything, the backend tries to pick the right default.

Yep, this is kinda the same issue for lots of target specific options that are set as bools..., while the ideal I guess either would be an `optional<bool>`, or to initialize the bools to the target specific actual value.

In this case, I would maybe suggest merging both this and #68570 - that should both fix behaviours and make clang aware of the reality, and leave the root design issue for someone else to take on... WDYT?

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


More information about the cfe-commits mailing list