@@ -155,9 +155,9 @@ module _Builtin_intrinsics [system] [extern_c] {
155155
156156// Start -fbuiltin-headers-in-system-modules affected modules
157157
158- // The following modules all ignore their top level headers
159- // when -fbuiltin-headers-in-system-modules is passed, and
160- // most of those headers join system modules when present.
158+ // The following modules all ignore their headers when
159+ // -fbuiltin-headers-in-system-modules is passed, and many of
160+ // those headers join system modules when present.
161161
162162// e.g. if -fbuiltin-headers-in-system-modules is passed, then
163163// float.h will not be in the _Builtin_float module (that module
@@ -190,11 +190,6 @@ module _Builtin_stdalign [system] {
190190 export *
191191}
192192
193- // When -fbuiltin-headers-in-system-modules is passed, only
194- // the top level headers are removed, the implementation headers
195- // will always be in their submodules. That means when stdarg.h
196- // is included, it will still import this module and make the
197- // appropriate submodules visible.
198193module _Builtin_stdarg [system] {
199194 textual header "stdarg.h"
200195
@@ -237,6 +232,8 @@ module _Builtin_stdbool [system] {
237232module _Builtin_stddef [system] {
238233 textual header "stddef.h"
239234
235+ // __stddef_max_align_t.h is always in this module, even if
236+ // -fbuiltin-headers-in-system-modules is passed.
240237 explicit module max_align_t {
241238 header "__stddef_max_align_t.h"
242239 export *
@@ -283,9 +280,10 @@ module _Builtin_stddef [system] {
283280 }
284281}
285282
286- /* wint_t is provided by <wchar.h> and not <stddef.h>. It's here
287- * for compatibility, but must be explicitly requested. Therefore
288- * __stddef_wint_t.h is not part of _Builtin_stddef. */
283+ // wint_t is provided by <wchar.h> and not <stddef.h>. It's here
284+ // for compatibility, but must be explicitly requested. Therefore
285+ // __stddef_wint_t.h is not part of _Builtin_stddef. It is always in
286+ // this module even if -fbuiltin-headers-in-system-modules is passed.
289287module _Builtin_stddef_wint_t [system] {
290288 header "__stddef_wint_t.h"
291289 export *
0 commit comments