aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorIain Sandoe <iainsandoe@mini-05-seq.local>2024-12-29 23:06:54 +0000
committerIain Sandoe <iain@sandoe.co.uk>2025-04-15 19:25:07 +0100
commit9cf6b52d04df22726d88eef113211b3cc08515de (patch)
tree4d26a7a59752abc74e113e555baa8ecb7a1cf4ff /libjava
parent5621b3b5c9ebd98f1f18787a6fceb015d19d33a5 (diff)
downloadgcc-9cf6b52d04df22726d88eef113211b3cc08515de.zip
gcc-9cf6b52d04df22726d88eef113211b3cc08515de.tar.gz
gcc-9cf6b52d04df22726d88eef113211b3cc08515de.tar.bz2
includes, Darwin: Handle modular use for macOS SDKs [PR116827].
Recent changes to the OS SDKs have altered the way in which include guards are used for a number of headers when C++ modules are enabled. Instead of placing the guards in the included header, they are being placed in the including header. This breaks the assumptions in the current GCC stddef.h specifically, that the presence of __PTRDIFF_T and __SIZE_T means that the relevant defs are already made. However in the case of the module-enabled C++ with these SDKs, that is no longer true. stddef.h has a large body of special-cases already, but it seems that the only viable solution here is to add a new one specifically for __APPLE__ and modular code. This fixes around 280 new fails in the modules test-suite; it is needed on all open branches that support modules. PR target/116827 gcc/ChangeLog: * ginclude/stddef.h: Undefine __PTRDIFF_T and __SIZE_T for module- enabled c++ on Darwin/macOS platforms. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions