https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107568

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> ---
since this effects upstream *-*-darwin21+ the bug is now tracked here (I've
closed the arm64 duvet branch dup)

I am considering amending the darwin host module to add
-Wno-error=deprecated-declarations to the STAGE2+ flags, rather than
fix-including.

Two reasons:
 * fixincludes make life tricky when compiling for different Darwin versions
with --sysroot (since they leak into the target runtime, esp. libstdc++
headers).  It's better to avoid them if possible

 * fixinclude-ing would make the GCC behaviour different from clang's on
end-user's code. It is clear that Apple's intention is dissuade users from the
unsafer APIs (which is reasonable, I guess, but the mechanism is a bit
heavy-handed).

anyway just thoughts at present, no draft patch yet.

Reply via email to