https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116827
Bjorn Pagen <hello at bjornpagen dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hello at bjornpagen dot com
--- Comment #12 from Bjorn Pagen <hello at bjornpagen dot com> ---
The same SDK mechanism also affects rsize_t.
In sys/_types/_rsize_t.h, __has_feature(modules) selects the USE_CLANG_STDDEF
path, which defines __need_rsize_t and includes <stddef.h>. GCC's <stddef.h>
does not currently implement __need_rsize_t, so rsize_t remains undefined.
This is tracked with a testcase and preprocessed source in PR target/126782:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126782
The later removal of GCC's __has_feature(modules) claim also avoids this SDK
path on trunk:
https://gcc.gnu.org/g:08ede4fbbe6d38e08bcc72c4df2cf6720b9f4717
Cross-referencing here because this is the same SDK feature-detection
mechanism, affecting another fundamental type.