@@ -155,9 +155,9 @@ module _Builtin_intrinsics [system] [extern_c] {
155
155
156
156
// Start -fbuiltin-headers-in-system-modules affected modules
157
157
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.
161
161
162
162
// e.g. if -fbuiltin-headers-in-system-modules is passed, then
163
163
// float.h will not be in the _Builtin_float module (that module
@@ -190,11 +190,6 @@ module _Builtin_stdalign [system] {
190
190
export *
191
191
}
192
192
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.
198
193
module _Builtin_stdarg [system] {
199
194
textual header "stdarg.h"
200
195
@@ -237,6 +232,8 @@ module _Builtin_stdbool [system] {
237
232
module _Builtin_stddef [system] {
238
233
textual header "stddef.h"
239
234
235
+ // __stddef_max_align_t.h is always in this module, even if
236
+ // -fbuiltin-headers-in-system-modules is passed.
240
237
explicit module max_align_t {
241
238
header "__stddef_max_align_t.h"
242
239
export *
@@ -283,9 +280,10 @@ module _Builtin_stddef [system] {
283
280
}
284
281
}
285
282
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.
289
287
module _Builtin_stddef_wint_t [system] {
290
288
header "__stddef_wint_t.h"
291
289
export *
0 commit comments