diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2025-06-13 17:24:10 +0200 |
---|---|---|
committer | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2025-08-15 08:54:29 +0200 |
commit | b1f9ab40cbcc6ecd53a2be3e01052cee096e1a00 (patch) | |
tree | e634e1c2528868ff598c837ca9b49e5c9ab0a7b0 /libjava/java | |
parent | 5b60bb6dc70e7f94f9c9a8d7584981ecf0720641 (diff) | |
download | gcc-b1f9ab40cbcc6ecd53a2be3e01052cee096e1a00.zip gcc-b1f9ab40cbcc6ecd53a2be3e01052cee096e1a00.tar.gz gcc-b1f9ab40cbcc6ecd53a2be3e01052cee096e1a00.tar.bz2 |
fixincludes: skip stdio_stdarg_h on modern darwin
All macOS SDK since at least macOS 10.9, and until macOS 10.12
(included), feature these lines in <stdio.h>:
/* DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
* __gnuc_va_list and include <stdarg.h> */
The clear intent (and effect) was to bypass gcc’s stdio_stdarg_h
fixinclude.
However, since macOS 10.13, these lines have been moved to <_stdio.h>,
which is itself included at the top of <stdio.h>. The unintended
consequence is that the stdio_stdarg_h fixinclude is now applied to
macOS <stdio.h>, where it is not needed. This useless fixinclude makes
the compiler more fragile and less portable.
A previous attempt to skip the stdio_stdarg_h fix entirely had to be
reverted, since it broken some very old macOS versions. The new fix is
to bypass the fix based on the detection of <_stdio.h> inclusion, which
is more robust.
fixincludes/ChangeLog:
* fixincl.x: Regenerate.
* inclhack.def (stdio_stdarg_h): Skip on darwin.
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions