mstorsjo wrote:

> We could go with a clang fix, but also make the backend report_fatal_error if 
> you try to use llvm.ctors with UseInitArray on mingw. That keeps everything 
> consistent while also making sure non-clang frontends don't miscompile.

Hmm, interesting proposition... But wouldn't that essentially break every 
single invocation of `llc` with a mingw triple, unless they also explicitly 
pass the `-use-ctors` option? And for any other language frontend, I also feel 
that it would, somewhat abruptly, break every single current user of LLVM for 
mingw targets, unless they update their calling code to explicitly set 
`UseInitArray` to false for this target?

https://github.com/llvm/llvm-project/pull/68571
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to