The Darwin targets don't enable AVX/AVX512 by default to support Rosetta 2, so the new -Wpsabi warning adds unwanted noise to our SDK. Users who build for AVX/AVX512 for Darwin are already supposed to take extra care when it comes to the ABI differences and the SDK.
Details
Diff Detail
Event Timeline
Hmm, is there a more general way to disable warnings? I'm not familiar with these parts, so I'll defer to you folks =]
clang/lib/CodeGen/TargetInfo.cpp | ||
---|---|---|
2515–2516 | I wouldn't explain it this way, maybe something like ^ ? | |
2564–2568 | also very minor nitpick: if you pass around some WarnOnSSE bool or something, you'd have the darwin explanation with this psABI comment here, might be nicer |
clang/lib/CodeGen/TargetInfo.cpp | ||
---|---|---|
2564–2568 | This didn't really fit well here as there's also a second invocation of checkAVXParam for the return type, which would need a second check for whether the warning is enabled or not, so I moved your suggestion into checkAVXParam itself. |
I wouldn't explain it this way, maybe something like ^ ?