The C coverage plan defines scope and completion. Clause numbers below follow C11 N1570 and C17, except where an edition is named. An existing fixture establishes coverage for the behavior it exercises. The open column lists work to qualify the remainder of each group.
C11 draft · C11 and C17 defect reports
| Clauses | Current C99 through C17 evidence | Open checks |
|---|---|---|
| 5.1 Translation and execution environments | PA38 runs C on native and WASI. The pinned runtime suite links cppgm objects using a C driver. | Confirm initialization and termination and freestanding entry contracts by target. |
| 5.2.4.1 Translation limits | One combined program passes under C99, C11, and C17 on Linux x86-64, Linux AArch64, WASI, and bare Wasm. | Run the combined program natively on Intel macOS and Apple Silicon. |
| 5.2 Environment and character sets, 6.4 lexical elements | PA1 through PA4 cover shared source translation, tokens and macros. PA38 tests C literal types. Upstream cases exercise integer types and hexadecimal floating literals. | Audit C edition boundaries, trigraphs, UCNs, encodings, alternative tokens and numeric ranges. |
| 6.2.1–6.2.3 Scopes, linkage and namespaces | PA38 covers distinct namespaces, nested tags, typedefs and cross-unit declarations. The GNU forward enum cases now pass. | Complete prototype and label scopes and nested redeclarations. |
| 6.2.4 Storage duration and lifetime | PA38 checks compound literals and automatic VLA scope exits. The hosted VLA test verifies a C-only link. | Cover variably modified declarations, bound evaluation, limited temporary lifetime and cross-ABI TLS. |
| 6.2.5–6.2.8 Types, compatibility and alignment | PA38 covers scalar kinds, pointer qualification, bit-fields and tentative definitions. GCC tests confirm the C99 boolean bit-field width and value rules. | Qualify composite types across units, array and function compatibility, C alignment rules, atomic representation and each ABI's bit-field layout. |
| 6.3 Conversions | PA38 checks arithmetic, promotions, void-pointer conversions and GNU pointer extensions. | Cover integer constant expressions as null pointer constants, conditional pointer composites, qualification, complex conversions and default argument promotions. |
| 6.5 Expressions | PA38 checks C value categories, generic selection, compound literals, casts and short-circuit effects. | Test aliasing, volatile and atomic effects, evaluation order and arithmetic boundaries across optimization levels. |
| 6.6 Constant expressions | PA38 exercises array bounds, static initialization and static assertions. | Distinguish the integer, arithmetic and address constant expression requirements from ordinary folding. |
| 6.7 Declarations and type names | PA38 covers tags, old and new function declarations, initializers, designators and one-dimensional VLAs. | Complete variably modified types, nested and overlapping designators, flexible arrays, repeated qualifiers and edition diagnostics. |
| 6.7.2.2–6.7.2.3 Enumeration specifiers and tags | PA38 checks the int constant rule, compatible object types, out-of-range diagnostics and GNU incomplete tags. |
Qualify C23 compatible tag redefinitions. C23 enumeration evidence |
| 6.8 Statements and blocks | PA38 checks control flow, switch conversion and VLA scope exits. GCC's C99 runtime test checks for-declaration scoping. | Qualify for-declaration constraints, nested scopes and jumps involving variably modified types. |
| 6.9 External definitions | PA38 mixes units with common objects, inline definitions and identifier-list functions. | Check more cross-unit combinations, symbol visibility and inline linkage on each ABI. |
| 6.10 Preprocessing | PA4 covers shared macro replacement, conditional inclusion, pragmas and line control. PA38 probes C predefined macros. | Pin the GCC preprocessing corpus and qualify required diagnostics, mode macros and hosted header extensions. |
| 7 Library and language integration | PA38 hosted tests cover headers, varargs, builtins and startup attributes. The runtime matrix uses the host libc. | Qualify each SDK and its compiler-dependent headers. Add libc-test and hosted project builds. |
| Annexes and implementation-defined options | The existing target models record data layout and native ABI choices. | Publish the supported choices, conditional features and evidence for every advertised environment. |
Through C17, §5.2.4.1 requires a single executable program that exercises every applicable translation limit. The generator selects the 22 thresholds for the edition, including the 32,767-byte hosted object in C90 and C95 and the 65,535-byte hosted object in C99 through C17. Individual value checks have distinct exit codes. For C90 and C95, the generated program uses positional initialization and gives its external names distinct six-character prefixes. Generator · C89 draft · C99 draft · C11 draft
The C90 and C95 programs passed at -O0 and -O2 on x86-64 Linux, AArch64
Linux under QEMU, both Mach-O targets with local loaders, and WASI and bare
Wasm under Wasmtime. GCC 15 and Clang 21 passed both programs on Linux
x86-64. The C clause runner collects the legacy results alongside the
C99 through C17 matrix.
Pedantic C99, C11, and C17 passed at -O0 and -O2 on Linux x86-64,
Linux AArch64 under QEMU, and WASI and bare Wasm under Wasmtime. The bare
Wasm run invokes an exported entry point and also checks the large object.
GCC 15 and Clang 21 passed the same edition and optimization matrix on
Linux x86-64. Both Darwin targets emitted objects and cross-linked dylibs
in all six configurations. Native macOS execution remains open. The C CI
job runs the Linux x86-64, WASI, and bare Wasm configurations. The bare
compile uses -ffreestanding -nostdinc. The link exports the C entry
without a sysroot or startup files. The receipt checks that the actual
exported return value is zero, since Wasmtime reports it on stdout. The
job records the object, link, and execution stages at both optimization
levels. The native AArch64 Linux, Intel macOS, and Apple Silicon jobs
now collect this evidence with their own host C linkers. All 22 C99
through C17 cases pass on Linux AArch64 under QEMU with a cross-linked
glibc runtime. Native results from these jobs remain pending. The
rule inventory maps the combined executable to each applicable minimum.
It also tracks
the physical include check, the presumed diagnostic location, and the
unexpanded #error message as separate results. The job publishes the
target and edition matrix with the raw receipts. An absent result stays
uncovered even when the same case passes on another target.
Versioned inventory ·
Evidence runner ·
CI job
The integer-limit probe checks the target ranges in #if, the plain
char range against the runtime signedness, and the promoted types in
C99, C11, and C17. The C99 fixture uses the reserved __typeof__ and
__builtin_types_compatible_p spellings for the type assertions.
Separate floating probes check significand and exponent
macros, decimal precision, finite extrema, epsilon, C11 subnormals,
and the default rounding code. The probes use the actual headers.
They check long width and long double precision against the
expected target independently of the compiler's macro values.
The bare Wasm header replay uses the pinned SDK's compiler resource headers and no libc. It links its binary128 comparisons with the pinned compiler-rt archive. The runner hashes those inputs and records them with the tested configurations. The default rounding probe links without the archive. The WASI hosted probe passes the same resource directory at compilation and link time so the driver can supply binary128 helpers from its selected SDK.
The native rounding probe checks the four C rounding codes after
fesetround() and restores the entry mode. AArch64 previously used
the x86 rounding field to decode fegetround() and returned 1 for
toward zero. Bare Wasm previously tried to link a fegetround()
import. The regressions exercise observable results and the Wasm
module links without libc.
The C99 through C17 probes pass at -O0 and -O2 on Linux x86-64,
Linux AArch64 under QEMU, WASI, and bare Wasm. The AArch64 replay passes
with both GCC and Clang's compiler headers. Clang's <float.h> also
reports all four dynamic codes on x86-64 and AArch64. The installed GCC
headers use a fixed code for nearest.
Native macOS evidence remains open.
The FENV_ACCESS ON probe now preserves 1.0 + 0x1p-53 as runtime
arithmetic. It checks upward and downward rounding in the same function
and checks FE_INEXACT after a discarded addition. It also checks the
default mode in a nested block, restoration of the enclosing mode, and
a static initializer. Direct and LowIR round-trip execution pass on
Linux x86-64 from -O0 to -O3 in C99 through C17. AArch64 under QEMU
passes at -O0, -O2, and -O3. Bare Wasm passes the scope and
default-rounding control. An upward-rounded binary128 addition also
passes on AArch64 with libgcc. Further library profiles remain open.
The conversion probe now covers int to float and double to float
under upward and downward modes, and invalid after discarding an
out-of-range conversion to int. The comparison probe checks invalid
for ordered operators on quiet NaNs, including a discarded result,
and quiet behavior for equality and isless. It also exercises the
x87 long double comparison where available. Direct and LowIR
round-trip builds pass on x86-64 Linux at -O0 through -O3.
AArch64 Linux under QEMU and bare Wasm pass at -O0, -O2, and
-O3, with the Wasm probe checking the comparison results and
default rounding. Native macOS execution and the broader library
and software-floating environment profiles remain open.
Conversion probe ·
Comparison probe ·
PA38 scope and runtime probe ·
WG14 N1570 §7.6.1 and F.8.4 ·
Integer probe ·
Floating probe ·
Default rounding probe ·
Clause inventory
With FENV_ACCESS ON, hosted math call boundaries preserve observable
rounding and exception effects. The previous optimizer discarded the
inexact effect of an unused sqrt result and could replace pow with
ordinary arithmetic or combine sin and cos across a flag clear. PA33
checks explicit math call boundaries. PA38 checks downward rounding of
sqrt, an unused square root and power, and independent invalid flags
from sin and cos on infinity.
Linux x86-64 and AArch64 under QEMU pass direct and LowIR round-trip
execution in C99, C11, and C17 at -O0, -O2, and -O3. GCC 15 and
Clang 21 on x86-64 pass the same libm fixture when their builtin
substitutions are disabled. The WASI replay checks default-rounding
results for the three real square root interfaces and pow. A separate
header-free probe retains all four library imports in Intel and Arm64
Mach-O objects. LLD links those objects as shared libraries with dynamic
symbol lookup. Native macOS SDK execution remains open.
PA33 call-boundary probe ·
PA38 hosted math probe ·
WG14 N1570 §§7.6.1, 7.12.7, F.3, and F.10
The FP_CONTRACT probe uses a product that rounds to one before
addition and a fused result that is exactly nonzero. It checks file scope,
nested block scope, _Pragma, DEFAULT, and the intermediate rounding of
a cast or separate assignment. The probe passes in C99, C11, and C17 at
-O0 and -O2 on Linux x86-64, AArch64 Linux under QEMU, WASI, and bare
Wasm. The AArch64 replay checks that ON fuses both scalar widths and
passes after LowIR serialization through -O3. The Apple Silicon
profile emits Arm64 Mach-O objects from the same LowIR, and LLD
cross-links the fixture. Native macOS execution remains open.
PA38 probe ·
WG14 N1570 §§6.5 and 7.12.2
The CX_LIMITED_RANGE fixture exercises file scope, block scope,
_Pragma, DEFAULT, and compound assignments. The OFF controls divide
complex values whose component squares would overflow or underflow.
They also check infinity recovery when the elementary product would
produce two NaNs. Under ON, scalar floating complex multiplication
and division use the elementary formulas.
The complex environment fixture reproduced a discarded division that
set invalid at -O0 and disappeared at -O2. The call now carries
an effectful LowIR signature at that call site. The native fixture
checks invalid from a full-range division and inexact from a
limited-range division. Its Wasm control checks the quotient at
the target's round-to-nearest setting. Native x86-64 and Linux
AArch64 under QEMU passed both probes and their LowIR round trips
at -O0, -O2, and -O3. C99 through C17 clause replays
passed on those targets, WASI, and bare Wasm. The PA37 runtime probe
also covers double and binary128 complex helper calls against the
SDK's compiler-rt. A separately compiled double complex quotient
passed with cppgm in either caller or callee. The other compiler
was GCC 15 on x86-64, Clang 21 on AArch64 under QEMU, and the
WASI SDK's Clang on Wasm. The range probe cross-compiles into Intel
and Arm64 Mach-O objects. Native macOS execution remains open.
PA38 range case ·
PA38 environment case ·
PA37 runtime case ·
WG14 N1570 §§7.3.4, 7.6.1, G.5.1
The long double probe exercises classification and all six quiet predicates
over 196 ordered and unordered pairs. It checks invalid after a discarded
relational comparison. On AArch64 Linux under QEMU, the prior compiler
set invalid during quiet operations. The new lowering compares the binary128
representation using scalar integers, and a native status instruction
signals invalid only for a relational comparison on the unordered path.
Direct and LowIR round-trip objects pass at -O0 through -O3 in C99,
C11, and C17. The x86-64 Linux, WASI, and bare Wasm clause probes also
pass. The Wasm probes exercise the values and do not query exception flags.
PA38 probe ·
WG14 N1570 §§7.12.3, 7.12.14, and Annex F.3 ·
compiler-rt's binary128 comparison helpers
The hosted probe exercises classification and all six quiet comparisons
through the installed <math.h> on each standard real type. It also
checks mixed-type comparisons, single evaluation of operands, and the
native invalid flag. The AArch64 glibc signbit macro uses the typed
__builtin_signbitf even when the argument selects another branch.
PA30 checks the builtin's conversion and sign results. On x86-64,
glibc's size-optimized fallback expands _Generic into C99 code.
PA38 checks suppression for replacement-list tokens and re-enables
diagnostics for user inputs and -Wsystem-headers.
The hosted probe passes in C99, C11, and C17 at -O0, -O2, and
-Oz with glibc 2.43 on Linux x86-64 and AArch64 under QEMU, with musl
1.2.5 on Linux x86-64, and with the pinned WASI SDK. WASI's NAN
expands to floating division in the selected preprocessing environment.
A separate probe uses static division on all three real types and checks
that an automatic division still raises invalid on native targets.
PA30 signbit fixture · PA38 hosted fixture · PA38 zero division fixture · WG14 N1570 §§7.12.3, 7.12.14, and Annex F.8
GCC 15 and Clang 21 both accept c23, gnu23, c2x, gnu2x, and
iso9899:2024 and report 202311L for all five spellings. The
clause inventory records the source and preprocessing obligations
individually. It uses N3220 for clause numbers and checks adoption
against the proposals. N3220 is a related public C2y working draft.
The WG14 editor's report attributes the corresponding C23 draft edits
to clarity, wording and cross-references.
| Area | Baseline and upstream sources |
|---|---|
| Trigraphs | Both compilers translate trigraphs in ISO C17 and leave them unchanged in C23. GCC cpp/c23-trigraphs-*.c and Clang C/C23/n2940.c cover this boundary and explicit enabling. |
| Binary numbers and digit separators | Both compilers accept binary integer literals and separators in C23 and reject the probe in pedantic C17. GCC c23-binary-constants-*.c and c23-digit-separators-*.c, and Clang C/C23/n2549.c, check value, type, token formation and diagnostics. |
| Conditional directives | GCC and Clang select the same groups for valid #elifdef and #elifndef in C23. They reject these directives in the outer conditional section in pedantic C17. GCC skips an unrecognized form inside a nested skipped group, where Clang issues an extension error. GCC cpp/c23-elifdef-*.c covers the forms and operands. |
| Warning directives | A reached C23 #warning produces a diagnostic with the unexpanded message. Both compilers accept the file under -pedantic-errors and suppress the warning in a skipped group. |
| Unicode | GCC cpp/c23-ucn*.c and Clang C/C23/n2836_n2939.c cover the change to Unicode identifier properties and the literal rules. Check initial and continuation characters, normalization, and agreement between direct UTF-8 and universal spelling. |
| Resource inclusion | GCC cpp/embed-*.c and Clang C/C23/n3017.c supply binary fixtures and cover resource status, replacement and parameters. The implementation must bound bytes read and tokens produced by the effective limit. |
cppgm now selects the experimental C23 mode for all five spellings.
The first batch enables the version macro, C23 trigraph defaults,
#elifdef, #elifndef and #warning. The GCC digit-separator acceptance
case exposed a lexical boundary and decimal line-control rule. The
lexer consumes an apostrophe and the following nondigit together, so
0x0'e-0xe has a subtraction after its first token. Decimal
#line accepts separators between digits in C23. The pinned GCC and
Clang lanes run eleven and four C23 configurations, respectively.
PA38 covers these edition boundaries with the same native and WASI
fixtures. The clause runner separately checks predefined version,
trigraphs including splice behavior, conditional selection, and the
warning's unexpanded message. Identifier normalization, resource
inclusion and later declaration semantics still need implementation.
Earlier pedantic C modes still accept the binary integer and
digit-separator probe that both GCC 15 and Clang 21 diagnose.
The clause run recorded 466 passes, including 15 C23 checks across
Linux x86-64, WASI and bare Wasm. All six new executable PA38 fixtures
passed at -O0 and -O2 on Linux x86-64, Linux AArch64 under QEMU,
both Mach-O targets with local loaders, bare Wasm and WASI. The
GCC and Clang resource baseline agrees on separate embed search
paths, zero-limit status, unknown vendor parameter status, and
replacement by prefix, suffix or empty-resource tokens.
GCC resource search and parameters
The frozen C++ overload and GNU17 SQLite objects stayed byte-identical
in A/A, ABBA and BAAB blocks for this batch. Retired instructions
changed by +0.004% and -0.003%, and peak RSS by +0.116% and +0.122%,
respectively. The PA1 fixture checks the apostrophe token boundary
for C++14 as well.
On generated files with 128 to 1,024 conditional sections, the
#elifdef form used 2.81% to 5.84% fewer retired instructions than
#elif defined(...). The two spellings produced byte-identical
objects in the A/A, ABBA and BAAB blocks. The directive reuses the
macro binding lookup and the existing conditional state.
The strict course report passed 11,674 tests. PA38 passed 477 native
tests, 540 WASI tests and three native ABI tests. PA39, debug-info,
inception, self-host through PA5, the harness checks and the source
and placement audits passed. The previous C cohorts still pass their
reviewed expectations, including the 60-case GCC C90 screen.
The final student export passed all 67 PA1 checks and the same PA38
native, WASI and ABI lanes.
Clause inventory · WG14 N3221 editor's report · WG14 N3220 draft · GCC change inventory · Clang change inventory
PA38 exercises computed and direct resource names, resource lookup after
#line, byte order, all four standard parameters and all three query
results. It checks diagnostics for missing resources, unsupported
parameters, duplicates, negative limits, defined in a limit, and
unbalanced parameter tokens. GCC 15.2 and Clang 21.1 accept the positive
fixture and diagnose all six negative fixtures. The pinned C23 CI
manifests now pass 14 GCC cases and nine Clang cases. The executable
fixture also passed at -O0 and -O2 for Linux x86-64, Linux AArch64
under QEMU, both Mach-O targets with local loaders, WASI, and bare Wasm.
The implementation records successful resource queries in dependency
output, as Clang does. Both GCC and Clang record files consumed by
#embed. The PA38 lane checks the standard parameters; the GCC and
Clang vendor parameters are outside the supported profile.
WG14 N3220 §§6.10.2, 6.10.4, and 6.10.10.2 ·
GCC resource search and parameters
A read trace at limit(64) shows exactly 64 bytes read and 127 tokens
produced for files of 4 KiB, 1 MiB, and 64 MiB. The three preprocessed
outputs are identical, retired instructions stay at 3.79 million, and
median RSS stays between 17,348 and 17,492 KiB. At 64 MiB, limits of
4,096, 16,384 and 65,536 read
exactly those byte counts and produce 8,191, 32,767 and 131,071 tokens.
Retired instructions rise with token count, while median RSS stays
at or below 17,500 KiB. __has_embed reads zero payload bytes for
every size and limit, with retired instructions at 3.68 million.
The frozen C++ overload and GNU17 SQLite objects are byte-identical in the A/A, ABBA and BAAB runs. Paired retired instructions changed by −0.013% and +0.016%, and peak RSS changed by −0.077% and +0.049%. The A/A task-clock spread was 43% and 17%, respectively, on the shared host.
The PA38 variadic macro fixture checks omitted, explicitly empty, and
macro-expanded empty arguments, including stringizing and pasting.
In strict C17, GCC and Clang reject omission in user macros. GCC accepts
omission with system-header definitions, and cppgm follows that policy.
-Wsystem-headers enables the diagnostic there. Both compilers accept
the C23 fixture. WG14 N3033
The literal fixtures check basic and control characters, NUL, malformed
escapes and surrogates. The GCC C23 corpus also rejects
c23-ucn-1.c at its first invalid surrogate after the valid escape
cases. The number fixture checks binary literal types and suffixes,
stringizing and pasting digit separators, separated exponents, and
#line. The pinned C23 suites pass 15 GCC cases and nine Clang cases.
The clause matrices pass 514 probes, including 63 C23 probes across
Linux x86-64, WASI, and bare Wasm.
The positive PA38 fixtures ran at -O0 and -O2 for Linux x86-64,
Linux AArch64 under QEMU, both Mach-O targets with local loaders,
WASI, and bare Wasm. The ordinary PA38 lanes pass 491 source
fixtures on native and WASI, 63 native control fixtures, and
three native ABI fixtures. The strict course report passed 11,674
tests. Debug-info, inception, and self-host coverage through PA5
passed, as did the harness, source, and placement audits.
The C90 through C17 upstream manifests retain their
reviewed outcomes. The student export verified 26,626 portable
reference files and passed PA1 and the same PA38 native, WASI,
control, and ABI lanes.
The variadic diagnostic adds work only when a variable argument is omitted. The frozen C++ overload and GNU17 SQLite objects are byte-identical across all A/A, ABBA, and BAAB trials. Paired retired instructions changed by +0.0005% and less than 0.0001%, and peak RSS changed by −0.049% and +0.051%. With 256, 1,024 and 4,096 C23 conditional groups exercising omitted, empty and nonempty macro arguments, both binaries produced identical output. The candidate used 10.67 million, 31.56 million and 115.10 million retired instructions, respectively. The paired increase stayed at or below 0.05%.
The C23 lexer enforces the Unicode 15.1 XID repertoire and NFC for raw, escaped and pasted identifiers. The PA38 cases cover valid combining marks, raw and escaped name equivalence, line splicing, Unicode 15.1 CJK, and distinct diagnostics for invalid characters or non-NFC spellings. The C17 control retains its older repertoire. The normalization check leaves string and preprocessing-number spellings intact. WG14 N3220 §6.4.2.1
The implementation matched the Unicode data for all 1,114,112 code-point lookups and passed 95,370 NFC decisions from the Unicode 15.1 normalization corpus, plus 100,000 randomized decisions against the canonical decomposition and composition rules. The generator verifies the three upstream input hashes. Unicode 15.1 database · Unicode Normalization Forms
GCC 15 and Clang 21 accept the positive PA38 fixture. Both reject
invalid XID use. GCC diagnoses the tested non-NFC identifiers.
Clang 21 accepts the tested non-NFC cases in pedantic C23 mode.
The pinned manifests pass 17 GCC cases and ten Clang cases.
The clause matrix passes 538 probes, including 87 C23 probes, on
Linux x86-64, WASI, and bare Wasm. The PA38 positive tests run at
-O0 and -O2 on both Linux native targets, both Mach-O targets,
WASI, and bare Wasm. Linux AArch64 uses QEMU and Mach-O uses the
local loaders.
PA38 passes 499 source cases in both the native and WASI lanes. The student export verified 26,638 portable reference files and passed PA1 and the PA38 native, WASI, control, and ABI lanes. The older C upstream manifests retain their reviewed outcomes. The strict course report passes 11,674 cases. Debug-info, inception, self-host through PA5, the harness checks, source and architecture audits, and the placement audit also pass.
The frozen C++ overload and GNU17 SQLite builds produce identical objects in A/A, ABBA, and BAAB trials. Paired retired instructions change by +0.0030% and +0.0003%. RSS changes by +0.144% and −0.128%. A/A task-clock varies by 56% and 41% on the shared host.
The source benchmark uses identifiers of 64 through 32,768 characters and compiles to identical outputs. Retired instruction counts scale with consumed code points. The longest ASCII case changes by +0.026%. CJK starters add 11.5% and ordered combining marks use 5.0% fewer instructions than the previous lexer. For marks that need full reordering after a precomposed starter, the longest input adds 29.4% and uses 334.6 million retired instructions. Plain Unicode starters and directly checkable combining sequences bypass allocation. When decomposition is needed, scratch covers the current normalization segment and canonical ordering is linear.
__has_c_attribute rescans its operand and returns the C23 revision
for noreturn and _Noreturn, including their reserved spellings.
Qualified extension names use the existing target attribute capabilities.
Unsupported attributes return zero. The query is also available in earlier
C modes, following GCC 15 and Clang 21. cppgm diagnoses ordinary source
use outside preprocessing conditions. Both reference compilers accepted
that use in the local probe. WG14 N3220 §§6.7.13.7, 6.10.2
Before C23, both reference compilers accept binary integers as an
extension and diagnose them under -pedantic-errors. Both reject digit
separators in ISO and GNU C17. PA38 covers direct and pasted spellings in
source and preprocessing conditions. cppgm applies its existing system
header diagnostic policy. In the macro-use probe, GCC follows the same
policy and Clang 21 diagnoses the expansion at the user call site.
The GCC C23 manifest passes 23 cases and the Clang C23 manifest passes
ten. Two added Clang C17 cases exercise the ordinary and pedantic
numeric boundaries, and the earlier known C17 gap remains recorded.
The clause matrix passes 550 probes, including 99 C23 probes, on
Linux x86-64, WASI, and bare Wasm. The three positive portable probes
also run at -O0 and -O2 on both Linux native targets, both Mach-O
targets, WASI, and bare Wasm. Linux AArch64 uses QEMU. Mach-O uses the
local loaders.
The strict course report passes all 11,674 cases. Debug-info, inception, self-host through PA5, the harness, and the architecture, source and placement audits pass. The student export verifies 26,656 portable reference files and passes PA1 and the PA38 native, WASI, control and ABI lanes, including 509 C source cases in each of the two source lanes.
Frozen-input and attribute query measurements
PA38 exercises the two C23 type inquiries with qualified pointers,
atomic scalars and arrays, function designators,
and variably modified type and expression operands. Both inquiries
diagnose bit-fields. The C17 fixture covers the reserved extension
spellings and shows that the C23 keyword spellings still work as C17
identifiers. It also checks that a typeof-derived sole void
parameter has an empty call signature and lowers without a parameter
binding. C23 recognizes bool, true, false, and static_assert.
WG14 N3220 §§6.4.4.6, 6.7.3.6, 6.7.12
The pinned manifests pass 27 GCC and 12 Clang C23 configurations,
including Clang's cases for adjusted parameter types.
The Clang compile replay suppresses its encoding warning for a non-UTF-8
byte in the pinned test's comment. The GCC runtime case also runs at
-O2, and the Clang VLA object returns the expected size of 13.
The clause matrix passes 580 probes, including 129 C23 probes, across
Linux x86-64, WASI, and bare Wasm. All four positive PA38 fixtures run
at -O0 and -O2 on both Linux native targets, both Mach-O targets,
WASI, and bare Wasm. Linux AArch64 uses QEMU. Mach-O uses the local
loaders.
The strict course report passes all 11,674 cases. Debug-info, inception, self-host through PA5, the harness, and the architecture, source and placement audits pass. PA38 passes 517 source cases in each of the native and WASI lanes. The student export verifies 26,672 portable reference files and passes PA1 and the PA38 native, WASI, control and ABI lanes. The earlier C upstream manifests retain their reviewed outcomes.
Frozen-input and array qualification measurements
PA38 covers nullptr_t as a distinct scalar type, including static and
empty initialization, pointer and boolean conversions, atomic qualifiers,
comparison constraints and preservation of operand effects. The C17
controls check ordinary identifier use and the earlier ellipsis-only
diagnostic. C23 <stdarg.h> can use __builtin_c23_va_start without a
named argument. The revised operation uses the existing variadic ABI.
WG14 N3220 §§6.3.2.4, 7.16.1.4, 7.21.2
The pinned C23 manifests pass 38 GCC and 13 Clang configurations. The
GCC cases exercise the <stddef.h> typedef and <stdarg.h> macro, plus
variadic reads from registers and the stack. The additional pinned C17
case passes. The clause matrix passes 613 probes, including 162 C23
probes, on Linux x86-64, WASI, and bare Wasm.
The three positive PA38 fixtures run at -O0 and -O2 on both Linux
targets, both Mach-O targets, WASI, and bare Wasm. A separate two-object
replay passes both compiler directions on all six targets at both
optimization levels. It checks calls with a nullptr_t parameter and
return plus an ellipsis-only call that carries a null sentinel alongside
integer and floating arguments. Linux AArch64 runs under QEMU and
Mach-O runs under the local loaders.
The strict course report passes all 11,674 tests, and the student export verifies 26,689 portable reference files. The exported PA1 and PA38 suites pass using the self-built reference tools. After moving the contextual boolean conversion helper to meet the source size limit, the PA38 native, Wasm and ABI suites, debug-info tests, inception, and self-host through PA5 pass again.
Frozen-input and feature scaling measurements
The analyzer keeps the type seen during an enum definition on each
typed use. It tracks the numeric extrema as it processes the list and
chooses the compatible representation at completion. A wide enum's
members then use the enumeration type. A fixed base rejects bit-precise
types and requires a standalone declaration when the enumerator list
is omitted. Pedantic C17 diagnoses the fixed base. C23 implicitly
widened values keep their signedness. A fixed bool base follows
boolean assignment, increment, and decrement.
The fixed __int128 fixture checks an implicit successor, a static
initializer, a function result, and a switch whose case values differ
only in the high word. The analyzer allocates the extra word only for
an enumerator that needs it. The three positive PA38 fixtures execute
at -O0 and -O2 on both Linux architectures, both Mach-O targets,
WASI, and bare Wasm. AArch64 Linux uses QEMU and Darwin uses local
Mach-O loaders. Optimized LowIR rebuilt with optimization disabled
produces byte-identical objects to the direct compile on all six
targets. A Linux x86-64 mixed-object probe passes __int128-based
enums through GCC and cppgm callers and callees in both directions.
The pinned GCC and Clang C23 jobs now include five source files for
member types, range diagnostics, fixed qualifiers, and fixed-enum
runtime behavior. GCC's runtime case also covers pointer and
nullptr conversions to a bool-based enum. Clang 22 rejects those
implicit conversions in the local PA38 probe.
All 11,674 strict course tests, 1,153 local C clause probes, 61 pinned GCC C23 configurations, and 21 pinned Clang C23 configurations pass. The earlier-edition upstream cohorts retain 135 passing configurations and one recorded Clang C17 gap. PA38 passes 647 native cases, 647 Wasm cases with the optimized LowIR check enabled, 63 controls, and four ABI cases. The debug-info and PA36 smoke suites and the harness checks pass. PA35 passes through PA5, and inception reproduces the compiler byte for byte. The placement audit scanned 11,649 fixtures with zero placement or local hygiene findings. Its cached directory listings produce the same PA38 report as the direct audit. The student export verifies 26,880 portable reference outputs. The exported PA1 and PA38 suites pass with the packaged reference binaries.
WG14 rules and issues · PA38 member types · PA38 fixed 128-bit enum · Compile measurements
Same-scope definitions of an enumeration now preserve the original tag,
representation and member bindings. Compare the repeated list by member
name and mathematical value. The first definition continues to supply
each member's visible type during the repeated definition. Reject a
nested same-tag definition in either an initializer or a typeof
operand in the fixed base. Keep the earlier-edition diagnostic.
Ten PA38 cases cover the positives, diagnostics, and the C17 boundary.
The two runtime cases run at -O0 and -O2 on Linux x86-64, Linux
AArch64 under QEMU, both Darwin targets under local Mach-O loaders,
WASI, and bare Wasm. All direct and LowIR-replay objects are byte-identical
at those settings. The fixed-base nesting probe reaches the intended
diagnostic on all six targets.
The existing GCC C23 CI lane now includes three additional pinned configurations and passes 64 in total. The Clang C23 lane passes all 21 configurations in its current manifest. The local clause matrix passes 1,186 probes. PA38 passes 657 native cases, 657 Wasm cases with optimized LowIR validation, 63 controls, and four ABI cases. The strict course report passes all 11,674 tests, and the debug-info and PA36 smoke suites pass. The compiler passes the PA35 self-host ladder through PA5 and inception reproduces it byte for byte. The architecture, file, and test harness checks pass. The placement audit scans 11,659 fixtures with zero placement or local hygiene findings. Its cached directory listings give the same PA38 results as the direct audit. The student export verifies 26,894 portable reference outputs. The exported PA1 and PA38 suites pass with the packaged reference binaries.
WG14 issue 1130 remains open for the transient type of a redeclared enumerator. WG14 rules and issues · PA38 redefinition case · Compile measurements
Repeated definitions of a same-scope record keep the original tag complete. Each repeated member list is typed in a separate member scope. Comparison uses canonical types, member order, alignment requests, and bit-field facts. Anonymous members are compared by their contents. A nested definition of the same tag is diagnosed. The original type supplies layout and code generation.
Thirteen PA38 cases cover recursive records, anonymous members, nested
tags, flexible arrays, alignment and packing, incompatible member
lists, and the C17 boundary. Three runtime cases pass at -O0 and
-O2 on both Linux architectures, both Mach-O targets, WASI, and bare
Wasm. Direct and LowIR-replay objects match byte for byte on all six
targets. The native replay uses QEMU for Linux AArch64 and the local
loaders for Mach-O. A mixed Clang and cppgm probe passes in both compiler
directions on Linux x86-64 and AArch64 at both optimization levels. The
cppgm objects in that probe also pass DWARF verification.
The new GCC configurations require the intended redefinition diagnostic
after preceding valid definitions. The alignment source uses the flags
from its GCC test because it also contains GNU expression alignof.
The Clang N3006 configuration checks the first incompatible record
definition in a compound-literal initializer. The pinned C23 cohorts
pass 67 GCC and 22 Clang configurations. The local C matrix passes
1,231 probes. PA38 passes 670 native cases, 670 Wasm cases with optimized
LowIR validation, 63 controls, and four ABI cases. The strict course
suite passes all 11,674 tests. The debug-info, PA36 smoke, and harness
checks pass. Self-hosting through PA5 passes, and inception reproduces
the compiler byte for byte. The export verifies 26,913 portable reference
outputs. The exported PA1 and PA38 suites pass with the packaged tools.
The placement audit scans 11,672 fixtures with zero placement or local
hygiene findings. Its cached directory listings produce the same PA38
output as the direct audit. The architecture audits pass. The file audit
adds one header-weight warning because its count includes field
declarations in entity_records.h.
WG14 rules · PA38 record redefinition case · Compile measurements
Complete same-tag records compare member types and declaration facts
across scopes. When those types are recursive, the comparison tracks
pairs of typed record identities and checks every reachable pair before
caching success. Fixed-base forward enum comparisons use GCC 15's
behavior while WG14 issue 1018 remains open. They can change after a
definition appears, including when the enum is a member of a larger
record. The longer _Generic lists use the tag identity to find
potentially compatible associations.
Compatible records can be used for assignment, arguments and returns, and conditional expressions. A composite type retains each stronger member type and shares an existing record if it supplies all of them. When complementary bounds require a new record, the analyzer creates the required member tables before filling recursive links. The typed composite also supplies the bindings for anonymous member access.
Nine PA38 cases cover these paths and the C17 boundary. The four runtime
cases pass at -O0 and -O2 on Linux x86-64, Linux AArch64 under QEMU,
both Mach-O targets under local loaders, WASI, and bare Wasm. Direct
and LowIR-replay objects match byte for byte. Mixed Clang 21 and cppgm
objects pass by-value arguments and returns in both directions on both
Linux architectures at both optimization levels. The resulting objects
and the synthesized recursive composite pass DWARF verification.
The pinned GCC C23 manifest gains nine configurations, for 76 passing
cases. Its four new execution cases check aliasing through matching
tags and composites, including flexible members and bit-fields.
The existing Clang C23 manifest passes all 22 configurations.
Clang 21 rejects the complementary-bound conditional and takes a
different view of the tested forward fixed-base enum case. The full
Clang N3037 source also includes a later-edition type operand to
_Generic, so its complete C23 run remains outside the manifest.
The local C clause matrix passes 1,267 probes, and PA38 passes 679 native
cases, 679 Wasm cases with optimized LowIR validation, 63 controls, and
four ABI cases. The strict course report passes all 11,674 tests.
The debug-info, PA36 smoke, architecture, file, and harness checks pass.
The compiler self-hosts through PA5 and inception reproduces it byte for
byte. The student export verifies 26,930 portable reference outputs.
The exported PA1 and PA38 suites pass with the packaged tools.
The placement audit scans 11,681 fixtures with zero placement or local
hygiene findings. Its cached directory listings produce the same PA38
output as the direct audit.
Initial probes of the installed C23 <stdckdint.h> and <stdbit.h>
pass on Linux x86-64 with GCC 15, Clang 21 and cppgm, and on Linux
AArch64 with cppgm using the cross GCC and glibc headers. They cover
header version macros, mixed-width arithmetic, and four bit operations.
The extended x86-64 probe also passes all 14 generic bit operations
on the five standard unsigned integer types and the mixed-sign checked
arithmetic boundary cases at -O0 and -O2 with all three compilers.
The checked arithmetic case also runs in WASI and bare Wasm with the
SDK header and compiler-rt builtins. The broader library qualification
needs the full operation set on other targets and separate receipts for
each tested compiler, SDK and runtime pairing.
WG14 rules and open issue ·
PA38 composite case ·
Compile measurements
PA38 exercises integer constant widths and their limits, literal suffixes, preprocessing arithmetic, promotions, bit-fields, casts, unsigned wraparound, signed overflow constraints, and arithmetic through atomic updates. A wide switch tests labels that share their low word. The duplicate-label fixture tests conversion of a negative ordinary case value to a wide unsigned value.
The pinned C23 manifests pass 45 GCC and 14 Clang configurations. The GCC C11 and C17 manifests pass six and 26 configurations respectively including the new extension and header checks. The clause matrix passes 661 probes, including 210 for C23, on Linux x86-64, WASI and bare Wasm. PA38 passes 542 native, 542 Wasm, 63 controls and three ABI cases. PA30's deferred C++ template case passes with its original sign specifier handling.
The strict course report passes all 11,674 tests. The student export verifies 26,711 portable reference files. Exported PA1 and PA38 pass with the self-built reference tools. The corrected build also passes inception, self-host through PA5, the debug-info checks and the architecture audits.
The three non-atomic execution fixtures pass on Linux x86-64 and
AArch64, both Mach-O targets, WASI and bare Wasm at -O0 and -O2.
The two-compiler replay passes in both directions at both optimization
levels on all six targets. It checks narrow and wide arguments and returns,
a wide argument on the stack, aggregate layout, a signed wide global,
and unnamed arguments whose offsets agree. Clang 23.1.0 in the WASI SDK can
emit a sixteen-byte stack alignment for a wide unnamed argument while
its va_arg advances using eight bytes. A sequence with a single
narrow argument immediately before the wide one reproduces that
mismatch with two Clang objects. cppgm uses eight-byte alignment at
both ends.
The wide multiplication, division, remainder and floating-conversion replay passes on Linux x86-64, Linux AArch64, WASI and bare Wasm using the existing runtime helpers. The Linux host additionally passes the wide atomic arithmetic replay linked with libatomic through the host linker at both optimization levels.
Frozen-input and width scaling measurements
PA38 covers file-scope and automatic definitions, named scalar and
aggregate constants, member and union selection, and exact initialization
before conversion. The scalar fixture evaluates a named constant as a
_BitInt width and checks distinct addresses in recursive invocations.
The aggregate fixture covers designated initialization, copies, and
sparse arrays. The complex fixture checks exact initializer conversions
and copies of a named complex constant. Rejection cases include complex
to real initialization and signaling NaN conversion. The C17 control
uses constexpr as an identifier.
The pinned C23 manifests pass 46 GCC and 15 Clang configurations. The object emitted for Clang's linkage case has local read-only symbols for the three addressed constants. The clause matrix passes 736 probes, including 285 C23 probes, on Linux x86-64, WASI and bare Wasm. PA38 passes 565 native, 565 Wasm, 63 controls and three ABI cases. The strict course report passes all 11,674 tests. Debug-info, self-host through PA5, the architecture checks, and the placement audit also pass. The student export verifies 26,742 portable reference outputs and passes PA1 and the native, Wasm, control, and ABI lanes of PA38 using the packaged reference binaries.
The three positive fixtures pass at -O0 and -O2 on x86-64 Linux,
AArch64 Linux under QEMU, both Mach-O targets through the local
execution harness, bare Wasm and WASI. These runs use freestanding
startup for the cross targets. The subsequent batches cover storage
classes on compound literals and large sparse arrays in record constants.
C23 constexpr rules · Frozen-input and constexpr scaling measurements
PA38 checks file and block definitions, traditional auto with a
written type, and inference with constexpr, qualifiers, bit-fields,
register, and thread storage. It exercises lvalue and pointer
conversions, loop declarations, and a variably modified pointer
initializer whose bound is evaluated once. The constraints fixtures
reject a pending name, unsuitable declarators and initializers, and
function, parameter, and type-name forms. The C17 controls keep written
types with auto and allow thread_local as an identifier.
The frozen C23 manifests pass 49 GCC and 16 Clang configurations.
The matrix passes 808 probes, including 357 C23 probes, on Linux
x86-64, WASI and bare Wasm. PA38 passes 587 native, 587 Wasm, 63 control,
and three ABI cases. The three non-TLS inference programs run at -O0
and -O2 on both Linux and both Mach-O targets using local execution
harnesses where needed, and on WASI and bare Wasm. The TLS fixture
runs on both Linux targets, with AArch64 under QEMU using static glibc
startup. Both Mach-O targets emit objects with thread-local variable
descriptors for the TLS fixture.
The strict course report passes all 11,674 tests. The debug-info, self-host through PA5, architecture, and placement checks pass. The student export verifies 26,774 portable reference outputs and passes PA1 and PA38 using the packaged reference binaries.
C23 inference rules · Frozen-input and inference measurements
PA38 checks zero initialization of multidimensional automatic VLAs, including aggregate padding, a side-effecting bound and reuse of a captured typedef bound. The constraint fixtures reject nonempty VLA initializers, static-storage VLAs, VLA compound literals, and empty initializers for arrays of unknown extent. A pedantic C17 control rejects empty initialization.
The pinned manifests pass 51 GCC and 17 Clang C23 configurations.
The clause matrix passes 832 probes, including 381 C23 probes,
on Linux x86-64, WASI and bare Wasm. Both PA38 positive fixtures also
run at -O0 and -O2 on those targets, on AArch64 Linux under QEMU,
and on both Mach-O targets through the local execution harness.
GCC 15 and Clang 21 run the positive fixtures on Linux x86-64.
PA38 passes 594 native, 594 Wasm, 63 control, and three ABI cases. The strict course report passes all 11,674 tests. The PA36 smoke, debug-info, self-host through PA5, architecture, and placement checks pass. The placement audit scanned 11,595 fixtures. The student export verifies 26,785 portable reference outputs and passes PA1 and PA38 using the packaged reference binaries.
C23 empty initialization rules · Frozen-input and variable-length array measurements
PA38 covers declarations after named, case, and default labels, chained labels, and jumps to labels at block ends. A backward goto to a declaration checks that the VLA is initialized on each entry. The constraint cases reject jumps past a variably modified declaration, free labels on unbraced substatements, and free labels in pedantic C17.
GCC 15 and Clang 21 run both positive fixtures on Linux x86-64. Both
fixtures pass at -O0 and -O2 on x86-64 Linux, AArch64 Linux under
QEMU, both Mach-O targets under local execution harnesses, and both
Wasm targets. The Mach-O replays use freestanding startup.
The pinned C23 manifests pass all 52 GCC and 19 Clang configurations.
The new C17 configurations pass both default and pedantic checks where
selected. GCC passes all 27 C17 configurations. The Clang C17 manifest
has eight passes and the existing __STDC_NO_VLA__ qualification gap.
The clause matrix passes 856 probes, including 405 C23 probes, on Linux x86-64, WASI, and bare Wasm. PA38 passes 602 native, 602 Wasm, 63 control, and three ABI cases. The debug-info, self-host through PA5, and compiler architecture checks pass. The placement audit scanned 11,603 fixtures with no findings. The two self-hosted compiler generations match byte for byte. The student export verifies 26,797 portable reference outputs and passes PA1 and PA38 using the packaged reference binaries.
Strict course validation passed all 11,674 tests across the full report and a PA33 retry. The full report passed 11,668 tests. Its six PA33 quality checks stopped when a parallel architecture audit relinked the reference compiler. PA33 passed all 880 tests on retry with fixed binaries.
C23 label rules · Frozen-input and label scaling measurements
PA38 exercises static, automatic, register, and thread storage,
including a static array's decay, repeated evaluation of an automatic
literal, and accesses to thread-local objects. The constexpr fixture
checks scalar and aggregate constant operands, member access, copies,
address qualification, and a complex initializer converted to its
destination format. The constraint fixtures cover invalid combinations,
addresses, initializers, and external inline definitions. The C17
control diagnoses a storage specifier supplied under pedantic mode.
A C99 fixture checks fixed-size literal operands of sizeof, including a
typedef and a subscript.
The pinned GCC C23 manifest passes all 58 configurations, including
the full c23-constexpr-1 case and the pthread runtime case. The clause
matrix passes 934 probes, including 465 C23 probes, on Linux x86-64,
WASI and bare Wasm. The C99 sizeof fixture is replayed in C99, C11,
C17 and C23. The existing header inquiry case also passes in C23 on
each of those profiles.
The storage, constexpr, and sizeof fixtures pass at -O0 and
-O2 on both Linux targets, both local Mach-O execution harnesses,
WASI and bare Wasm. The thread-storage fixture runs on both Linux
architectures and both Wasm profiles. The actual pthread case also
passes at both optimization levels under AArch64 QEMU using static
glibc startup. Both Darwin architectures emit thread-local variable
descriptors. Hosted Darwin thread execution requires native validation.
PA38 passes 618 native, 618 Wasm, 63 control, and three ABI cases. All 11,674 strict course tests pass, as do the debug-info, PA36 smoke, self-host through PA5, and compiler audits. The placement audit scans 11,619 fixtures with no findings. The two self-hosted compiler generations match byte for byte. The student export verifies 26,821 portable reference outputs and passes PA1 and PA38 with the packaged reference binaries.
C23 storage rules · Frozen-input and compound literal scaling
A constexpr array member whose designated writes would exceed dense
evaluation storage can retain the checked initializer. Its containing
record can supply a constant scalar member or be copied into another
constexpr object. The emitter reads the same sparse writes and implicit
zeros to build the stored object. PA38 checks a bit-field in an active
union member, named and compound-literal constants, and runtime reads
from the copied array and a static literal. GCC 15 accepts and runs the
fixture in strict C23. cppgm passes it at -O0 and -O2 on Linux x86-64,
Linux AArch64 under QEMU, both Mach-O targets in local image loaders,
WASI and bare Wasm.
The clause matrix passes all 940 local probes, including 471 C23 probes. The pinned GCC C23 suite passes all 58 configurations. PA38 passes 619 native, 619 Wasm, 63 control, and three native ABI cases. The strict course report passes all 11,674 tests. PA36 smoke and self-host through PA5 pass. The two self-hosted compiler generations are identical. The student export verifies 26,824 portable reference output files.
The follow-up extends this to updates after copies. C23 constexpr rules · WG14 DR 413 · Frozen-input and sparse array measurements
Successive copies share the checked initializer and unchanged interval tree nodes. A designator updates the selected element or span. The evaluator reads an older element value only when the update needs to preserve part of that element. Static data emission merges source writes and updates in storage order. The compact representation also applies below the former evaluator storage cutoff.
PA38 checks successive copies, preserved fields of the same array
element, zero-fill after braced replacement, a copied string prefix,
and a nested GNU range patch. Both fixtures pass at -O0 and -O2
on both Linux architectures, both Mach-O local execution harnesses,
WASI and bare Wasm. A separate Linux runtime probe checks six snapshots
from a deterministic 2,048-update sequence. WG14's resolution of DR 413
requires preservation of the other subobjects. GCC 15 fails the
preservation assertion in the strict fixture. Clang 22 rejects the
copied-and-patched constexpr initializers. On the ordinary C17
example from DR 413, cppgm and Clang 22 preserve the other subobjects.
GCC 15 fails the runtime check.
The C matrix passes all 946 local probes, including 477 C23 probes. The pinned GCC C23 configurations pass all 58. PA38 passes 621 native, 621 Wasm, 63 control and three native ABI cases. The strict course report passes all 11,674 cases. Debug-info checks, PA36 smoke and self-host through PA5 pass, and the two self-hosted compiler generations match byte for byte. The placement audit reports no findings across 11,622 fixtures. The student export verifies 26,830 portable reference output files.
The follow-up covers projected GNU ranges. WG14 DR 413 · Frozen-input and copy scaling measurements
The constant evaluator keeps checked field intervals and rectangular ranges sparse when an aggregate exceeds the dense storage budget. Copy-and-update initializers share the source value. The static writer combines whole-element replacements, field and cell updates, and zero masks before emitting visible data.
PA38 checks overlapping writes to different fields, two ranged array
dimensions, preserved values across successive copies, whole-element
zero replacement, and point updates after a projection. The fixtures
pass at -O0 and -O2 on Linux x86-64, Linux AArch64 under QEMU, both
Mach-O targets with local loaders, WASI, and bare Wasm. A separate
pointwise oracle checks 32 generated sequences at both optimization
levels on Linux x86-64. The original evaluator reached its storage
budget on a 500,001-element copied union case. The follow-up performs
sparse active-member validation.
Increasing the represented extent from 500,001 to 500,000,001 records adds 0.04% retired instructions to the syntax-only field probe. Increasing the rectangular extent from about one million to 2.5 billion cells adds 0.10%. For each frozen input, baseline and candidate emit identical object files. The measured instruction differences are within the A/A spread for both C++ and SQLite. The initial implementation replayed earlier ranges for interleaved point updates. The follow-up retains the typed point updates.
All 11,674 strict course tests, 1,117 local C matrix probes, and 58 pinned GCC C23 configurations pass. PA38 passes 632 native, 632 Wasm, 63 control, and three ABI cases. Debug-info, PA36 smoke, and self-host through PA5 also pass. The two self-hosted compiler generations match byte for byte. The student export verifies 26,847 portable reference outputs, and PA1 and PA38 pass with the packaged reference binaries.
PA38 field ranges · PA38 rectangular ranges · Compile measurements
Retain the checked subobject writes of a point initializer over a sparse copied aggregate. Syntax-only evaluation records each eligible point update from its own typed initializer. During static emission, the writer composes the updates by their typed offsets. A change within a repeated cell clips the boundary cells and keeps the interior repeated.
The PA38 fixtures cover nested records, arrays and bit-fields, whole
element and cell replacements, and zero overwrites while preserving
earlier snapshots. They pass at -O0 and -O2 on Linux x86-64, Linux
AArch64 under QEMU, both Mach-O targets with local loaders, and WASI and
bare Wasm. A pointwise oracle checks 32 generated sequences of rectangular
ranges and cell updates at both optimization levels.
The syntax-only probes grow approximately linearly. At 1,024 field-range and point pairs, retired instructions fall from 1.97 billion to 136 million. At 512 rectangular pairs they fall from 3.10 billion to 97 million and peak RSS falls from 163 MiB to 17 MiB. The LowIR emission probe still emits every intermediate global, and the writer revisits the shared history for every emitted copy. The original native object probe also emitted all 33 snapshots in its smallest case. A follow-up makes object storage demand-driven.
All 11,674 strict course tests, 1,117 local C matrix probes, and 58 pinned GCC C23 configurations pass. PA38 passes 634 native, 634 Wasm, 63 control and three ABI cases. The PA38 placement audit finds no required moves. Debug-info, PA36 smoke, and self-host through PA5 pass, and the two self-hosted compiler generations match byte for byte. The student export verifies 26,853 portable reference outputs. PA1 and PA38 pass with the packaged reference binaries.
PA38 member point updates · PA38 cell point updates · Compile measurements
The evaluator checks inherited union selections at boundaries where the active member or the set of required selections can change. Scalar-only layers reuse the source's active-member state. A copy can also reuse a preceding proof when its required ranges are covered by that proof and the active members remain the same.
The PA38 acceptance case copies an array of 200,001 records with nested
unions, replaces a whole union in one row, and applies two overlapping
member ranges. It checks both the copied values and the original
snapshot. The rejection case widens an already checked range to include
one row whose inherited member differs. The positive fixture passes at
-O0 and -O2 on both Linux targets, both Mach-O targets with local
loaders, WASI, and bare Wasm. All six targets give the active-member
diagnostic for the rejection. An additional 64 generated sequences
match the small dense evaluator at both optimization levels on Linux
x86-64.
The syntax-only extent probe uses 4.17 million retired instructions as the represented array grows from 500,001 to 500,000,001 elements. On a source with 1,024 individually written rows, reusing the preceding proof cuts the 256-copy probe from 6.17 billion to 70.85 million retired instructions. The frozen C++ and SQLite objects match byte for byte.
All 11,674 strict course tests, 1,117 local C probes, 58 pinned GCC C23 configurations, and the debug-info, PA36 smoke, and self-host checks pass. The two self-hosted compiler generations match byte for byte. PA38 passes 636 native, 636 Wasm, 63 control, and three ABI cases. The full placement audit finds zero placement issues in 11,637 fixtures. It uses cached directory listings and produces the same PA38 report as the direct audit. The student export verifies 26,857 portable reference outputs. PA1 and PA38 pass with the packaged reference binaries.
PA38 preserved union member · PA38 mixed active members · Compile measurements
Native and Wasm object lowering materializes checked file-scope constants
when code or data first needs their storage. A constant used to initialize
another can supply its evaluated value without acquiring a symbol. A
per-unit queue follows references reached during constant data emission.
The declaration's typed attributes keep objects with used, a requested
section, or an explicit assembler name. Debug builds and units that
contain source assembly emit their file-scope constants eagerly.
GCC variable attributes
The PA38 ABI test checks a static-address relocation, a function returning
a different constant's address, and retained objects. The program
verifies distinct addresses and the contents of both images. The fixture
passes at -O0 and -O2 on both Linux architectures, both Mach-O targets
with local loaders, WASI, and bare Wasm. Driver LowIR and direct object
builds produce byte-identical objects on all six targets. Full source
LTO also passes a two-unit test with same-named constants on x86-64 Linux
and bare Wasm at both optimization levels.
The 128-copy native probe reduces the object from 257,009,920 to 1,001,048 bytes and retired instructions from 424.90 million to 22.66 million. Every measured program returns the expected final image. When code or data requires every intermediate address, the static data writer previously walked the shared history for each emitted image. The next batch shares the prepared writes. Shared snapshot emission
All 11,674 strict course tests, 1,117 local C clause probes, and 58 pinned GCC C23 configurations pass. PA38 passes 636 native cases, 636 Wasm cases with the optional optimized LowIR check, 63 controls, and four ABI cases. Debug-info tests, self-host through PA5 with an identical rebuild, PA36 smoke tests, and the architecture and file audits pass. The placement audit scanned 11,638 fixtures with zero placement or local hygiene findings. It reused directory listings, and its PA38 report matches the direct audit byte for byte. The student export verified 26,861 portable reference outputs. PA1 and PA38 native, Wasm, control, and ABI tests pass with the packaged reference binaries.
PA38 constant object demand · Compile measurements
The static writer keeps the existing single sweep for the first layered array image of a canonical type. On another emission of that type, it indexes typed array versions and lowers the writes of each reached version once. Consecutive suffixes form reusable blocks of power-of-two length. Each block summarizes its winning byte and bit ranges. Explicit zero writes remain in a block so they can clear data supplied by earlier blocks. When one newer write covers an older block's full row and bit extent, the writer skips that block. The storage belongs to the translation unit, and source layout and relocation items stay in their typed lowering representation.
The PA38 regression observes a chain of overlapping updates and a sibling
copy through an address table. It checks distinct object addresses,
bit-field zero writes, full and partial erasure, preserved fields, and
zero-filled elements. At -O0 and -O2 on all six targets, the direct
objects match the baseline and the objects rebuilt from driver LowIR
byte for byte. The test executes natively on Linux x86-64, through QEMU
on Linux AArch64, through local Mach-O loaders on both Darwin targets,
and through Wasmtime on WASI and bare Wasm.
For 128 pairs of range and point writes, driver LowIR emission falls
from 265 million to 101 million retired instructions for both address
orders. Native -c falls from 428 million to 263 million while
writing the same 257 MB object. The single-address control and frozen
C++ and SQLite inputs retain their previous compile cost. A 255-sibling
probe in which every sibling clears a shared history falls from 286
million to 75 million instructions.
All 11,674 strict course tests, 1,117 C clause probes, and 58 pinned GCC C23 configurations pass. PA38 passes 637 native cases, 637 Wasm cases with the optional optimized LowIR check, 63 controls, and four ABI cases. Debug-info tests, PA36 smoke tests, and the architecture and file audits pass. PA35 passes through PA5, and inception reproduces the compiler byte for byte. The placement audit covers 11,639 fixtures with zero placement or local hygiene findings. Its cached directory listings produce the same PA38 report as the direct audit. The student export verifies 26,864 portable reference outputs. PA1 and PA38 native, Wasm, control, and ABI checks pass with the packaged binaries.
PA38 shared snapshots · Compile measurements
PA38 covers an explicit address of a register local, a contained record
member, and a parameter. The parameter probes cover a normal prototype,
an identifier-list definition and a retained VLA parameter scope. The
declaration probes check file scope, function declarations and a storage
class conflict. The runtime control reads automatic register objects,
takes the address of a pointee through a register pointer, and applies
sizeof to a register array. GCC 15 and Clang 22 agree with the expected
outcomes for all nine fixtures. The pinned GCC C90 cohort adds
register-var-1.c and register-var-2.c and passes all 38 configurations.
The pinned GCC C23 cohort passes all 58 configurations.
The C matrix passes 1,117 local probes, including 171 named register
probes across the six C editions. Each of the eight rejection fixtures
also gives the intended diagnostic on both Linux targets, both Mach-O
targets, WASI and bare Wasm. The runtime control passes at -O0 and -O2
on all six, using QEMU for Linux AArch64 and local execution harnesses
for Mach-O. The implicit conversion of a register array retains its
separate undefined behavior rule.
All 11,674 strict course tests and the debug-info checks pass. PA38 passes 630 native, 630 Wasm, 63 control and three ABI cases. The self-host ladder through PA5 passes and the two self-hosted compiler generations match byte for byte. The placement audit reports no findings across 11,631 fixtures. The student export verifies 26,841 portable reference output files. Register storage rules · Compile measurements
The driver baseline at 39e13e127 rejects c90, c89,
iso9899:1990, iso9899:199409, and c23 before parsing.
The first boundary probes below used GCC 15 and Clang 21 on Linux
x86-64. The Clang old-style and no-prototype controls disabled its
deprecation diagnostics so they could check the language boundary.
| Rule | Reference outcomes | Current cppgm evidence |
|---|---|---|
c90.version |
The C90 aliases compile a plain C function and leave __STDC_VERSION__ undefined. |
c90, c89, iso9899:1990, gnu89, and gnu90 passed. |
c95.version |
iso9899:199409 defines __STDC_VERSION__ as 199409L. |
The PA38 and pinned GCC probes passed. |
c90.implicit-int |
A definition with omitted return type is accepted in C90 and C95. C99 diagnoses the missing type. | PA38 covers the definition, a declaration with a storage class, and an identifier-list parameter. It also checks the C99 rejection. |
c90.implicit-call |
Calling a function before its declaration is accepted in C90 and C95. C99 diagnoses the missing declaration. | PA38 checks the C99 rejection and runs a C90 call that passes a promoted integer and double to a later definition. |
c90.block-declarations |
A declaration following a statement is diagnosed in pedantic C90 and C95. The input is valid in C99. | PA38 and pinned GCC cases passed the legacy rejection probes. The C99 control compiles. |
c90.line-comment |
GCC and Clang accept line comments in system headers in the ISO legacy modes. | PA38 checks user input, GNU89, and a system-header pragma with an inherited quoted include. The WASI SDK probe exercises system include paths. |
c90.control-scope |
Declarations in a control statement reach the enclosing block before C99. | PA38 checks selection and iteration statements and brackets the change with a C99 control. |
c99.control-scope |
Selection and iteration substatements have their own scope. A name introduced by a do condition ends with that iteration statement. |
PA38 runs typedef and enumerator shadowing probes. The pinned Clang block-scope case checks the parser boundary. |
c90.later-constructs |
Pedantic C90 diagnoses C99 type specifiers, array declarator modifiers, compound literals, trailing enum commas, flexible members, and repeated qualifiers. | PA38 and GCC exercise the individual rejections. PA38 also checks equivalent C99 uses, including VLAs, and allowed explicit GNU extensions. |
c90.array-conversion |
Non-lvalue arrays retain array type in C90. GCC and Clang support a GNU subscript extension. C99 adds the usual array decay for these operands. | PA38 covers pointer conversions, subscript, comma and size queries, and address-taking on a C99 subscript element. |
c90.constant-context |
A legacy signed left shift uses the promoted type's bit representation. C90 initializers restrict operators in skipped branches and require constant elements in automatic aggregate lists. | The pinned GCC cases and paired PA38 probes check the arithmetic, constant initializers, conditional null typing, and GNU declaration suppression. |
c90.function-use |
GCC diagnoses __func__ in pedantic C90. A static function named in an expression requires a definition, with an exception for constant size queries. |
PA38 checks the predefined name, an unreachable reference, a later definition after a block redeclaration, and a declaration used only under sizeof. |
c11.record-and-typedef |
C11 permits anonymous structure and union members and redefinition of a typedef for the same non-variably-modified type. | PA38 runs both C11 features, checks the pedantic C99 diagnostics, and rejects a C11 typedef redefinition for a VLA. |
c90.pp-number |
The ISO C90 and C95 grammars allow signs after e and E. C99 adds signs after p and P. |
PA38 checks macro substitution, stringization and pasting. cppgm and GCC follow the legacy grammar. Clang keeps the signed binary exponent together in its legacy modes. |
c95.digraphs |
A body delimited by <% and %> is accepted in C95 and diagnosed in pedantic C90. |
PA38 checks directive delimiters and token pasting. Pinned GCC cases check stringization in both editions. |
c95.wide-headers |
<iso646.h>, <wchar.h>, and <wctype.h> compose in C95. |
The hosted probe runs restartable conversions, wide-string operations and classification in the C locale. It passed on x86-64 Linux, AArch64 Linux under QEMU, and WASI. |
c95.inline-linkage |
GNU89's plain inline definition supplies its external symbol. An extern inline definition refers to the external symbol when emitted as a call. |
PA38 links cppgm and an independent C provider. The glibc wide-header test also checks calls through the installed btowc wrapper at -O0 and -O2. |
c23.version |
-std=c23 compiles a plain C function and defines 202311L. |
The five aliases and the PA38 C23 version probe passed. |
c23.trigraphs |
Trigraph braces form a valid body through C17. The same source is diagnosed in C23. | PA38 checks default removal, retained spelling and splice behavior, and the explicit conversion option. |
c23.empty-parameters |
A call with an argument through a declaration with empty parentheses is accepted through C17 and diagnosed in C23. | The C17 control compiles. |
c23.identifier-list |
An identifier-list definition with explicit parameter types compiles through C17 and is diagnosed in C23. | The C17 control compiles. |
The pinned legacy cohorts pass 36 GCC C90 configurations, five GCC C95
configurations, and two Clang C90 configurations. The broader GCC
c90-*.c screen now agrees on all 60 selected configurations, up from
47 before the expression and function-use fixes and 34 before the
earlier diagnostics batch. All three binaries were checked with the
complete pinned source directory. Clang 21 differs from GCC in some
legacy diagnostics and shift behavior. Full hosted library
qualification remains open.
The strict course report passed 11,673 tests. PA38 passed on native x86-64
and WASI in both the solution checkout and the student export. The positive
legacy declaration and digraph probes passed at -O0 and -O2 on Linux
x86-64, Linux AArch64 under QEMU, both Mach-O targets using local image
loaders, bare Wasm, and WASI. The C runtime sample passed 876 cases and
the GCC torture sample retained its 113 matches in 128 configurations.
Debug-info, inception, and self-host through PA5 passed.
On Linux x86-64, the ABBA and BAAB blocks produced byte-identical objects for the frozen C++ overload input and GNU17 SQLite. Retired instructions changed by less than 0.006% and peak RSS by less than 0.11% on both inputs. Task-clock readings were noisy. Generated C90 files with 128 to 1,024 implicit calls produced byte-identical objects to files using explicit block-scope declarations. At each doubling, retired instructions grew by less than 1.9 times, both for repeated declarations of one function and for distinct names.
After the scope, preprocessing and inline-linkage changes, the frozen C++ and SQLite objects remained byte-identical. Retired instructions changed by less than 0.016%. On synthetic files with 128 to 1,024 consecutive control statements, C90 instruction counts fell by 0.93% to 1.30%. The same inputs in C99 used at most 0.044% more instructions. Both editions produced byte-identical objects in the A/A, ABBA and BAAB blocks.
With the additional edition checks and C99 statement scopes, the frozen C++ overload and GNU17 SQLite objects were byte-identical again. Retired instructions rose by 0.046% to 0.050% for C++ and 0.025% to 0.028% for SQLite over three A/A, ABBA and BAAB trials. Peak RSS changed by -0.051% to +0.050% for C++ and +0.259% to +0.393% for SQLite. Task-clock effects stayed within the corresponding A/A spreads. On the control-heavy synthetic inputs, instructions rose by 0.029% to 0.054% in C90 and 0.423% to 0.542% in C99.
The four new positive PA38 fixtures passed at -O0 and -O2 on all six
target profiles. The Mach-O runs used local loaders and independent
linking. GCC and cppgm suppress the long long diagnostic for a replacement
token supplied by a system macro but diagnose the same spelling in a
user-supplied macro argument. Clang 21 diagnoses both uses.
The strict report passed all 11,673 checks. PA38 passed 449 native tests, 512 WASI tests, and three native ABI tests in the solution and student export. PA39 passed 106 tests, and the clause runner passed 451 probes across Linux x86-64, WASI, and bare Wasm. The 876 runtime cases and the 113 of 128 GCC torture configurations reproduced their prior results. Debug-info checks, inception, self-hosting through PA5, the harness tests, and the source and placement audits passed.
After the expression and function-use fixes, the frozen C++ overload and GNU17 SQLite inputs produced byte-identical objects in A/A, ABBA and BAAB blocks. Retired instructions rose by 0.008% on both inputs. Peak RSS rose by 0.003% and 0.060%, respectively. Task-clock effects were within the 23% to 36% A/A spreads. In generated pedantic C90 sources with 128 to 1,024 conditional initializers, the additional operand checks added 0.54% to 1.04% retired instructions. Each doubling remained below 1.81 times the previous count. The matched C99 input changed by -0.021% to +0.059%. Both editions produced byte-identical objects.
The eight new executable probes passed -O0 and -O2 on x86-64
Linux, QEMU AArch64 Linux, both Mach-O targets with local loaders,
bare Wasm and WASI. The Wasm cross-object replay uses a freestanding
entry point to preserve the original main spelling for the
__func__ probes. PA38 separately exercises hosted WASI startup.
That batch passed all 11,673 strict course checks, 467 native and
530 WASI PA38 checks, three PA38 native ABI checks, 106 PA39 checks,
451 conformance probes, debug-info, inception and self-host through PA5.
The 467 native, 530 WASI and three ABI checks also passed in the
student export.
GCC C90 manifest · GCC C95 manifest · Clang C90 manifest · WG14 C amendment summary · WG14 scope resolution · GCC inline linkage · WG14 N3220 · GCC edition options
The PA38 code-unit fixture checks adjacent narrow strings containing an
embedded zero, two UTF-16 surrogate units and one UTF-32 code unit. It
checks the inferred bounds, final null, and zero fill for static, local
aggregate, and volatile arrays. GCC 15 and Clang 21 agree with the values.
The C clause job runs the fixture in C11 and C17 at -O0 and -O2 on
Linux x86-64, WASI, and bare Wasm. The C11 regression also runs on
AArch64 under QEMU and cross-links on both Darwin architectures.
PA38 code-unit fixture ·
WG14 N1570 §6.4.5 ·
Clause matrix
The pinned GCC digraph and trigraph runtime cases pass in pedantic C99
and C11 respectively. Reduced C99, C11, and C17 controls also pass for
trigraph replacement before line splicing, digraph token pasting, UTF-8
and escaped spellings of the same identifier, and preprocessing-number
maximal munch. GCC 15 and Clang 21 agree on the outcomes. The Clang
line-comment control uses -Wno-comment to keep its spliced-comment
warning from becoming an error.
GCC C99 manifest · GCC C11 manifest
C source files and headers accept LF, CRLF, and standalone CR. The
physical-line fixture combines a BOM, ordinary and trigraph continuations,
a skipped conditional, __LINE__, and a presumed line set by #line.
GCC 15 and Clang 21 agree on the C99 fixture. A generated comparison
exercises 128 mixed-ending headers, and 128 C and C++ configurations
preserve preprocessing output for LF and CRLF continued comments.
Additional cases check recovery when the last physical line is spliced.
An LF, CRLF, CR, and mixed-ending replay also verifies an identical
presumed filename, line, and byte column in a diagnostic.
GCC's pinned line4.c, line7.c, and line8.c add CI evidence for
macro-expanded #line numbers, missing expanded operands, and empty
presumed filenames. cppgm and GCC pass all 44 reviewed C99 configurations.
The preprocessing-number fixture observes maximal munch by making a macro name immediately after an exponent sign part of the number. It checks a number produced by a paste, stringization of a number that has no numeric value, and hexadecimal floating constants. The negative case diagnoses an invalid number used in an expression. Both positive fixtures run on Linux x86-64 in C99, C11, and C17, and on AArch64 Linux under QEMU and WASI in C99. Both macOS architectures cross-link. Native macOS execution remains open.
PA38 physical lines · PA38 preprocessing numbers · WG14 notes
ISO C99 through C17 convert trigraphs. GNU modes leave them unchanged
unless -trigraphs is supplied. The PA38 tests observe the distinction
in a directive, a string, and a continued comment. The pinned GCC C11
job replays its trigraph program in both ISO C11 and GNU11 with explicit
conversion. The C driver also accepts whitespace-separated splices with
a warning. PA38 checks the effect on skipped conditionals, promotion to
an error, and suppression in system headers. The GNU policy here covers
translation and the spaced-splice warning. Trigraph-specific warnings
remain a separate compatibility item.
GCC 15, Clang 21, and cppgm pass 72 generated C99, C11, C17, and GNU C header cases with mixed line endings. A separate replay checks the warning and presumed location in preprocessing, syntax checks, LowIR, and object emission. The four positive fixtures run on x86-64 Linux, AArch64 Linux under QEMU, and WASI. Intel and Apple Silicon Mach-O objects cross-link. Native macOS execution remains open. PA38 GNU defaults · PA38 explicit conversion · PA38 spaced splices · Scaling · GCC initial processing
C quoted includes use the directory of the path that opened the current
inclusion. GCC 15 and Clang 21 agree in the #line controls. __FILE__
and __LINE__ still report the presumed location. cppgm and GCC use the
path for each inclusion in a two-directory hard-link probe. Clang 21 uses
the first path's directory for the second inclusion. With no angle
directories, cppgm and Clang exclude quote paths from the angle search.
GCC 15 accepts the angle header from -iquote in this configuration.
PA4 retains its course-defined search and uses the opened file's identity
for #pragma once.
PA38 include fixture ·
PA38 angle diagnostic ·
GCC line control
The pinned GCC include4.c and include5.c cases cover header names
formed by macro replacement and empty expansions after direct header
names. Both compilers pass all 46 reviewed GCC C99 configurations. The
PA38 physical-include fixture runs at -O0 and -O2 on Linux x86-64
and AArch64 under QEMU. It also passes the PA38 WASI lane and cross-links
on both Darwin architectures. Native macOS execution remains open.
GCC C99 manifest ·
PA4 include fixture
An active #error includes its unexpanded message tokens. The PA4 case
exercises a macro name, a replaced comment, a splice, and a presumed
location. Maintainer C CI checks the translated message. Local
preprocessing, syntax, LowIR and object actions report it and exit with an
error. The skipped directive in the same fixture produces no diagnostic.
PA4 error fixture ·
WG14 N1570, §§6.10.2, 6.10.4, 6.10.5 ·
Scaling
Computed C quoted names retain literal backslashes, including ones that
introduce escape sequences in a string. cppgm, GCC 15, and Clang 21 find
the written filename with a simple escape, an incomplete escape, a
universal character name, and a quoted quote. The direct C header token
also keeps its backslashes. The lexer's C string token retains spelling
and the literal converter still checks escapes on use. For computed
< lead.h >, cppgm and GCC search for a leading space and discard the
trailing space, while Clang 21 attempts both spaces. The PA38 tests
exercise these paths with #include and __has_include. Both positive
fixtures run on Linux x86-64, AArch64 under QEMU, and WASI. They
cross-link on both Darwin architectures.
PA38 quoted names ·
PA38 angle names ·
PA38 invalid string escape ·
Scaling ·
GCC computed includes
A direct __has_include(<header name.h>) now preserves both spaces.
PA38 exercises direct names, a macro alias for the operator, computed
names with expandable tokens, and empty macro suffixes. GCC 15 and
Clang 21 pass the positive fixture in C99, C11, C17, and C23. cppgm
passes it in the three existing C modes and diagnoses empty names and
nonempty suffixes. The positive fixture runs on Linux x86-64, AArch64
under QEMU, and WASI, and cross-links on both Darwin targets. A
separate GNU17 test with two include directories also passes for
__has_include_next with all three compilers. The extension has its
own C99 through C17 receipts. The C23 rule remains uncovered until
cppgm selects and exercises that edition.
PA38 header operands ·
Clause inventory ·
WG14 N3220, §§6.4.7, 6.10.2 ·
Scaling
C99 through C17 require a diagnostic for universal character names
below U+00A0 except U+0024, U+0040, and U+0060. cppgm applies the
pedantic policy when it converts a literal, including in a controlling
expression and in its -E post-token output. The lexer retains the fact
through macro expansion. The PA38 probes check an expanded wide string,
a concatenated piece, a short-circuit condition, stringization, skipped
text, and suppression in system headers. GCC 15 and Clang 21 both reject
the consumed escapes in pedantic C99 through C17. GCC 15 also agrees
with the system-header policy. Its two pinned tests now verify distinct
low-value and surrogate diagnostics, giving 24 of 24 reviewed GCC C17
configurations. The positive PA38 fixtures run on Linux x86-64, AArch64
under QEMU, and WASI, and cross-link on both Darwin architectures.
C99 6.4.3 ·
C11 6.4.3 ·
PA38 literal ·
PA38 condition ·
Scaling
The C99 and GNU99 lexer uses the 245 disjoint allowed intervals and 14 digit intervals derived from C99 Annex D. C11 and C17 use their shared repertoire. The lexer applies the edition in source and when lexing a pasted token, and interns raw UTF-8 and its matching escape as the same name. The PA38 cases check U+01F6 across the edition boundary, the initial and continuation rules for U+0E50, token pasting and the independent literal rules. They run on Linux x86-64, AArch64 under QEMU and WASI, and cross-link on both Darwin targets.
The C99 lexer passed the allowed interval endpoint runs and rejected all 1,506 raw or escaped probes at disallowed boundaries. Clang 21 also accepts the allowed runs. GCC 15 rejects initial U+0E4F, which the published Thai interval permits outside the digit ranges. GCC 15 allows the newer identifier repertoire when pedantic diagnostics are disabled. cppgm and Clang 21 use the C99 repertoire whenever that mode is selected. The GCC C99 manifest adds 13 configurations for macro lookup, stringization, token pasting, preprocessing numbers, and valid and invalid identifier characters. Both compilers pass all 40 reviewed cases. C99 Annex D · C11 Annex D · GCC C99 manifest · Scaling
The C macro redefinition check compares written parameter and replacement
spellings after line splicing. The lexer records a spelling only when
decoding a universal character name changes the token in a macro definition.
Lookup and substitution share the existing normalized identifier.
cppgm and GCC 15 diagnose changes in parameter escapes, replacement-list
identifiers, and string literals in pedantic C99, C11, and C17.
Clang 21 diagnoses the changed literal and accepts the changed identifiers.
All three accept the lookup and substitution controls. The pinned
ucnid-11 case now checks the reason for rejection in GCC CI.
C99 6.10.3 ·
GCC C99 manifest ·
PA38 macro control
The PA38 control uses a UTF-8 object name. It runs on Linux x86-64, AArch64 Linux under QEMU, and WASI, including the Wasm LowIR round trip. Both Darwin architectures cross-link. The LowIR reader validates and preserves UTF-8 names introduced by a sigil. A PA8 regression exercises that syntax. On Linux x86-64, a C name emitted by the compiler and read back through LowIR linked and ran across GCC 15 and Clang 21 object boundaries in both directions. PA8 reader fixture
- c-testsuite inventories 220 programs in two dialects and at two optimization levels. cppgm and GCC 15 pass all 876 selected configurations. One source that reads an uninitialized automatic object is excluded from the runtime comparison. Suite builder · Known gaps
- GCC and Clang execute the reviewed C99, C11 and C17 configurations, recording known failures separately from passes. GCC C99 · GCC C11 · GCC C17 · Clang C99 · Clang C11 · Clang C17
The final pinned initializer program, 00216.c, matches its expected Linux
x86-64 output in C17 and GNU17 at -O0 and -O2. The program exercises
overlapping scalar ranges, parenthesized compound literals in static
initializers, and a record containing a GNU empty struct. The empty struct
has size zero in C, so its enclosing record's two byte members are adjacent.
PA38 exercises retained and overwritten values, scalar braces and volatile
stores, inferred bounds, positional continuation, and static function-pointer
relocations. Separate fixtures check the empty record's size and enclosing
layout, parenthesized compound literals, decreasing intervals, and pedantic
rejection of range designators and empty records. The positive fixtures ran
with GCC 15 and cppgm on Linux x86-64 at -O0 and -O2, and with cppgm on
AArch64 Linux under QEMU at both levels. PA38's Wasm lane passed, and both
Darwin architectures cross-linked Mach-O at both levels. On Linux x86-64,
GCC 15 and Clang 21 each called and returned records containing an empty
subobject across a cppgm object boundary in both directions. A generated
128-case replay agreed with GCC 15 on overlapping intervals and exactly
once evaluation of surviving ranges at -O0 and -O2. A separate probe
covered complex values, atomic integers, and static negative zero. All 44
pinned musl libc-test configurations still pass. Native macOS execution
remains open.
Range fixture ·
Empty record fixture ·
Compound literal fixture ·
GCC ranges ·
GCC empty structures
The PA38 aggregate fixture repeats complete records, union members
selected by whole union values, and array rows. It covers an inferred
outer bound, nested brace scopes, static and automatic storage, and
volatile-qualified records with ordinary members. It also checks that a
record-producing call runs once even when its surviving elements are
split into separate spans. The fixture matches GCC 15 on Linux x86-64
at -O0 and -O2. It runs under QEMU on AArch64 Linux and in
the WASI lane. Both Darwin architectures cross-link.
PA38 aggregate range fixture
PA38 also checks member and subscript suffixes after ranges, including
two ranged dimensions, static bit-fields, and an inferred array bound.
The behavioral controls check that same-path overlaps preserve values
outside the overlap and evaluate each surviving source once. Positional
cases cover advancing to the next element and a later braced initializer
replacing the final ranged element. The fixture matches GCC 15 on
x86-64 Linux at -O0 and -O2. It also runs under Linux AArch64 QEMU
and WASI and cross-links for both Darwin architectures. A pointwise
oracle checks the results of 96 generated nested overlap cases against
cppgm and GCC 15 at both optimization levels.
PA38 range suffix fixture
PA38 covers overlapping writes to distinct direct members of ranged
records in static and automatic storage. It checks bit-fields, a later
whole-record reset, brace elision, positional continuation within the
last record, and a patch to a record previously supplied by an
expression. The expression case preserves sibling values in accordance
with WG14 DR 413. GCC 15 clears a previously initialized sibling in
this case, including with point designators. A braced replacement
supplies zeros for its omitted fields, as in DR 253. A pointwise oracle
checks 128 generated sets of member and braced record writes in both
storage durations. GCC 15 and cppgm match those results at -O0 and
-O2. The PA38 fixture passes on Linux x86-64, AArch64 QEMU, and WASI.
The Intel and Apple Silicon Mach-O objects both cross-link.
The remaining range cases include composition across a third array dimension, extra ranges interleaved with member paths, and qualified aggregates in automatic storage. PA38 field overlap fixture · WG14 DR 413 · WG14 DR 253
Static overlap tests now cover nonzero record expressions with more
than five million logical subobjects. The fixture checks pointer
relocations, packed and ordinary bit-fields, member replacement by
zero, and a complete record reset. It runs on x86-64 Linux, AArch64
QEMU, and WASI. Both Darwin architectures cross-link. The previously
failing three-million-record program emits its 24 MB array as static
data and a linked program checks every record. A pointwise oracle checks
128 generated static initializers with mixed brace and record-expression
writes at -O0 and -O2.
PA38 static record fixture
Two-dimensional overlaps now preserve each surviving cell, including
when later clauses replace a whole row. The PA38 case exercises scalar
and aggregate cells, string-backed rows, positional continuation,
and once-only evaluation after splitting a range. It matches GCC 15
on Linux x86-64 at -O0 and -O2, runs under AArch64 QEMU and WASI,
and cross-links for both Darwin architectures. A pointwise sweep
oracle checks 10,000 priority and reset cases. Another oracle checks
128 generated pairs of automatic and static matrices at both
optimization levels. GCC 15 runs the constant-valued forms and
diagnoses some generated repeating braced rows containing nonconstant
expressions. cppgm also checks the call counts in those rows. A
static and automatic probe checks preservation of cells inherited
from a record expression, followed by a whole-row reset.
PA38 two-dimensional range fixture
Nested member overlaps preserve siblings across complete brace and
record-valued replacements. PA38 checks continuation within the final
ranged record, fixed array indices within a path, bit-fields, and
pointer relocations. The fixture passes in GNU99, GNU11, and GNU17 on
x86-64 Linux, and in GNU17 on AArch64 QEMU and WASI. Intel and Apple
Silicon Mach-O objects cross-link. The
previously rejected nested brace case now matches GCC 15. A separate
128-case oracle checks static and automatic storage at -O0 and
-O2. GCC runs the equivalent brace forms of the generated tests.
The versioned reset index also matches a pointwise oracle on 10,000
generated cases.
PA38 nested member fixture
The union overlap fixture checks same-member updates, a switch away and
back, nested unions reached through fixed indices, once-only evaluation,
and static bit-fields and pointer relocations. It also checks a patch to
the member supplied by a whole union value. cppgm preserves that member's
untouched sibling, as it does for point designators. GCC 15 clears the
sibling in this case. Clang 22 preserves it in the equivalent point case
and diagnoses the range form with side effects as unimplemented.
The 128 generated cases with braced writes agree with a pointwise oracle
under both cppgm and GCC 15 at -O0 and -O2. A separate oracle checks
10,000 sets of interval priorities and ancestor resets.
The PA38 fixture passes in GNU99, GNU11, and GNU17 on x86-64 Linux and in GNU17 on AArch64 Linux under QEMU at both optimization levels. The WASI lane passes. Intel and Apple Silicon Mach-O objects cross-link at both levels. Native macOS execution remains open. PA38 union overlap fixture · GCC designators · WG14 DR 413
The Linux x86-64 replays compiled the project C files with cppgm in GNU17 mode. GCC 15 selected the zlib configuration and linked the project objects. These results cover the listed workloads.
| Project | Configuration and result |
|---|---|
| zlib 1.3.1 | Static library, example and minigzip built at -O3. The upstream teststatic target passed. zlib |
| Lua 5.4.8 | Linux static library, interpreter and bytecode compiler built at -O2. The version-matched documented basic suite passed. Lua tests |
| SQLite 3.50.4 | Amalgamation and shell built at -O0 and -O2. Both SQL smoke runs passed transaction, aggregation, JSON and integrity checks. The build exposed C's tokenization of macros adjacent to quoted literals, now covered by PA38. SQLite version · PA38 regression |
All 24 C99 headers compiled in isolation with the Linux x86-64 GCC 15
header search at -std=c99 -pedantic-errors. The include probes declared
one ordinary object after each header. Two macro-use probes identified
compiler-dependent behavior. GCC 15 and Clang 21 compiled,
linked with libm, and ran both probes on Linux.
| Required interface | Probe and cppgm result |
|---|---|
complex.h imaginary unit |
Construct 3.0 + 4.0 * I and check the real and imaginary parts and magnitude. Passes with the real C library at -std=c99 -pedantic-errors -O0 and -O2 on x86-64 Linux, Linux AArch64 under QEMU, and WASI under Wasmtime. The typed -E stream accepts glibc's expansion. The header-independent PA38 probe also runs on bare Wasm and cross-links for both Darwin targets. Native Darwin and the SDK headers still require qualification. PA38 value fixture · Extension policy fixture |
tgmath.h function selection |
The probes pass in pedantic C99, C11 and C17 at -O0 and -O2 on Linux x86-64, Linux AArch64 under QEMU, and WASI under Wasmtime. They cover real and complex selection, result types, integer promotion, fixed pointer parameters and exactly-once evaluation. The AArch64 GCC 14 sysroot uses glibc's legacy macro path under the default GNU predefines. The WASI SDK uses the default Clang resource header and its overloadable declarations. |
The header-independent __builtin_tgmath fixtures pass at both optimization
levels on Linux x86-64, Linux AArch64 under QEMU and bare Wasm, pass the
PA38 WASI lane, and cross-link as Mach-O for both macOS targets. The pinned
GCC C17 lane adds six runtime configurations and two rejection cases for
the builtin.
PA38 selection fixture ·
PA38 extended-type fixture ·
GCC C17 manifest
The PA38 classification fixture checks type names, promoted C expressions,
unevaluated VLA bounds, and the evaluation behavior of the single-argument
and legacy variadic forms. The PA38 conversion fixture covers implicit and
explicit conversions to real types, static initializers, and the separate
boolean conversion rule. Both passed on x86-64 Linux, AArch64 under QEMU,
and bare Wasm under Wasmtime at -O0 and -O2, and passed the PA38 WASI
lane. They cross-linked for both Mach-O targets. Native macOS execution
and SDK integration still need qualification. The PA30 test exercises
the shared C++ forms, including dependent queries and constant evaluation.
PA38 classifier ·
PA38 conversions ·
PA30 classifier
The pinned GCC torture case pr104604 also passes at -O0 and -O2.
It exercises conversion from a GNU unsigned complex arithmetic result to
unsigned char. The sample now matches GCC in 111 of 128 configurations,
with 17 reviewed gaps.
GCC torture known gaps
The pinned WASI SDK resource header compiles and runs the same two
runtime probes. A PA38 header fixture now exercises the default
<tgmath.h> search and the type and evaluation behavior of its macros.
The Clang C17 manifest adds the upstream header test, which checks
creal, fabs, and logb result sizes using each compiler's hosted
headers. The same source passes through the WASI SDK resource header
with cppgm and Clang. The standalone wasi-libc header has a distinct
fallback that depends on GNU predefines.
PA38 header fixture ·
Clang C17 manifest
The PA38 declaration and call fixtures cover an unmarked C entry,
marked external and static functions, a block-only prototype, target
typing of a function address, and a selected unavailable ellipsis
fallback in an unevaluated operand. Mixed cppgm and Clang caller/callee
objects pass in both directions at -O0 and -O2 on Linux x86-64,
Linux AArch64 under QEMU, bare Wasm, and WASI. The same pairs cross-link
as Mach-O on both macOS architectures. PA30 tests the shared mangling
rule for C++ declarations with C linkage.
PA38 overloads ·
PA30 C linkage ·
Clang overloadable declarations
C99 library clauses, §§7.3 and 7.22 · GCC complex literal extension · GCC type-generic math builtin
The first replay used musl 1.2.5 and libc-test revision
63e36e934e8f2bedf645303a90b64098e2af6c8f on Linux x86-64. GCC 15 built
the static musl runtime and the upstream libtest.a support library.
Each compiler compiled the selected test source with musl headers in
C99 mode at -O0 and -O2. Both used musl's GCC driver for static linking.
musl 1.2.5 ·
libc-test
GCC and cppgm now pass all 44 configurations, including the selected
locale, multibyte, string, formatted I/O, math conversion, pthread TLS,
local-exec TLS, and setjmp tests. The 22 sources were clocale_mbfuncs,
fnmatch, fscanf, fwscanf, inet_pton, mbc, memstream,
pthread_tsd, qsort, setjmp, snprintf, sscanf, strtod, strtof,
strtold, tgmath, time, tls_init, tls_local_exec, udiv, ungetc,
and wcsstr from src/functional.
| Resolved case | Compiler behavior exercised |
|---|---|
sscanf |
Overflowing constants produce target-format infinities. The reduced PA38 case also checks rounding ties, subnormals, and signed zero. GCC 15 and Clang 21 emit range warnings. PA38 range case |
tgmath |
GNU typeof accepts an unevaluated dereference with type void. The reduced PA38 case checks type and qualifier selection, &*p, pointer evaluation count, and rejection of void sizing and stores. PA38 type selection |
Both reduced positive cases passed at -O0 and -O2 on Linux x86-64,
Linux AArch64 under QEMU, WASI, and bare Wasm. Both macOS targets
cross-linked. Native macOS execution and its SDK headers remain open.
On Linux x86-64, 1,536 generated decimal and hexadecimal literals of
type float, double, and long double matched GCC 15 and Clang 21
byte-for-byte at both optimization levels. The cases include overflow,
subnormal, and underflow values.
The scheduled and manually dispatched upstream GCC job runs this pilot with the shared manifest runner. It pins the musl source archive and the libc-test checkout, records both archive hashes used for linking, and publishes the commands and outcomes. The complete CI command passed locally with GCC 15 and cppgm. CI script · Upstream workflow
A local expansion ran all 70 functional files without upstream build
fragments at both optimization levels. Each compiler passed 134 of 140
configurations, and all 140 execution outputs matched. The native
runtime also fails mntent, strptime, and wordexp at both levels.
Seven sources with upstream build fragments require a separate
dynamic-link or multiple-input qualification.
Header-isolation checks passed for all 24 C99 headers and all 29 C11 and
C17 headers with -pedantic-errors. The C11 and C17 configurations use
GCC 15's resource <stdatomic.h> after the musl include directory, as
the native musl driver does. A statically linked C11/C17 probe exercised
thrd_create, thrd_join, _Thread_local isolation, and relaxed atomic
updates at both optimization levels in both compilers.
C11 standard headers, §7.1.2
The C clause runner compiles, links, and runs focused fixtures in C11 and
C17 at -O0 and -O2. The shared hosted cases cover the assertion,
alignment, and noreturn headers, aligned allocation, timespec_get,
the four <uchar.h> conversion functions, quick_exit handler order,
exclusive fopen mode, and the optional atomic interface. Each run owns
its working directory, so the file-mode test can create a fresh file.
All eight hosted cases passed at both optimization levels in both editions on Linux x86-64 with glibc and Linux AArch64 with glibc under QEMU. The seven applicable cases passed on WASI under Wasmtime. The eight Linux cases passed locally in all four configurations with both GCC and cppgm linked statically against musl 1.2.5. The native macOS jobs run the applicable fixtures. Native macOS results remain to be collected, and the required Unicode conversion rule remains uncovered for the Darwin SDK.
The Linux thread fixture verifies start and join, thread-local isolation,
one-time initialization, thread-specific storage and destruction, and a
condition-variable handoff. cppgm now follows the target predefines
observed in GCC and Clang. Both Linux targets omit the macro. Both Darwin
targets predefine __STDC_NO_THREADS__ as 1, including in earlier C
modes and C++, as Clang does. The selected target controls this value
even when the build compiler runs on a different platform. Header-free
macro dumps agreed with Clang 21 on all six targets in C99, C11, C17,
and C++20, and with GCC 15 on Linux x86-64. Adding -ffreestanding in
each C edition left the result unchanged.
Header-free C23 macro dumps also agree with Clang 22 across the six
targets and with GCC 15 on Linux x86-64.
C11 feature macros and threads, §§6.10.8.3 and 7.26.1 ·
Clang Darwin predefines
The Linux runtime results use a system-libc link of cppgm's object file. The default cppgm executable link uses the course runtime and reports undefined C11 thread symbols for this fixture.
WASI and bare Wasm also omit the predefine to match Clang. With the
selected wasm32-wasip1 SDK, both compilers can include <threads.h>,
but linking a call to thrd_create fails because the library lacks the
symbol. Both compilers link pthread_create, which reports failure at
runtime. The clause runner checks the predefine separately from runtime
thread support. wasi-libc target behavior
GNU attributes at the start of a parenthesized declarator are parsed before
the parser decides whether a nested declarator or parameter clause follows.
The pinned 00210.c now runs in C17 and GNU17 at both -O0 and -O2.
The PA38 case also checks named parameters, leading parameter attributes,
and GCC's scalar and vector type rules for modifiers in a nested
declarator. The tests observe calls and type sizes.
PA38 fixture ·
GCC attribute rules ·
Scaling
The fixture runs on Linux x86-64, AArch64 Linux under QEMU, and WASI.
Both Darwin targets emit and cross-link Mach-O at -O0 and -O2.
Native Darwin execution remains open.
The 15 edition fixtures agree with GCC 15 and Clang 21. They cover C11
static assertions, generic selection, atomic specifiers and qualifiers,
thread-local declarations, alignment specifiers and queries, and
nonreturning declarations. They also check GNU keyword spellings, omitted
assertion messages, and the effect of -Wsystem-headers. The checks run
in the native and Wasm PA38 lanes.
The enumeration fixtures cover §6.7.2.2's int-typed enumerators before
and after the closing brace, the signed and unsigned compatible object
types, and the diagnostic when an implicit increment exceeds int.
Separate probes exercise GNU wide enums and forward tags whose object
and function declarations share the identity resolved at completion. The
pedantic, incomplete-definition, and incomplete-return rejections agree with GCC 15 and
Clang 21. The positive fixtures pass at -O0 and -O2 on Linux x86-64,
Linux AArch64 under QEMU, WASI, and bare Wasm. They cross-link for both
Darwin architectures. The pinned 00170.c and 00209.c cases are now
required in both C17 dialects at both optimization levels. Mixed cppgm and
Clang 21 callers and callees pass in both directions on the running targets
at both optimization levels. The probes pass and return enums and a record
with unsigned, signed, and GNU wide enum members. The mixed objects also
cross-link for both Darwin architectures.
C enum notes ·
PA38 forward tags ·
PA38 enum constants
Additional C99 and C11 tests cover Unicode prefix tokenization, direct
macro expansion, token pasting, and Clang's C11 feature and extension
probes. ISO C99 agrees with both native compilers. GNU99 follows GCC's
retention of Unicode literal extensions. Both native compilers agree on
the pedantic constraint for _Alignof(expression). C17 now reports the
edition for __VA_OPT__ under pedantic diagnostics, following GCC.
A PA38 test covers conditional expressions with integer zero and
(void *)0 in both operand orders, and with qualified void pointers.
PA38 edition check · PA38 conditional pointer check
Tagged struct, union, and enum names can precede the colon of a generic
association. c-testsuite 00219.c now passes at both optimization levels
in C17 and GNU17.
PA38 tag association
A controlling int (*)[] can match both int (*)[1] and int (*)[2].
GCC 15 and Clang 21 diagnose the multiple matches in pedantic C17.
cppgm now diagnoses the case as well. Added controls for duplicate
associations involving incomplete arrays, enums within prototypes, and
unprototyped functions. The latter test distinguishes a compatible
int parameter from a float parameter that default promotion changes.
Long lists of distinct pointers to complete arrays and fully prototyped
functions now scale near-linearly.
PA38 multiple matches ·
PA38 structural compatibility ·
C frontend scaling
The GNU conditional expression with one void operand now passes all
four configurations of c-testsuite 00213.c, including its labels
inside loops and statement expressions. The extension gives the
expression a void result and evaluates the selected arm for effects.
Pedantic diagnostics follow GCC and Clang.
PA38 conditional control
The rules apply in C11 and C17. C99 edition tests separately exercise the diagnostic for the extension. The listed fixtures run in PA38's native and Wasm lanes.
| C11 6.5.1.1 | Evidence | Pending qualification |
|---|---|---|
| p2 At most one default | Duplicate default | |
| p2 Association names a complete object type | Incomplete array, incomplete record, function | |
| p2 Association type has no variable modification | Existing declaration restrictions reject VLA type names. | Exercise the restriction specifically for pointers to VLAs when the type names are supported. |
| p2 Association types are pairwise incompatible | Typedef aliases, array bounds, enums in prototypes, unprototyped functions | Complete the underlying compatibility audit in 6.2.7. |
| p2 Control has at most one match | Two pointer-to-array matches with an incomplete array under the controlling pointer. | |
| p2 Control has a match in the absence of a default | No match, qualification of the control | Audit qualification and conversion outcomes against applicable WG14 decisions. |
| p3 Control and unselected expressions are unevaluated | Effect counts and unreferenced call, diagnostic for an invalid unselected expression | |
| p4 Result retains type and expression category | Record, lvalue, array, function designator and void results, bit-field address constraint |
C99 requires variable-length arrays. Initial qualification retained
__STDC_NO_VLA__ in C11 and C17. The seven portable probes
for mixed dimensions, typedefs, pointers, parameters and sizeof type
names pass. GCC 15 and Clang 21 accept the corresponding PA38 cases in
pedantic C17. The type-name checks now also cover casts, compound literals,
and GNU typeof. Further compatibility rules and hosted target ABI
qualification remain open.
A replay of twelve PA38 C17 runtime cases passed at -O0 and -O2 on
Linux x86-64, AArch64 under QEMU, and WASI under Wasmtime. It covers scope
exits, variably modified type-names, bound capture, parameters, and a C-only
link across translation units. Both Darwin architectures also compiled and
linked all twelve cases at both levels. Native Darwin execution remains
pending. A separate adjusted-parameter probe links cppgm and Clang 21
objects in both caller and callee directions for C99, C11 and C17 at both
optimization levels. It runs on Linux x86-64, AArch64 under QEMU, and bare
Wasm under Wasmtime, and cross-links for both Darwin architectures.
Preprocessing defaults __STDC_HOSTED__ to zero on bare Wasm and one
on WASI and the native targets. The
execution environment checks cover
explicit mode selection. This initial replay used the original predefine.
| C11 clause | Requirement | Current evidence |
|---|---|---|
| 6.7.6.2p1, p3 | An array has complete elements and a written bound uses the assignment-expression grammar. | Incomplete external array, typedef, adjusted VLA parameter, and GCC c99-arraydecl-2. PA38 runtime case covers a parenthesized comma and arrays of pointers to incomplete records. |
| 6.2.4p7, 6.7.6.2p5 | A VLA retains its size for its lifetime and releases automatic storage when its scope ends. | Single-dimension VLA across a call, mixed and fully runtime dimensions, and a C-only link of c-testsuite 00207.c. |
| 6.7.6.2p2 | Variably modified identifiers obey block and prototype scope and linkage constraints, independently of whether they allocate storage. | Automatic and static pointers and extern rejection. |
| 6.7.6.2p4–p6, 6.7.6.3p7 | Prototype-scope bounds are treated as [*]. Outermost parameter arrays adjust to pointers. |
Outermost star, nested prototype bounds, and conflicting fixed inner bounds. |
| 6.2.1p8, 6.7.6.2p4 | Type names in a prototype can use [*]. |
PA38 prototype type names covers alignment, size and nested callback prototypes. Negative cases cover a definition's parameter list, its body, file scope, and a variably modified generic association inside a prototype. |
| 6.7.6.3p7, p15 | The adjusted parameter object keeps bracket qualifiers. Function type compatibility uses the adjusted type without top-level qualifiers. | C99 qualifiers in identifier-list definitions, C99 restrict, and C11 atomic bracket qualifier. The atomic conversion rejection agrees with GCC 15. Clang 21 drops the atomic qualifier in this form. |
| 6.7.8p3 | A typedef with a varying bound captures its extent each time execution reaches the declaration. | Loop, alias composition, and extent reuse. |
| 6.7.2.4p3, 6.7.6.2p5 | An atomic pointer type can derive from a VLA. A single type specifier supplies the captured bound for its declarators. | Atomic pointer type specifier covers shared and typedef bounds and definition parameters. Direct atomic VLA checks the array constraint. |
| 6.7.6p3, 6.7.6.2p2 | A function type derives from its result, including a variably modified result. | Local function pointer retains the runtime result bound. The linkage case rejects a function with that type, and the goto case checks entry into the pointer's scope. |
| 6.5.3.4p2, 6.7.6.2p5 | sizeof uses a VLA's runtime size. A bound inside sizeof can be elided if its value cannot change the result. |
Runtime array type names and the elidable pointer-type bound. |
| 6.5.3.4p2 | A sizeof operand of VLA type is evaluated. Other expression operands are unevaluated, including their function calls. |
Side effects and C-only link. |
| 6.5.2.5p1, 6.5.4 | Allow casts and pointer compound literals with variably modified type names. Diagnose a compound literal of VLA type. | Side-effecting cast and pointer compound literal and VLA compound literal rejection. |
GNU typeof |
Evaluate the operand of variably modified type. In a shared specifier, capture type-name bounds once and repeat expression effects per declarator. | Type and expression operands, nested type names, and parameter adjustment. |
| 6.8.6.1p1, 6.8.4.2p2 | goto and switch labels cannot bypass entry into the scope of a variably modified identifier. |
Jump into a VLA scope, typedef, and pointer. |
| 6.9.1p10 | Evaluate the size expressions of variably modified parameters on function entry. | Inner strides and side effects in the adjusted outer bracket, with and without static. |
| 6.9.1p6 | An identifier-list definition declares every parameter in the list. | Pedantic checks for all declarations omitted and one omitted. PA38 also rejects [*] in an identifier-list definition. |
The two new array runtime cases pass at -O0 and -O2 on Linux x86-64,
AArch64 under QEMU, and WASI under Wasmtime. Both Darwin architectures
cross-link the cases as Mach-O dylibs at both levels. The identifier-list
fixture also passes with Clang 21 at both levels and GCC 15 at -O0.
GCC 15 reports an internal compiler error during its -O2 build.
The same compiler passes zlib 1.3.1 teststatic and the Lua 5.4.8 basic
suite on Linux x86-64. The SQLite amalgamation emits byte-identical
-O2 objects before and after the changes.
Declarator scaling and frozen compile controls
The current VLA compatibility probes pass after fixed and [*]
prototypes, for a conditional pointer with one fixed and one runtime
bound, and for a conditional pointer with two compatible captured bounds.
GCC 15 and Clang 21 agree on those cases. For type names inside prototype
expressions, DR 341 records an earlier discussion favoring a restriction
and ends with wording that permits prototype-scope type names. cppgm
follows the published wording. GCC 15 accepts these type names with an
advisory warning. Clang 21 rejects them.
The GCC C99 manifest includes vla-5 for prototype compatibility,
vla-8 for jumping past a variably modified function pointer, and
vla-13 at -O0 and -O2 for bound evaluation in casts and pointer
compound literals. GCC C99 manifest ·
WG14 DR 341
The VLA target replay covers eleven positive PA38 inputs in C99 and
seventeen in each of C11 and C17, all with -pedantic-errors at -O0
and -O2. Linux x86-64, AArch64 under QEMU, bare Wasm, and WASI each
pass all 90 runtime configurations. Intel and Arm Darwin each compile
and cross-link all 90 as Mach-O dylibs. Native Darwin execution remains
pending. Recompiling the 576 translation units after moving the function
variability flag to type insertion yielded identical objects.
An additional C11 mixed-compiler call uses _Atomic(int (*)[++n]) in
the definition and a fixed array pointer parameter in the caller. The
caller and callee compile with cppgm and Clang 21 in both directions at
-O0 and -O2. It runs on both Linux targets and both Wasm profiles and
cross-links for both Darwin architectures.
The new PA38 type-query case covers block- and file-scope type names with
runtime bounds, including bounds inside a nested query. GCC 15 and Clang
21 agree on the positive C11 fixture and the diagnostic for [*] outside
prototype scope. The positive and negative cases pass at -O0 and
-O2 in C11 and C17 across all six targets, with native or emulated
execution on Linux and both Wasm profiles. On both Darwin targets the
positive case cross-links with the cppgm and LLVM linkers.
The existing Intel macOS and Apple Silicon workflows run an eight-program
PA38 driver slice at -O0 and -O2. It checks direct compilation and
linking, object linkage with cppgm and the host driver, and the LowIR
backend path. Native workflow results and the full Darwin qualification
remain pending. PA38 type queries
The local Mach-O execution harnesses also pass 144 runs across Intel
and Arm Darwin. The replay uses 17 PA38 fixtures in C11 and C17, the
GNU typeof fixture in each corresponding GNU dialect, and both
-O0 and -O2. It covers prototype-scope stars, atomic and function
pointer types, multidimensional bounds, repeated scope exits, and a
two-translation-unit C call. The harnesses supply freestanding startup.
Hosted SDK qualification still requires the native Darwin workflows.
PA38 checks restricted pointers to objects, type and object declaration
compatibility, GNU qualifier spellings, variably modified array parameters,
identifier-list definitions, and the qualifier of a conditional pointer
result. It diagnoses restrict on a scalar or function pointer and checks
qualifier discard and nested pointer conversion. The pinned GCC C99 lane
includes c99-arraydecl-3.
The earlier-edition array-typedef diagnostic follows Clang 21 and WG14
N2607. GCC 15 also accepts that form under -pedantic-errors. The GNU17
runtime case verifies element qualification in the extension. The combined
atomic and restrict parameter test follows GCC 15 and C11's qualified
atomic type rule. Clang 21 rejects the combination.
A mixed-compiler probe pairs a fixed array pointer parameter in the caller
with a restricted variably modified parameter in the definition. Both
cppgm/Clang 21 caller and callee directions ran successfully in C99, C11,
and C17 at -O0 and -O2 on Linux x86-64, AArch64 under QEMU, bare Wasm,
and WASI. Both Darwin architectures cross-linked those configurations
as Mach-O dylibs. The Linux hosted replays also passed zlib 1.3.1
teststatic and the Lua 5.4.8 basic suite.
PA38 restrict parameter case · GCC C99 manifest · WG14 N2607 · WG14 DR 423 · Compile-work measurements
Each designation keeps its written path in the syntax tree. Analysis uses member lookup and array indices to build a sparse typed initializer plan. Positional entries advance from the selected subobject. Replacing a whole subobject discards its earlier plan, and replacing a member preserves the rest of its earlier aggregate value. Overridden expressions still receive semantic checks. Only the surviving expressions demand callable bodies. Gaps in an array emit zero ranges or observable scalar initialization when the element type requires it.
| Rule | Evidence |
|---|---|
| 6.7.9p4, p19 | Overwritten undeclared name and overwritten nonconstant static initializer diagnose the written expressions. GCC 15 agrees on both. Clang 21 accepts the nonconstant overwritten expression. |
| 6.7.2.1p13, 6.7.9p7 | Anonymous member lookup resolves a member injected through both an anonymous structure and an anonymous union. |
| 6.7.9p14, p19, p21 | Overlays and replacement preserve other characters and members. A new brace pair supplies the entire subobject, including zeros for omitted members. Clang 21 agrees on these cases. GCC 15 zeroes the sibling when a member replaces part of an earlier record expression. WG14 issue 0413 calls for preserving the sibling. |
| 6.7.9p17, p18, p20 | Nested continuation reaches the remainder of an array row, record, or union member and continues in the enclosing object. GCC 15 and Clang 21 pass. |
| 6.7.9p21, p22 | Sparse incomplete arrays infer the highest index even after a later entry initializes a lower index. Static and automatic gaps are zeroed, and a volatile array retains typed stores. GCC 15 and Clang 21 pass. |
| 6.6p7, p9 | Static address constants cover nonzero integer constants cast to pointers and a constant conditional. Fixed addresses with an offset also go into static data. The integer-to-pointer mapping uses the selected target. |
| GNU static initializers | Flexible array and compound-literal overlay agree with the GCC 15 results. |
C11 draft · WG14 issue 0413 · WG14 issue 0253
The four portable positive fixtures, including the original designated
initialization case, ran at -O0 and -O2 on Linux x86-64 and under
AArch64 QEMU. Both Darwin targets emitted Mach-O objects. PA38 native
and Wasm suites include the portable and GNU cases. The GNU range cases
track overlap and single evaluation in the dedicated inventory.
GNU range designators
Initializer scaling measurements
PA38 checks that a flexible array is the final member of a structure with another named member. Names injected by an anonymous aggregate count toward the requirement. The tests also reject a function-typed member, and check strict-mode diagnostics for embedding a flexible structure or a union containing one as a structure member or array element. Both positional and designated nonempty initialization of a flexible member require a diagnostic in strict mode. The implementation updates the record facts as it declares each member, including transitively through union members. PA38 positive fixture · C11 draft, §§6.7.2.1 and 6.7.9
The ten clause configurations per edition passed in C99, C11, and C17
on Linux x86-64, AArch64 Linux under QEMU, WASI, and freestanding Wasm.
The positive fixture also ran with GCC 15 and Clang 21 on x86-64 Linux,
and its freestanding form cross-linked as Mach-O for both Darwin targets
at -O0 and -O2.
Compile-work measurements
The GNU static initializer path now supports nested flexible-array strings
through records and unions. It retains the declared type and carries the
initialized storage extent in the initializer plan. The GNU case
pr28865.c passes at both optimization levels. PA38 checks both
positional and designated initializers, file-scope compound literal
storage, and the offset of a later initialized member. GCC 15 emits the
later member at the wrong offset in that last case. The negative cases
cover strict ISO modes, nested element lists and writes, automatic
storage, array elements, and overlap with a following member.
PA38 GNU strings ·
PA38 following member ·
PA38 compound literal
The three GNU fixtures passed on all six target profiles in GNU99, GNU11,
and GNU17 at -O0 and -O2. Linux AArch64 ran under QEMU, both Darwin
profiles used SDK-free Mach-O replay, and both Wasm profiles used Wasmtime.
All seven negative fixtures produced the expected diagnostic class on
each target. A separate Linux x86-64 probe passed with GCC 15 and cppgm
for a wide string with an embedded null. The pinned GCC torture run now
matches 113 of 128 configurations, with 15 reviewed gaps.
Compile-work measurements
The separate by-value ABI probe passed with cppgm and GCC 15 objects
in both caller/callee directions on Linux x86-64. For a structure with
an unsigned prefix and a flexible int tail, GCC and cppgm pass and
return the prefix in registers. Clang 21 passes the structure on the
stack and returns through a hidden pointer. Direct mixed GCC and Clang
executables failed in both directions at -O0 and -O2, as did mixed
cppgm and Clang executables. On Linux AArch64, mixed cppgm and Clang
executables passed in both directions. On Darwin Arm64, the emitted
Mach-O objects agree on the register convention for this probe.
Intel Darwin now uses the retained flexible-record fact to select Clang's
memory convention. The PA38 mixed-object test passes a flexible record to
the host and calls back with a union containing the record. Cross-linked
x86-64 Mach-O code ran at -O0 and -O2 in a freestanding image mapped
on Linux. The same execution route passed an over-aligned flexible record
return and variadic arguments in both compiler directions. The Intel macOS
job also selects the PA38 fixture for native execution. The same fixture
passed using the GCC provider on Linux x86-64 and the Clang provider on
Linux AArch64 under QEMU in all six edition and optimization combinations.
PA38 mixed-object test ·
Compile-work measurements ·
GCC x86 classification ·
Clang x86 classification
Linux AAPCS64 includes the container of an unnamed bit-field in the
aggregate alignment. cppgm, GCC 14 and Clang 22 report size 8 and
alignment 4 for struct { unsigned char a:3; unsigned :0; unsigned char b:5; }
on Linux AArch64, including under GNU packed and #pragma pack(1).
Darwin Arm64 gives the structure size 5 and alignment 1, as Clang does.
AAPCS64 bit-field rules
A nonzero unnamed integer field takes part in Arm aggregate
classification. union { float f; unsigned :1; } crosses the call
boundary in integer registers. The PA38 test compares sizes and
alignments with a separately compiled provider, calls across that
boundary and calls back with the same union. The test also checks a
floating structure with a zero-width field. C11 and C17 pass at -O0
and -O2 with GCC 14 and Clang 22 on Linux AArch64 under QEMU. The
same Clang checks pass for independently linked Arm64 Mach-O under the
SDK-free replay. PA38 also runs this fixture in the native Arm workflows.
PA39 exercises the layout and union calling convention in C++ on both
Arm targets. PA38 mixed-object test ·
Compile-work measurements
For union { float f; unsigned :0; }, Clang 22 and cppgm use
floating-point registers. GCC 14 on AArch64 Linux uses integer registers.
Direct mixed GCC and Clang executables fail in both directions at -O0
and -O2. Both compilers use floating-point registers for the equivalent
structure. The Wasm reference uses its single-field convention for the
union with either width.
GCC record and union classification
The parser retains GNU aligned on the existing declarator, including
after the width. An attributed unnamed field uses an abstract declarator.
Analysis resolves the attribute once and records the member's alignment
and packing for layout. The PA38 tests include the standard _Alignas
diagnostic and reject GNU aligned between a field name and its colon.
The PA30 template fixture supplies the alignment at instantiation.
For a named field with aligned(8) between two single-byte members,
the record has size 16 and alignment 8, and the following byte starts
at offset 9. An unnamed zero-width field with the same request moves the
following byte to offset 8. Its record has alignment 8 on Linux AArch64
and alignment 1 on the other profiles. For a three-bit field whose
explicit alignment is greater than #pragma pack, GCC caps the
position alignment and Clang discards the explicit request for the
position. cppgm follows GCC on Linux and Clang on Darwin and Wasm.
Packed union alternatives use a separate bounded bit-field run when their payload is narrower than the underlying type. The one-byte and three-byte static objects carry symbol sizes 1 and 3. The PA30 fixture places the three-byte union immediately before a protected page and checks a read and write through the field. The earlier four-byte access faults in that probe. This checks the byte bound independently of the compiler's choice of narrower operations.
The PA38 runtime fixture passed all 36 combinations of profile,
GNU99/GNU11/GNU17 and -O0/-O2. GCC 15 on Linux x86-64, GCC 14 on
Linux AArch64 and Clang 22 on the remaining profiles passed the same
matrix. Linux AArch64 ran under QEMU, both Wasm profiles under Wasmtime,
and both Darwin profiles through SDK-free Mach-O replay.
PA38 runtime fixture ·
PA30 guard-page fixture ·
Compile-work measurements
Comma-separated declarations may combine ordinary fields and bit-fields. The PA38 runtime case covers both orders, a zero-width separator and a list that defines the enum used by its members. GCC 15, Clang 22 and cppgm passed it in strict C99, C11 and C17. The negative cases exercise function members and pointer bit-fields in mixed lists. PA11 covers an ordinary member function alongside bit-fields, and PA14 covers instantiation of its out-of-class definition with a dependent field width. A separate PA38 case checks that width expressions still see an enclosing typedef or enumerator with the same spelling as a member. PA38 member name space · PA38 mixed declarators · PA11 shared declarations · PA14 template declarations
Both C fixtures passed at -O0 and -O2 in C99, C11 and C17 with
cppgm and the target controls. The runs used GCC 15 on Linux x86-64, GCC
14 on Linux AArch64 under QEMU, and Clang 22 on the two Mach-O and two
Wasm profiles. Mach-O execution used the SDK-free replay. Bare Wasm and
WASI ran in Wasmtime. The two negative fixtures produced their expected
diagnostics on each target. The pinned c-testsuite run passed all 876
selected configurations. The GCC torture sample matched 111 of 128
configurations, with the same 17 reviewed gaps.
Compile-work measurements
GCC 15 and Clang 21 on Linux x86-64 served as controls for the reduced C17 cases. A declaration's lexical binding carries the type visible in its scope. Linked objects first declared in a block share an entity indexed by interned name. The compatibility type keeps the constraints from all declarations of that entity. Analysis visits only incomplete tentative definitions at the end of the translation unit.
| Rule | Evidence or remaining gap |
|---|---|
| 6.2.7p3, p4 and 6.7.6.3p15 | Composite types combine array bounds through pointers, function parameters, and return types. The fixture checks implicit compatible-pointer conversion, bounds in nested scopes, and reads from two blocks that declare an object before its file-scope declaration. |
| 6.2.7p2, p4 | Conflicting linked bounds diagnose a conflict after the enclosing block ends. Shadowed array bound diagnoses a sizeof whose visible declaration has no bound. The pinned GCC cases include the same compatibility check for functions. |
| 6.5.15p5, p6 | Conditional pointers retain a complete array bound in both operand orders, combine qualifiers, and evaluate the selected operand. A prototype regression checks arity when one operand lacks a prototype. Integer promotions cover equal signed-character, boolean, and bit-field operands. The pinned GCC case checks arithmetic, aggregate, void, and pointer results in both orders. |
| 6.9.2p2, p3, p5 | Incomplete tentative definitions emit one zeroed element for an external array with no bound by the end of its translation unit. A later bound or tag definition controls storage when supplied. Internal tentative arrays are checked at their declaration under the pedantic policy. An uncompleted record is diagnosed at the end of its translation unit. The pinned Clang case exercises a tentative array. |
| 6.7.4p3, p7 | PA38 diagnoses an inline-only definition that calls an internal function, references an internal object through sizeof, defines a modifiable static array, or defines a modifiable thread-local object. Late linkage covers a later external declaration, an earlier inline declaration followed by its body, and an immutable static local. The missing definition fixture uses the pedantic policy. The pinned GCC cases cover declaration order, internal linkage, diagnostics, and missing bodies. |
The two positive PA38 cases ran at -O0 and -O2 on Linux x86-64 and
under AArch64 QEMU. Mach-O object emission passed for both Darwin
architectures at both levels. PA38 exercises the cases in its native
and Wasm lanes. A separate reader with two block-scope declarations
linked and ran with an object definition in a second translation unit.
cppgm and GCC each compiled both sides in turn at -O0 and -O2.
The same compiler built the C sources for zlib 1.3.1, Lua 5.4.8, and
SQLite 3.50.4 in GNU17 at -O2. GCC 15 linked the emitted objects.
Both zlib static test modes passed, Lua's basic suite reported
final OK, and the SQLite shell returned 2|16 for the aggregate
query over rows 4, 7, and 9 filtered above 4. zlib's configuration
also used GCC 15. The C branch's direct native link path still
rejects static archives, as does the parent compiler.
C11 draft · GCC C99 manifest · GCC C17 manifest · Clang C17 manifest · Declaration scaling measurements
Block function linkage checks inherited internal linkage, a hidden file-scope prototype, a nested composite return type, and calls to functions first declared in a block. A block prototype can supply the ABI boundary for a call to an external symbol whose first declaration left the parameters unspecified. The fixture includes a second translation unit that provides that function's definition. The typed call uses that boundary through direct object emission and the LowIR round trip.
The visible prototype case
diagnoses an extra argument. The file-scope bound case
checks that the first file-scope declaration starts with its written type.
Two cases check agreement between a block prototype and an empty identifier
list in a definition, definition first
and prototype first.
The GCC C17 manifest includes redecl-11.c for
conflicting array bounds in function parameters after a block ends. Clang
accepts that case. The compatibility requirement comes from C11 6.2.7p2,
which leaves the behavior of incompatible declarations undefined.
The reduced C17 cases use GCC 15 and Clang 21 as controls. WG14 DR 261 distinguishes a constant value from eligibility as a constant expression. Issue 0489 addresses the constraints that still apply to unevaluated operands.
| Rule or context | Evidence or remaining gap |
|---|---|
| 6.6p3, p6 and p11 | PA38 rejects evaluated comma, cast floating arithmetic, and an object operand in a skipped branch. The positive fixture checks a skipped comma, an immediate floating literal cast, and the selected generic association. |
| 6.7.6.2p4 and p5 | A file-scope array with a foldable comma bound is diagnosed as variably modified. The positive fixture also uses a block array whose dimension is the value of a const object. |
| Required integer contexts | PA38 also rejects a nonconstant case label, enumerator, bit-field width, alignment, and array designator. |
| 6.3.2.3p3 | PA38 checks computed null constants in implicit initialization, comparisons, calls, returns, and a conditional expression. The GCC C99 manifest adds positive cases for unevaluated operands, casts to void *, and preservation of an ordinary pointer type when the converted value lacks the required operand forms. |
| 6.6p7–p10 and 6.7.9p4 | PA38 diagnoses a comma in an arithmetic initializer, a comma in a pointer offset, and an increment in a variably modified cast. GCC's C99 c99-const-expr-11.c tests several such bounds. Clang accepts the three reduced examples as additional forms. |
The positive fixture passes on Linux x86-64 and AArch64 QEMU at -O0 and
-O2. Both Darwin architectures emit Mach-O objects at both levels. PA38
runs the fixture through native and Wasm. The GCC C99 manifest passes all
16 selected cases. The pinned Clang C11 signed-character representation case
continues to accept __builtin_bit_cast in its assertions. Hosted GNU17
replays passed the zlib example and compression round trip, the Lua basic
suite, and the frozen SQLite shell workload.
Constant-expression scaling
GCC 15, Clang 21, and cppgm diagnose these cases under C17 -fsyntax-only.
The checks also apply when compiling directly to native or Wasm objects.
| Static initializer | Regression |
|---|---|
| A call in a file-scope aggregate | Ordinary braced initialization |
| A call in an object with thread storage duration | Thread storage |
| A call in a block-scope static initializer | Block-scope static |
A read of an ordinary external int |
External object's value |
| The address of an automatic object | Automatic storage address |
| A call in a file-scope compound literal | Static compound literal |
The two-file runtime case
initializes scalars, pointers, and records using arithmetic, a function
address, an incomplete array declared in the first unit, an address within
a file-scope compound literal, and a variably modified cast. It ran on Linux
x86-64 and AArch64 QEMU at -O0 and -O2, and in PA38's Wasm lane. Both
Darwin architectures emitted Mach-O objects. The x86-64 object has neither
a startup initializer nor a C++ guard. The compound literal fixture
now emits its scalar copy as static data as well.
The pinned GCC C17 manifest passes all ten cases. cppgm now accepts C
alignment specifiers interleaved with storage, type, and qualifier
specifiers, and checks the contexts that forbid them. The PA38 layout
case verifies the strongest nonzero request, the address of static and
automatic objects, and the offsets of named and anonymous members. The
type operand uses the element alignment of a VLA without running its
bound. A standalone tag with _Alignas(0) remains valid. GCC diagnoses
an invalid alignment value there, while Clang discards the unused specifier.
The C11 alignment case runs on Linux x86-64, AArch64 under QEMU, and
Wasm. The freestanding copy used for cross-checking emitted objects
that LLVM inspected and linked for both Darwin architectures at -O0
and -O2. The prior Intel Mach-O failure came from a segment base
that allowed file padding to exceed the virtual segment extent. The
existing PA26 host check exercises a 128-byte-aligned data symbol.
The second repaired GCC test puts a static assertion in a for
initializer. Both native controls accept it. PA38 checks a true
assertion and the diagnostic for a false one.
PA38 checks alignment agreement with explicit definitions in the same
translation unit. The pedantic checks cover mismatched and missing requests
in either declaration order, block-scope extern, and a conflict before
an initialized definition. Runtime cases cover equal strongest requests,
neutral zero and natural alignment, a type completed after its declaration,
tentative storage, and alignment supplied by GNU attributes and typedefs.
GCC 15 accepts the explicit-definition conflicts Clang 21 diagnoses. WG14
issue 1044 leaves several details open. cppgm checks the strongest standard
request when it exceeds natural alignment and permits equivalent alignment
from a GNU-only definition. Declarations without an explicit definition
in the current translation unit retain the prior storage-alignment rules.
Target-specific extended alignment limits still need qualification.
GCC C17 manifest · PA38 layout case · PA38 agreement case · PA38 neutral and GNU cases · PA38 assertion case · PA26 Mach-O host check · WG14 C23 issue log
The pre-C23 for initializer check uses the kind, scope, and storage
of each typed binding introduced there. With -pedantic-errors, PA38
rejects static, external, and thread-local objects, typedefs, functions,
tags, and enumerators. The accepted cases exercise automatic and register
objects, shadowing, an existing tag, and an anonymous record. The GNU17
extension control exercises a static loop object. The pinned C99 manifest
now checks both GCC rejection cases alongside its existing execution test.
Where GCC and Clang differ on tags and enumerators, DR 277 is the oracle.
Tags introduced by a nested function prototype are scoped to that declarator. The accepted loop fixture includes a function pointer parameter with its own tag. Separate fixtures verify that a parameter tag is distinct from a subsequent file-scope tag, that a tag introduced in a function definition can be used in its body, and that two prototypes which independently introduce a tag have conflicting types.
Both positive programs run on Linux x86-64, AArch64 under QEMU, and Wasm.
On Linux, LLVM also inspected and linked both programs' objects for Intel
and Apple Silicon at -O0 and -O2.
C11 draft, N1570 §6.2.1 and §6.8.5 · WG14 DR 277 · GCC C99 manifest · PA38 loop scope · PA38 prototype tag scope
PA38 diagnoses standard _Alignof(int[]) and an expression-form query on
a bit-field designator. It also rejects a request that weakens the known
element alignment of an incomplete array object or VLA. GCC diagnoses
both weakened requests, while Clang accepts the incomplete array case.
The runtime fixture reads an object's requested alignment from its own initializer, queries an aligned typedef and a packed or capped member, queries an incomplete array object in the GNU form, and leaves a VLA's bound unevaluated. It also verifies acceptance of alignment and size queries on the value of an assignment to a bit-field. Both native controls accept this value, with different sizes for the reduced example.
The runtime fixture passes on Linux x86-64 and AArch64 under QEMU at
-O0 and -O2, and in the PA38 Wasm lane. Linux LLVM tools also inspect
and link its objects for both Darwin architectures at those levels. The
expanded GCC C11 manifest passes all three cases. The batch also passes
the zlib 1.3.1 example and compression round trip and the Lua 5.4.8 basic
suite on Linux x86-64.
cppgm retains the GNU type-form incomplete-array query accepted by Clang and preserves its previous handling of dereference expressions. GCC and Clang disagree on whether dereferencing the address of an over-aligned object propagates its declaration alignment. GNU alignment queries on functions and their interaction with code alignment remain open.
C11 draft, N1570 §6.5.3.4 · GCC alignment queries · PA38 runtime fixture · GCC C11 manifest
PA38 checks the C execution mode with a shared source header. It exercises
flag precedence, invalid hosted entry signatures, the adjusted array
parameter and implicit zero of hosted main, ordinary calls to a
separately compiled strlen in freestanding mode, and an explicit
builtin. The no_builtin=yes LowIR
fact also prevents the reader from assigning a legacy startup role.
PA25 covers a supplied native entry with -nostdlib using the ordinary
compile-and-link test lane.
The freestanding source and serialized LowIR run with a custom startup
or explicit export at -O0 and -O2 on x86-64 Linux, AArch64 Linux
under QEMU, bare Wasm, and WASI. The same inputs cross-link on Intel and
Arm Darwin. Hosted tests at both levels run on the Linux targets and
with the pinned WASI startup. Bare Wasm diagnoses an explicit hosted
request. On Linux x86-64 an explicit builtin can use a compiler helper
with -nostartfiles; -nostdlib reports the helper unresolved when
the user supplies none. Native Linux also runs the three-parameter
hosted entry with -nodefaultlibs. Both execution modes can include
<stddef.h> with -nostdlib on Linux x86-64 and with the pinned WASI
SDK. The hosted WASI case also links through cppgm with that SDK.
The hosted case is in the two native macOS workflows. Intel runs the
custom entry in its strict report, and the Apple Silicon job runs the
PA25 case explicitly. Native execution results and library coverage
remain pending.
PA38 environment cases ·
PA25 custom entry
An x86-64 glibc C11 probe compiled with cppgm and linked with GCC 15
passes thread creation and joining, thread-local storage, one-time
initialization, mutexes, condition variables, and thread-specific data
at -O0 and -O2.
C input now selects the host's C include paths, and GNU __auto_type
supports GCC's C <stdatomic.h> macros. The pinned GCC C17 suite passes
both deduction cases, with the positive executed at -O0 and -O2.
The PA38 hosted atomic case passes at both levels with GCC's native
x86-64 Linux headers and with the pinned WASI SDK. It exercises scalar
and aggregate operations, compare-exchange success and failure, and
single evaluation of a macro argument.
The deduction batch passed the strict course report (11,650), PA35 through PA5 (341), the debug-info checks, and the PA38 native and Wasm lanes. The student export regenerated 26,138 verified reference files and repeated PA38 using the bundled self-built tools. The expanded pinned manifests and differential corpora kept their existing reviewed gaps. PA38 hosted atomic case · GCC C17 manifest
The target environment supplies compiler integer predefines independently
of the host data model. Darwin uses long long for the exact 64-bit
type and long for intmax_t. Bare Wasm and WASI use long long for
both 64-bit roles and 32-bit long for the pointer-sized signed type.
The PA38 case checks the C integer headers, including the types of
literal macros and the limits they expose. PA37 checks the Emscripten
resource headers and PA39 checks the Arm Linux type predefines.
The integer and atomic cases pass with the configured cppgm predefines
at -O0 and -O2 on bare Wasm and AArch64 Linux, with Clang 21 and
23 resource headers. Intel and Arm Darwin compile and cross-link Mach-O
with those headers. The pinned WASI SDK and the GCC 14 and glibc
2.43 AArch64 Linux sysroot also run both cases at both levels. The same
Arm sysroot runs the thread and TLS probe under QEMU. The pinned Clang
23 header exercises the explicit __SIG_ATOMIC_MIN__ predefine, and
GCC's C atomic header exercises the unsigned character type predefines.
An additional 16-byte aggregate control exercises load, exchange, and
both compare-exchange outcomes with the GNU libatomic ABI. It passes
at -O0 and -O2 on native x86-64 Linux and on AArch64 Linux under QEMU.
A multi-threaded C11 control with relaxed compare-exchange increments
and release/acquire publication also passes on both Linux targets and
at both levels.
Native Darwin execution, wider atomics on other runtimes, and full
optional-feature qualification remain open.
PA38 integer header case ·
PA37 Emscripten layout ·
PA39 Linux data model
The batch passed the strict course report (11,650), PA37 and PA39, PA38 native and Wasm, PA35 through PA5, and the native inception comparison. The placement audit scanned 11,242 cases with zero placement findings. The student export regenerated 26,141 verified reference files, and the bundled compiler passed the PA38 lanes and the Emscripten integer-header case. Compile-time measurements
The resolved instruction profile supplies the GCC and Clang header
predefines. The scalar lock-free macros are usable in #if, as required
by DR 458. The C11 and C17 Wasm profile with -mno-atomics defines
__STDC_NO_ATOMICS__ and reports false for the inline and runtime queries.
The C99 profile omits that C11 feature macro. Explicit command-line
-D and -U still control the macro table.
The builtin with an always lock-free result takes a constant size.
Other queries accept runtime arguments and evaluate them once on the
runtime path. Constant aligned inline cases still fold. On Linux,
runtime queries match the linked libatomic for sizes 0, 1, 2, 3, 4, 8,
16, and 17 at multiple alignments. Both the pointer and size-only forms
pass at -O0 and -O2 on x86-64 and under AArch64 QEMU. Enabled and
disabled Wasm queries pass under Wasmtime. Linux and bare Wasm pass
the scalar header cases with Clang 21 and 23 headers, and both Darwin
targets cross-link those cases and the dynamic queries. Native Darwin
runtime validation remains open.
At this stage, the GCC-based C atomic header used the generic runtime ABI successfully for a 16-byte aggregate on Linux. The corresponding Clang header probe reached a by-value builtin with an inline width restriction. For an aggregate containing only 3, 12, 16, or 17 bytes, Clang 21 and cppgm use atomic size/alignment pairs of 4/4, 16/16, 16/16, and 17/1 on x86-64 Linux. GCC 15 uses 3/1, 12/1, 16/16, and 17/1. Test the amount of storage read through the atomic object separately from the bytes read from the ordinary desired value or written to the expected value. WG14 lock-free defect reports · PA30 runtime query · PA37 Wasm runtime query · PA38 C atomic capability
The strict report passed 11,652 tests. PA36 smoke, PA37, PA38, PA39, debug information, PA35 through PA5, and the native inception comparison passed. The placement audit scanned 11,245 inputs with zero placement findings. The student export verified 26,147 reference files and passed the new PA30, PA37 and PA38 cases using its bundled tools. The pinned upstream and differential runs retained their reviewed outcomes. Compile-time measurements
Clang's by-value builtins and GNU's generic pointer builtins use the ordinary value size for sources, results and expected-value updates. An atomic object containing a three-byte value uses an inline four-byte operation. Wider representations use the existing size-prefixed runtime ABI. The typed call selects either path. Lowering gets both widths from the types it already needs for storage and stages operands only where the representation or the runtime ABI requires it.
The PA30 runtime test checks the provider's width, both compare-exchange outcomes, and canaries next to the ordinary value buffers. The PA38 hosted control also checks exactly-once evaluation of the value passed to the real header. PA30 runtime protocol · PA38 hosted atomic control
At -O0 and -O2, 3-, 12-, 16-, and 17-byte values passed with Clang's
and GCC's C headers and Linux's libatomic on x86-64 and under AArch64
QEMU. A release/acquire publication probe with 200,000 reads and
writes per width also passed for 3-, 12-, and 17-byte values with
Clang's header on both Linux targets. The original probe passed as bare
Wasm and WASI under Wasmtime with a single-thread ABI test provider.
It linked as Mach-O for Intel and Arm Darwin with a supplied provider.
Native Darwin execution and a concurrent wide Wasm runtime are still
open qualification items.
Atomic aggregate rules ·
Compile-time measurements
The strict report passed 11,652 tests. PA36 smoke, PA37, PA38 native and
Wasm, PA39, debug information, PA35 through PA5, and native inception
passed. The placement audit scanned 11,245 cases with zero findings. The
student export verified 26,147 reference files and passed the two
affected cases with its bundled tools. The pinned GCC, Clang,
c-testsuite, GCC torture, and Csmith results retained their reviewed
outcomes.
The direct three-byte aggregate return had split the read into ordinary loads. Ordinary C assignment and lvalue conversion for a twelve-byte object read torn values in all three native runs of the publication probe. They now share the sized atomic operations used by the builtin path. The assignment result reuses the ordinary value. Copies into arguments and returns use the unqualified layout. Initialization covers padding in local atomic objects and in explicitly initialized and omitted members. PA38 inline case · PA38 wide case · Direct atomic access rules
The concurrent publication probe for 3-, 12-, and 17-byte values passed
three runs each at -O0 and -O2 on Linux x86-64 and AArch64 QEMU.
Clang and cppgm objects exchanged 12- and 17-byte values on x86-64 with
libatomic. Both optimization levels passed for bare Wasm and WASI with
a single-thread ABI test provider. Mach-O linked for both Darwin targets
with a supplied provider. The disabled Wasm atomic profile rejected wide
atomic access with an explicit diagnostic.
The strict report passed 11,652 tests. PA36 smoke, PA37, PA38 native and Wasm, PA39, debug information, PA35 through PA5, and inception passed. The placement audit scanned 11,248 cases with zero findings. The export verified 26,153 reference outputs and passed the new native and Wasm cases with the bundled tools. The upstream tests, GCC torture, and Csmith retained their reviewed outcomes.
Wide C compound assignments and increment and decrement expressions now
share the runtime protocol for ordinary atomic loads and stores. AArch64
and Wasm previously rejected wide instructions reached from a
long double update. On x86-64, the instruction path could select
cmpxchg16b while other accesses used the provider. The wide
update prepares its expected buffer once, loads the representation,
and retries the computation from the expected value supplied by a failed
compare-exchange. Wide integer initialization stores directly before
publication.
PA38 arithmetic case ·
Forced retry provider ·
Read-modify-write rules
The PA38 case passed at -O0 and -O2 with native Linux libatomic on
x86-64 and under AArch64 QEMU. A three-thread test ran 12,000 updates per
thread for scalar and complex long double and found the expected
totals in three runs at each level on both targets. The parent produced
an incorrect complex total in all three x86-64 -O2 trials. Bare Wasm and WASI
passed the separate provider test, which forces a failed compare-exchange
and checks the postfix value and evaluation counts. Intel and Arm
Mach-O linked with a supplied provider. Native Darwin execution remains
unverified. The disabled Wasm atomic profile diagnosed the wide update.
The strict report passed 11,652 tests. Debug information, PA36 smoke, PA37, both PA38 lanes, PA39, PA35 through PA5, and inception passed. The placement audit scanned 11,249 cases with zero findings. The student export verified 26,156 reference outputs and passed the new native compilation and Wasm runtime cases with its bundled tools. The pinned upstream tests, GCC torture, and Csmith retained their reviewed outcomes.
Floating-point environment qualification remains open. Compile-time measurements
Modern GNU scalar builtins and Clang's C11 arithmetic builtins now accept 128-bit integers. The wide scalar memory operations use the generic ABI. The wide arithmetic and existing narrow bitwise operations share the compare-exchange loop. PA30 checks the old and new result forms, signed wrap, failed expected-value updates, a forced retry, and operand evaluation counts. Its rejection case checks the ordinary expected pointer type. PA38 exercises both builtin spellings on Wasm. PA30 protocol fixture · PA30 expected type · PA38 arithmetic fixture
At -O0 and -O2, the load, store, exchange, compare-exchange, and
fetch probe passed with both GCC and Clang C headers on Linux x86-64 and
AArch64 under QEMU with libatomic. Clang's header passed in bare
Wasm and WASI under Wasmtime with a single-thread test provider. Intel
and Arm Darwin Mach-O linked with a supplied provider. Native Darwin
execution remains open. The disabled Wasm atomic profile diagnosed the
wide builtin call.
Three threads each ran 10,001 fetch-add and fetch-xor operations. The counter and high-bit mask matched their expected values in three trials at each optimization level, using GCC's header on x86-64 and Clang's header on AArch64 QEMU.
The strict report passed 11,653 tests. PA36 smoke, PA37, PA38 native and Wasm, PA39, debug information, PA35 through PA5, and inception passed. The placement audit scanned 11,250 cases with zero findings. The student export verified 26,158 reference outputs and passed the affected PA30 and PA38 cases, including the Wasm runtime case, with its bundled tools. The pinned upstream tests, GCC torture, and Csmith retained their reviewed outcomes. Compile-time measurements
The prototype array, tagged generic association, and structure return
fixtures emit ELF objects for Linux x86-64 and AArch64 and Mach-O objects
for Darwin x86-64 and arm64 at -O0 and -O2. All six Linux AArch64
objects linked with LLD and a minimal ELF startup routine and ran
successfully under QEMU user mode 10.2.1. Hosted SDK and native Darwin
execution are separate qualification items.
The five new VLA runtime fixtures ran at -O0 and -O2 on Linux x86-64
and Linux AArch64 under QEMU. Both Darwin targets emitted Mach-O objects.
The PA38 Wasm lane also ran the five fixtures and checked the associated
rejection cases. PA38 VLA parameter case
The cast, sizeof expression, and GNU typeof fixtures ran at -O0 and
-O2 on Linux x86-64 and Linux AArch64 under QEMU. Both Darwin targets
emitted Mach-O objects at both optimization levels. The PA38 Wasm lane
ran all three positives and rejected the VLA compound literal. GCC 15
and Clang 21 agreed on the fixture outcomes. PA38 GNU typeof case
Copies of volatile-qualified records now use LowIR scalar accesses for
the qualified storage, including by-value arguments and returns. The
new PA38 case also covers discarded reads, use of the assignment's value,
and a larger copy that uses a loop. The assignment reuses the right-hand
snapshot for the result. The volatile accesses remain in optimized LowIR.
The case ran at -O0 and -O2 on Linux x86-64 and Linux AArch64 under
QEMU. The Wasm lane passed and both Darwin targets emitted Mach-O. Aggregate
transfers involving individually qualified subobjects remain an audit item.
PA38 volatile record case
- GCC torture. At the GCC revision used by upstream CI, 1,339 C files
in the top-level execute directory passed the initial standalone screen.
A deterministic sample selected the 64 lowest SHA-256 digests of the
basenames. GCC 15 agreed at
-O0and-O2on all 64. cppgm matched 109 of the 128 configurations in GNU17 on Linux x86-64. The failures include multidimensional and variably modified arrays, GNU inline assembly, GNU flexible member initialization, an always-inline call, and an optimized-only unresolved symbol. The current compiler matches 111 of 128 configurations with 17 reviewed failures. The scheduled and manually dispatched upstream workflow runs this sample and records unexpected differences independently of the known gaps. Pinned execute corpus · GCC suite instructions - Csmith 2.3.0. Ran seeds 1 through 16 with at most three functions and a block depth limit of three. GCC 15 and Clang 21 agreed on 15 seeds at both optimization levels. Seed 16 timed out in all four native runs under the 40-second limit. cppgm initially could not parse the hosted floating-point limit macros. Probing host predefined macros in C mode closed that gap. Two of the seeds also exposed C++ copy constructor calls in C struct returns. With both fixes, cppgm matched all 30 qualified configurations in Linux x86-64 C17. The scheduled and manually dispatched upstream workflow now repeats these differential checks and retains the generated source, native checksums, and compiler receipts. Pinned generator · PA38 floating limits · PA38 struct returns
The PA38 bit fixture exercises compile-time and runtime operations on
declared widths of 7, 65 and 127 bits and on narrower bit-fields. It
checks that GNU C headers can discover the builtins, the result types
match the operation, and a side-effecting argument is evaluated once.
GCC's pinned C11 run exercises the full family at -O0 and -O2.
Its negative cases cover unsupported operand types and plain char
under -funsigned-char. The pinned GCC and Clang C23 cases exercise
the installed checked arithmetic header.
The clause matrix records the availability of the selected C23 SDK
headers and the execution of the facilities they expose. All 1,290
probes in the local Linux x86-64, WASI and bare Wasm run pass. Linux
x86-64 covers the full bit operation set on the five standard unsigned
widths, the library's typed function symbol, representative extended
and bit-precise widths, mixed-sign checked arithmetic, and the C23
variadic operations and header version. WASI and bare Wasm cover the
checked arithmetic and variadic programs. The selected WASI SDK
omits <stdbit.h> and the <stdarg.h> version macro. Those requirements
remain uncovered where applicable.
The same installed-header programs pass through the Linux AArch64 GCC 14 and glibc sysroot under QEMU at both optimization levels. Direct compilation and replay of emitted LowIR are byte-identical and execute correctly for the PA38 bit regression on both Linux architectures, both Mach-O architectures, WASI and bare Wasm. The Mach-O runs use SDK-free local execution, with the native Apple SDK checks assigned to the existing CI workflows.
The strict report passes 11,674 tests. The debug-info checks, PA36 smoke, PA35 through PA5, exact inception, and 76 harness test files pass. PA38 passes 681 native and 681 Wasm tests, 63 controls and four mixed-toolchain ABI tests. The student export verifies 26,934 portable reference outputs. Its PA1 and PA38 suites pass with the bundled tools. The placement audit covers 11,683 fixtures with zero placement or local hygiene findings. All architecture audits pass with the 13 existing file-audit warnings.
WG14 and GCC references · PA38 regression · Compile measurements
The combined C23 executable exercises the 22 translation limits using
the edition's 32,767-byte hosted object threshold. GCC 15 and Clang 21
pass the same source at -O0 and -O2. cppgm emits byte-identical
objects from source and LowIR replay at both levels on x86-64 and AArch64
Linux, both Mach-O targets, WASI, and bare Wasm. Both forms execute
successfully. The Mach-O runs use local loaders with SDK-free programs.
The new C23 results feed the existing target CI matrix.
The numerical probes exercise the C23 width macros in <limits.h> and
<stdint.h>, including construction and execution with the advertised
maximum _BitInt width. They also check normalized maxima, the floating
format indicators, and static initialization with the SDK's signaling
NaN macros. The GCC 14 AArch64 resource headers consume the GNU integer
width and floating format predefines. The real SDK probes pass under
QEMU at both optimization levels. The standalone PA38 regression checks
sign and payload without requiring an SDK. Its direct and replayed
objects agree and run on all six targets at both optimization levels.
The decoder round-trips ordinary values, infinities, signed zero and both
NaN classes in standalone GCC and Clang x86-64 builds with the x87
and binary64 long double options. A Clang AArch64 build passes under QEMU with a
binary128 host long double.
The local matrix passes 1,386 probes across Linux x86-64, WASI and bare
Wasm. The WASI resource <limits.h> and <float.h> supply the integer
widths and floating constants. In the selected WASI sysroot, hosted
<stdint.h> omits the widths that the freestanding Clang header provides.
The Wasm <float.h> lacks the C23 format indicators. Both gaps remain
uncovered in the matrix. The pinned Clang C23 suite passes 24
configurations, including the freestanding integer-width test. Clang's
separate float.c test also uses floating comparisons as extended
integer constant expressions in static assertions. GCC rejects that form
with -pedantic-errors.
An initial syntax survey included each of the 31 C23 headers twice in
a separate source file. All 31 parse using the selected Linux x86-64
and AArch64 SDKs. WASI accepts 28 with its default setup. Its
<setjmp.h> requires the Wasm exception-handling macro, and
<signal.h> requires the SDK's emulation option. A nonlocal jump and a
signal handler with SIG_IGN both execute at -O0 and -O2 when those
header options and the signal emulation archive are selected. The two
opt-in configurations still need matrix receipts.
The strict report passes 11,674 tests. PA38 passes 682 native and 682 Wasm tests, 63 controls and four ABI tests. PA39 passes 106 tests. Debug-info, PA36 smoke, PA35 through PA5, exact inception and 76 harness test files also pass. The architecture audits pass with 13 existing file audit warnings. Placement scans 11,684 fixtures with zero placement or local hygiene findings. The student export verifies 26,937 portable reference outputs. PA1, PA38 native, Wasm and ABI, and the PA39 data-model check pass against the packaged tools.
WG14 clauses and open issue · PA38 signaling NaN case · Compile measurements
The edition checklist covers the 15 C90 headers and cumulative additions from C95 through C23. Each probe tests two inclusions of one header and compiles the available headers together. The combined rule requires all applicable headers. The receipts retain a reason for an absent header, a conditional feature that the compiler disables, or a header that requires an SDK opt-in. The C23 version probes check the spelling or constant expression required for each of the 21 version macros.
Linux x86-64 with GCC 15 and Linux AArch64 with the GCC 14 sysroot pass
all 146 edition-by-header checks, all six combined header checks, and all
21 C23 version macros. The AArch64 object files link against the selected
glibc and run under QEMU. setjmp and signal pass at -O0 and -O2
in each edition. The matrix also associates the existing integer, floating
and default-rounding probes with its overall C99–C17 numeric limits rule.
WASI C supplies the exception-handling predefine consumed by the SDK's
<setjmp.h>. A jump across a call executes at both optimization levels
in every edition. The SDK's signal emulation also executes in every
edition with -D_WASI_EMULATED_SIGNAL and -lwasi-emulated-signal. The
default hosted signal rules remain uncovered. The installed WASI SDK
lacks <stdbit.h>, and 19 of the C23 version macros are absent from the
headers tested. The bare Wasm profile's Clang resource directory supplies
nine C23 headers. It lacks <stdbit.h>, <string.h> and <stdlib.h>.
The local run passes 2,498 probe configurations across Linux x86-64, AArch64 under QEMU, WASI and bare Wasm. The existing native CI jobs provide the path for the real macOS SDKs. These results qualify the tested header, macro and library behavior. The remaining library interfaces and runtime configurations are tracked in the plan.
The 11,674-test strict report, debug-info tests, PA35 through PA5, exact inception and PA36 smoke pass. PA38 passes 683 native and 683 Wasm tests, 63 controls and four mixed-toolchain ABI tests. The student export verifies 26,940 portable reference files and passes PA1 and the same PA38 lanes with the bundled tools. The architecture audits pass with 13 existing file audit warnings. Placement scans 11,685 fixtures with zero placement or local hygiene findings.
Standard references · PA38 WASI regression · Compile measurements
The clause runner now exercises header declarations through real calls in
each applicable edition. The C90 cases check assertion reinclusion,
character classification and the C locale, structure offsets, formatted
I/O, file positioning, allocation, numeric conversions and errors,
search and sort callbacks, and overlapping string operations. The C95
wide-character probes carry forward through C23. The C99 probes copy
an advanced argument list and round-trip maximum, least, fast, and
pointer-width integers through <inttypes.h>. The C11 cases carry
retained functions and atomics into C23. The C23 atomic initializer
uses direct initialization in that edition.
The C23 runtime checks cover binary numeric conversions, binary stdio
and width modifiers, variadic assert, memalignment,
memset_explicit, string duplication, timespec_getres, and the
restartable UTF-8 conversion functions. The hosted checks run when the
required C23 header versions have passing evidence. The C17 conversion
control runs independently. On x86-64 glibc 2.43, ELF symbol inspection
finds strtol in the C17 object and the glibc __isoc23_ redirects
in the C23 object. Both linked programs produce the correct end-pointer
and value for the selected mode.
The WASI probes exposed unresolved integer format macros in the
default <inttypes.h>. The driver now emits the format strings from
the existing target integer role table. All 90 format predefines match
the pinned Clang on bare wasm32, WASI, and Emscripten. The PA38
regression checks the public header macros, and the runtime probes
exercise them with values and pointer outputs at both optimization
levels. The SDK enables long-double stdio with
-lc-printscan-long-double. That archive passes its own link and runtime
checks. The default WASI long-double stdio rule remains uncovered.
The exact compiler passes 3,020 clause probe configurations. This includes 880 each on x86-64 glibc and AArch64 glibc under QEMU, 785 on WASI and 475 on bare Wasm. Focused native and cross runs using GCC and Clang as controls pass 1,042 configurations. The separate musl 1.2.5 replay passes all 276 configurations with GCC 15 and cppgm. Native macOS SDK execution still needs evidence.
The pinned GCC C17 and C23 cohorts pass 27 and 77 configurations,
respectively. The pinned Clang C23 cohort passes 24. The Clang C17
cohort passes eight, with the existing __STDC_NO_VLA__ qualification
gap in n1460.
The strict report passes all 11,674 tests. Debug-info, inception, PA35 through PA5, PA36 smoke, and all 76 harness test files pass. PA38 passes 684 native and 684 Wasm tests, 63 controls and four mixed ABI tests. The student export verifies 26,943 portable reference outputs. Its bundled tools pass PA1 and the PA38 native, Wasm and ABI lanes. The architecture and format audits pass with 13 existing file audit warnings. Placement scans 11,686 fixtures with no placement or local test hygiene findings.
Library clause references · PA38 format regression · Compile measurements
The clause runner now covers variable-length declarations and pointers,
typedef extents, prototype-scope stars, evaluated and unevaluated bounds,
alignment, atomic and function-pointer types, and scope exits. It runs
the selected C99, C11, C17, and C23 programs at -O0 and -O2, and
checks the ISO diagnostics and GNU controls in their own modes. Pedantic
C90 and C95 still diagnose runtime array bounds.
The six-profile replay passes 2,208 configurations. It includes 96 mixed-compiler ABI calls, pairing cppgm with GCC 15, Clang 22, or the pinned WASI Clang in both caller and callee directions. The paired callee uses a multidimensional array parameter with an adjusted outer bound and a runtime inner stride. Separate object inspection verifies 1,236 relocatable files across ELF, Mach-O and Wasm before considering the link and execution evidence. Linux AArch64 runs under QEMU. The Intel and Arm Darwin results use the SDK-free local Mach-O loaders, and native macOS CI still needs to qualify the real SDK and runtime.
The baseline passed the same language and ABI checks. The 36 capability
checks then failed at preprocessing because the compiler advertised
__STDC_NO_VLA__. The rebuilt compiler leaves that macro undefined and
passes the capability checks in C11, C17, and C23. The pinned Clang
n1460 test passes in both C11 and C17. The runner retains the standard's
distinction between the C23 requirement for variably modified types and
the conditional automatic VLA feature.
A C23 regression exercises implicit qualification of a pointer to a
runtime-sized array. The earlier-edition qualification boundary remains
open. In the local C17 comparison, cppgm accepts the pointer-to-array
qualification conversion and rejects the conversion from a pointer to a
const-element array to plain void *. GCC 15 gives the reverse C17
outcomes. For compatible fixed and runtime bounds in C23, cppgm rejects
assignments, equality comparisons and pointer subtraction that GCC 15
and Clang 22 accept. GCC 15 also accepts the conditional with a
const-element VLA and a volatile-element fixed array, following the C23
composite type and qualifier rule. This gate left both rules open.
The array pointer qualification run
below records their resolution.
The full clause probe runner passes all 4,492 executed configurations across Linux x86-64, Linux AArch64 under QEMU, WASI and bare Wasm. This count includes the VLA subset on these four profiles. The hosted Darwin matrix still requires native SDK receipts. The two qualification rules above account for all four uncovered edition-and-rule entries on each Linux target in the current inventory. The WASI and bare Wasm matrices have 61 and 21 uncovered entries, respectively, across all editions. The pinned GCC GNU17 torture sample matches 113 of 128 configurations and reproduces all 15 reviewed gaps. The pinned Csmith run matches GCC and Clang on 30 configurations.
The strict report passes 11,674 tests. Debug info, PA38 native, Wasm, ABI and driver checks, PA35 through PA5, inception and PA36 smoke also pass. The architecture and harness audits pass with 13 existing file audit warnings. Placement scans 11,689 fixtures with no placement or test hygiene findings. The student export verifies 26,952 portable reference outputs and passes its PA1 and PA38 native, Wasm and ABI tests with the bundled compiler tools.
Language references · PA38 capability regression · PA38 ABI pair · Compile measurements
The scheduled upstream GCC job also checks the LLVM test suite at
28d2f36a29e8bb5de329a828f07729de66df0a9c. The initial cohort has
36 single-source C regressions and three multi-source MiBench programs.
Each translation unit compiles to an ELF object independently. The
host driver links those objects with the system C library. The
runner checks the program output and exit status against LLVM's
reference, including the hashed output of basicmath and FFT. The JPEG
case also checks the decoded image against the digest measured with
GCC 15 and Clang 21.
GCC 15 and Clang 21 passed all 78 configurations locally. cppgm
matched 64 at first. Replaying Duff's device in its legacy GNU90 mode
exposed a runtime failure. The ignored non-void result reached the
function's end, where cppgm used the C++ unreachable terminator.
The C return path now passes the unchanged program at both levels.
The GNU shutdown work also passes LLVM's unchanged
ConstructorDestructorAttributes at both levels. The current result
is 68 of 78. Five programs reproduce reviewed gaps at both levels,
including missing GNU transparent-union argument conversion.
The replay inventory accounts for 1,708 GCC torture sources bundled with LLVM. The pinned GCC corpus has corresponding paths for 1,705 of them, including 776 byte-identical sources. The remaining three LLVM archive cases have a separate exclusion in the manifest. Input identities and commands travel with the raw logs in the CI artifact.
LLVM sources · Scheduled runner · Reviewed gaps
Array pointer conversions now use the edition's qualification of the
immediately pointed-to type. ISO C through C17 accepts a pointer to an
array of const elements as a plain void pointer. The same editions
diagnose conversions that add qualification to array elements when
pedantic mode requires it. Explicit __extension__ scopes and system
headers continue to admit the extension. With -Wsystem-headers, the
system-header comparison reports the required diagnostic.
In C23 the array inherits its ordinary element qualifiers. Both implicit argument conversion and composite operations accept compatible fixed and runtime bounds. Equality, ordering, subtraction and conditional selection preserve the required qualification. The controls include incompatible fixed bounds, atomic element mismatch and qualification behind another pointer level. GCC 15 agrees with all the new strict fixtures. Clang 22 differs at the earlier-edition boundary and rejects the C23 mixed-qualifier conditional. The clause text supplies the expected result in those comparisons.
The VLA replay passes 2,532 configurations. The C fallthrough regression passes a further 72 configurations with both optimization levels in six editions, including a scalar result and an aggregate result that the caller discards. Both batches run on Linux x86-64, Linux AArch64 under QEMU, WASI and bare Wasm. The Darwin checks use SDK-free Mach-O loaders for both architectures.
The combined driver matrix passes all 4,756 executed configurations across the two Linux and two Wasm profiles. The current compiler passes the reviewed manifest checks for 203 pinned GCC configurations and 39 pinned Clang configurations. A follow-up diagnostic probe found that cppgm accepts ordered comparisons of two function pointers or of an array pointer with a void pointer in pedantic C17 and C23. GCC 15 and Clang 22 diagnose both forms. The ordered comparison replay below records the fix.
The exact compiler passes the 11,674 strict checks, debug-info checks, PA38 native, Wasm, ABI and driver suites, PA35 through PA5, PA36 smoke, and inception. The architecture and harness audits pass. The file audit reports 13 existing warnings. The placement audit checks 11,702 fixtures with no placement or local test hygiene findings. The student export verifies 26,983 portable reference outputs. The bundled tools pass PA1 and PA38's native, Wasm and ABI lanes.
Qualification references · Discarded-result references · Compile measurements
The ordered comparison replay passes 504 configurations at -O0
and -O2 across six C editions and six targets. The new diagnostics
cover function pointers, an object pointer and a void pointer, both
forms of a null pointer constant, and pointers to corresponding signed
and unsigned types. The runtime controls preserve ordering between
compatible qualified object pointers and between compatible void
pointers. They also preserve legal equality comparisons. The explicit
GNU and system-header controls pass, including the expected system
header diagnostic when warnings are enabled there. GCC 15 and Clang 22
agree on the strict controls. The tested Clang diagnostic for function
pointer ordering still fires within an explicit GNU extension.
The shutdown tests verify output ordering after normal termination.
They pass with the system C library on x86-64 and with Linux AArch64
under QEMU at both optimization levels in all six editions. The two
ELF writers emit prioritized SHT_FINI_ARRAY sections. Relinking the
two PA30 objects in the reverse order produces identical output on
Linux. The exit and _Exit controls exercise normal and abrupt
termination. The flat x86 LowIR and internal linker routes exercise
the same order.
WASI registers the callbacks through its C runtime. The program passes
at both optimization levels and with -Oz -flto. Both Mach-O targets
pass the SDK-free loader test, which checks callback ordering and the
DSO handle passed by each registration. Bare Wasm passes with an
explicit exit callback runtime. Native macOS SDK tests remain open.
The current driver replay passes all 5,128 configurations across x86-64 Linux, AArch64 Linux under QEMU, WASI, and bare Wasm. Every applicable rule represented in the Linux inventory has passing evidence across all six editions on both architectures.
The strict report passes 11,677 tests. Debug-info checks, PA35 through PA5, PA36 smoke, exact inception, the 76 harness test files, and the architecture and format audits pass. The file audit reports 13 existing warnings. The placement audit checks 11,713 fixtures with no placement or local hygiene findings. PA38 passes 708 tests per native and Wasm lane, 63 controls, and four mixed-toolchain ABI tests. The student export verifies 27,015 portable reference outputs. Its bundled tools pass PA1, the PA30 shutdown regression, and the PA38 native, Wasm, and ABI suites.
Ordered comparison references · Shutdown references · Compile measurements
The pinned WASI SDK 34 sysroot produced the same outcome with its reference Clang and cppgm on 15 strict C23 library probes. Integer limits widths, the variadic interfaces, and checked arithmetic compiled and ran in both. Binary integer conversion failed at runtime on the first binary-prefix check with both compilers.
The other eleven probes failed during compilation with both compilers.
The SDK has a single-argument assert macro and lacks the binary stdio
format macro, the tested stdint.h widths and floating-format
indicators, and <stdbit.h>. The tested declarations for
memalignment, memset_explicit, strndup, timespec_getres, and
the UTF-8 character interfaces were also unavailable in this mode.
This isolates the observed behavior and declarations to the selected
SDK and runtime pairing.
At that checkpoint, the inventory had 57 uncovered edition-and-rule entries on WASI. Of these, 37 are in C23. The earlier editions have four recurring gaps in the combined headers, the signal header and runtime, and default long-double stdio. Bare Wasm has 17 uncovered entries, all in C23. They include the freestanding string and allocation headers, bit utilities, and required header version macros.
WASI SDK pin · Header and runtime checklist
The bare Wasm replay builds a supplemental runtime archive with
cppgm at -O2. The supplement provides <stdbit.h> and the
freestanding memalignment interface of <stdlib.h>. The C23
probe checks the endian macros, size and integer types, and all
70 callable bit functions alongside the type-generic macros. The
extended-width probe also checks unsigned 128-bit and bit-precise
operands. The alignment probe checks a null pointer, an unaligned
address, and the power-of-two alignment of a stack object.
At -O0 and -O2, cppgm callers link with the Clang 23 archive
and Clang callers link with the cppgm archive. Both the internal
linker and LLD pass all 24 mixed executions under Wasmtime. A
program using one bit function retains one archive function body.
The linked module is 184 bytes with no host imports.
The source-only release archive contains the build recipe and sources. The extracted archive builds the runtime and passes the bit utility probe using the documented driver invocation. The CI evidence includes the runtime archive, headers, and hashes.
The combined replay passes all 5,137 executed configurations at
53f89bcf6. It covers 1,410 configurations each on Linux x86-64
and Linux AArch64 under QEMU, 1,315 on WASI, and 1,002 on bare Wasm.
The 76 harness test files, format audit, and release archive checks
pass. The file audit reports its 13 existing warnings.
The first supplement closed six bare Wasm C23 inventory entries. A link experiment also established that the SDK's musl string routines can execute under bare Wasm without host imports. The remaining bare checks are covered by the expanded library below.
Build and link commands · Bit utility requirements
The archive includes 19 public string functions and their four internal
helpers from WASI SDK 34. The selected objects use Wasm memory operations
and local calls. Their compiled source paths identify the SDK's musl
string sources. The kit carries the upstream notices beside the archive.
The SDK's own <string.h> requires a WASI target. The bare header
provides the C23 freestanding declarations and the five searches with
const-preserving result types. The executable probe covers every public
string symbol, qualified pointers including a pointer to a const-element
array, and single evaluation of pointer, character and length operands.
memset_explicit uses the bulk memory builtin and a memory barrier.
The runtime probe checks the target bytes, adjacent bytes, and returned
address. A caller that discards its buffer still emits memory.fill
with LTO at -O0, -O2 and -Oz.
The supplement forwards the SDK resource headers and adds the
C23 version macros for <float.h>, <limits.h>, <stdarg.h>,
<stddef.h>, and <stdint.h>. The floating header exposes the
binary32, binary64 and binary128 format indicators. The replay checks
the underlying limits, integer types, variadic operations, and common
definitions including nullptr_t and unreachable. Bare Wasm passes all
124 tracked C23 inventory entries, including the combined header
check. The stock hosted WASI configuration has 38 uncovered C23 entries
with the new string probe in its inventory.
Four probes for string functions, explicit fill, floating formats and
variadics pass 32 mixed cppgm and Clang runs at -O0 and -O2 with
both linkers. The modules validate and run without host imports. The
extracted source-only archive builds the supplement, installs all five
upstream notices, and passes the string program.
The combined replay at b329cef37 passes all 5,157 executed
configurations. It covers 1,412 on each Linux architecture, with QEMU
used for AArch64, 1,315 on WASI and 1,018 on bare Wasm. The 76 harness
test files, format audit, and source release checks pass. The file
audit reports its 13 existing warnings.
On stock WASI, the archive already exports strdup and strndup.
The C23 string allocation probe passes with cppgm and the SDK Clang
when compiled with _POSIX_C_SOURCE=200809L. The strict default C23
profile still lacks those declarations. This probe confirms the runtime
implementations that a hosted C23 header can expose.
C23 string requirements · WASI SDK input · Compile and link measurements
The wasi-c23-hosted profile uses WASI SDK 34 with the supplemental
headers and archive, signal emulation, and the long-double stdio
archive. The conformance runner also replays the stock SDK as
wasi-hosted. Both use the same compiler, sysroot, runtime engine,
and C23 probes. Stock observations through C17 still use their
original configurations.
The hosted archive reuses the bare runtime implementations of
<stdbit.h>, memalignment, and memset_explicit. The hosted string
header forwards the SDK declarations, exposes strdup, strndup and
memccpy in strict C23, and supplies the const-preserving searches.
The SDK exports the existing string symbols. The supplemental assertion
retains NDEBUG reinclusion and accepts the C23 variadic argument.
The integer header tests the SDK's exact, least, and fast type widths.
Its fast 16-bit types use the SDK's 32-bit typedefs. The pointer-width
limits preserve the SDK's long and unsigned long expression types.
The clock wrapper reuses clock_getres and tests a null destination
and an unsupported base. The same probe exercises reentrant calendar
conversion. SDK resource headers supply the remaining common
definitions and variadic support. With the opt-in libraries, the
combined headers, signal handling and long-double I/O pass.
The supplemented profile passes 173 C23 inventory entries and
leaves 13 uncovered, compared with 38 uncovered for stock WASI.
The remaining entries concern binary integer conversion, binary I/O,
UTF-8 multibyte conversion, and C23 interfaces and version macros in
ten headers. The source-only release builds the archive and executes
the time test through the documented driver invocation. At -O0
and -O2, 11 focused programs pass 88 mixed cppgm and Clang runs
with both linkers.
The combined replay at f19c38bee passes all 5,637 configurations.
This includes 1,412 each on Linux x86-64 and Linux AArch64 under QEMU,
1,315 on stock WASI, 480 on the hosted supplement, and 1,018 on bare
Wasm. All 76 harness test files and the format audit pass. The file
audit reports its 13 existing warnings.
Build and link commands · C23 library requirements · Compile measurements
The hosted supplement supplies char8_t, mbrtoc8, and c8rtomb
in <uchar.h>. The locale conversion uses the WASI SDK's existing
C32 routines. The UTF-8 state stores a scalar and remaining unit
count in the SDK word read by mbsinit. ASCII takes a direct path.
The C23 runtime probe covers split input, zero-length calls with pending bytes, null arguments, and invalid sequences. In the selected glibc locale, the decoder reports four bytes consumed for an input above the Unicode scalar range and leaves the destination unchanged. The WASI probe explicitly rejects that input. The shared tests check valid boundaries and errors for invalid leaders, overlong encodings, and surrogates on both runtimes. The encoder rejects values beyond the scalar range on both.
An exhaustive run used the SDK's C32 encoder as the byte oracle.
It checked all 1,112,064 Unicode scalars and 4,382,592 byte split
positions, including the unsplit position for each character.
cppgm and SDK Clang clients on WASI and GCC 15 on glibc produced
the identical checksum b7995c7ea7f25e25. The source-only
archive builds the supplement and executes the UTF-8 probe.
Eight mixed cppgm and Clang runs pass with both linkers at -O0
and -O2. A separate WASI program passes copied conversion states,
empty input at the initial state, and null input with a pending byte
and a nonnull destination. The combined replay at 9565f0fbd passes
all 5,640 configurations, including 483 with the hosted supplement.
The supplemented profile passes 175 C23 inventory entries and leaves
11 uncovered. The format, file, harness unit and source release
checks pass, with 13 existing file audit warnings.
C23 UTF-8 requirements and SDK state · Runtime measurements
The WASI supplement now redirects all six narrow and six wide integer conversions in C23. The same module can link a C17 caller using the SDK symbol and a C23 caller using the supplemental symbol. The shared scanner handles binary digits and range checks in one pass. The SDK continues to handle decimal, octal, hexadecimal, and other bases. The probes cover incomplete prefixes, end pointers, signed minima and maxima, unsigned negation, overflow with either sign, and function pointer calls.
cppgm and the SDK Clang match GCC 15 and glibc on a deterministic
80,000-input corpus. It checks narrow and wide results for both
greatest-width conversions, end offsets, and ERANGE. The checksum
is 4a3754e67b398228. The C17 and C23 callers also pass together
in one Wasm module.
The supplement adds free_sized and free_aligned_sized using
the SDK allocator. Its C23 bsearch macro preserves the qualifiers
of the searched elements. Runtime tests cover resized and aligned
objects, null frees, base and count operand effects, and concrete
bsearch calls through function pointers. These two requirements
now have their own inventory entries. The three programs pass
32 mixed executions with cppgm and Clang at both optimization
levels. The source-only package builds and runs all three. A failed
archive build preserves the previous archive, and the retry produces
the same bytes.
The combined replay at 7074217b5 passes all 5,654 executed
configurations. This includes 1,416 each on Linux x86-64 and Linux
AArch64 under QEMU, 1,315 on stock WASI, 489 with the hosted
supplement, and 1,018 on bare Wasm. The hosted supplement passes
178 tracked C23 checks. Its 10 uncovered entries are binary stdio
and the C23 version checks for <complex.h>, <fenv.h>,
<inttypes.h>, <math.h>, <stdatomic.h>, <stdio.h>,
<stdlib.h>, <tgmath.h>, and <wchar.h>. Advancing each version
macro requires qualifying the corresponding C23 interfaces. Stock
WASI has 40 uncovered C23 entries. All 76 harness test files and the
format audit pass. The file audit reports its 13 existing warnings.
C23 integer conversion and allocation requirements · Runtime measurements
The hosted supplement adapts the four formatting and scanning engines
from WASI SDK 34. They share argument-type handling across narrow and
wide callers and reuse the SDK stream layout, buffered I/O, locking,
and floating-point input. The archive keeps the string adapters
independent of the standard streams. A program using only snprintf
keeps the SDK control's WASI import set.
The C23 paths implement %b, %B output, binary prefixes for %i
input, and the wN and wfN integer widths exposed by the SDK. The
<inttypes.h> probe exercises all 42 binary macros, including the
minimum-width, fast, greatest-width, and pointer-width forms. The
header provides the C23 version macro. The <stdio.h> version check
remains open. For example, the pinned SDK lacks tmpfile and tmpnam.
The focused probe covers field width, precision, padding, assignment
suppression, variadic forwarding, stream I/O, and function addresses.
The C17 control stops before the binary prefix in both scan families.
One Wasm module links C17 and C23 callers and exercises both behaviors.
The same module tests scansets and incomplete binary fields. A separate
15,000-value corpus checks each value through both narrow and wide
formatting and scanning. cppgm and SDK Clang clients match GCC 15 and
Clang 22 with glibc on checksum 4a36bc872c3c0adf.
All 80 mixed-toolchain runs pass at -O0 and -O2 using both linkers.
The extracted source-only package installs the five upstream notices
and passes a linked probe at -O2 and at -Oz -flto. The combined
replay at 0c104024c passes all 5,663 configurations. Linux x86-64
and Linux AArch64 under QEMU each run 1,418, stock WASI runs 1,317,
the hosted supplement runs 492, and bare Wasm runs 1,018. The 76
harness test files and the pinned format audit pass. The file audit
passes with 13 existing warnings and two duplication warnings for
shared structure in the upstream narrow and wide engine sources.
The supplement passes 180 tracked C23 checks. The eight open entries
are the version and interface checks for <complex.h>, <fenv.h>,
<math.h>, <stdatomic.h>, <stdio.h>, <stdlib.h>, <tgmath.h>,
and <wchar.h>.
C23 formatted I/O requirements · WASI source provenance · Runtime and size measurements
The hosted supplement provides the C23 versions of <stdatomic.h>,
<wchar.h>, and <stdlib.h>. It supplies callable atomic fences and
flag operations. Both compilers emit Wasm fence and atomic byte
instructions in the archive. The probe checks UTF-8 character atomics,
flag set and clear through function pointers, and the removal of
ATOMIC_VAR_INIT in C23.
The Arm GCC headers need __CHAR8_TYPE__ to declare atomic_char8_t.
The compiler now defines it as unsigned char in C23 across the target
profiles. GCC 15 and Clang 22 give the same result. The existing PA38
C23 and C11 fixtures check the type and its edition boundary.
PA38 C23 version probe
All five wide-character searches preserve const qualification. Their
concrete function symbols remain callable. Separate C23 probes check
single evaluation, pointer types, null results, and WCHAR_WIDTH from
<wchar.h> alone. The pinned Linux glibc headers expose that macro
through <stdint.h>. The independent <wchar.h> check is newly
uncovered on both Linux architectures.
The <stdlib.h> once flag shares the SDK pthread_once representation
and initial value. Repeated calls and independent flags pass. The
strfrom probes cover all three real types, truncation, a null buffer
with zero size, long precisions, and binary128 precision beyond double.
A 10,000-value corpus runs 30,000 decimal conversions and 10,000
long double hexadecimal round trips. The decimal text and result counts
agree with GCC 15 and glibc at checksum 8a1e6eca6a772f3b.
All 64 focused mixed-toolchain runs pass at -O0 and -O2 with both
linkers. The extracted source package builds both runtimes and passes
all four new hosted probes.
The matrix at b4e542603 with GCC host predefines passes all 5,686
executed configurations. Linux x86-64 and Linux AArch64 under QEMU each
run 1,424, stock WASI runs 1,317, the hosted supplement runs 503, and bare
Wasm runs 1,018. The supplement passes 187 tracked C23 checks. Five
version and interface entries remain for <complex.h>, <fenv.h>,
<math.h>, <stdio.h>, and <tgmath.h>.
The GCC host strict report passes 11,677 tests. PA38 passes 708 native cases, 708 Wasm cases, 63 controls, and four native ABI cases. The debug-info suite, PA35 self-host through PA5, and all 76 harness test files pass. The architecture audits pass with 15 existing file audit warnings. Placement checks 11,713 tests with zero placement or local hygiene findings. The regenerated student export verifies 27,015 portable reference outputs and passes PA1 and the PA38 native, Wasm, and ABI lanes with the packaged tools.
The Clang host configuration independently reproduces an existing
C99 -Oz gap in the glibc fpclassify expansion. That expansion
uses __builtin_choose_expr. The same probe passes with GCC host
predefines. Both the parent and candidate exhibit this distinction.
C23 library requirements · Compile and runtime measurements
The parser recognizes __builtin_choose_expr through its C builtin
identifier table. Semantic analysis checks the condition as an integer
constant, checks both arms, and records the selected expression and its
type and value category. Constant evaluation and lowering consume that
same selection fact as _Generic.
GCC 15 and Clang 22 accept the ordinary PA38 fixture in pedantic C90,
C99, C17, and C23. Both reject the runtime condition and the invalid
unselected arm. The 128-bit condition tests above bit 63 and matches
GCC 15. Clang 22 selects the false arm when only the high word is set.
The two positive fixtures pass on Linux AArch64 under QEMU at -O0,
-O2, and -Oz and emit Mach-O objects for both Darwin architectures.
The C99 glibc fpclassify fixture with Clang host predefines now passes
at -O0, -O2, and -Oz. The Clang host conformance replay at
57eee1536 passes all 4,307 executed cases. It covers Linux x86-64,
stock WASI, the C23 WASI supplement, and bare Wasm. The supplement
passes 189 tracked C23 checks and has five uncovered header entries.
The GCC host strict report passes 11,677 tests. PA38 passes 712 native cases, 712 Wasm cases, 63 controls, and four native ABI cases. The debug-info suite, PA35 self-host through PA5, PA36 smoke suite, and all 76 harness test files pass. The student export verifies 27,023 regenerated reference output files and passes PA1 and the PA38 native, Wasm, and ABI lanes using the packaged reference binaries.
GCC builtin semantics · PA38 value and type fixture · PA38 wide condition fixture · Compile measurements
The overlay supplies both C23 header version macros. Its complex
constructors use __builtin_complex in C11 and later. The SDK Clang
control previously rejected the SDK constructor's component initializer
under -pedantic-errors. The new probes call all 22 complex function
families at each standard precision, check a binary128 static initializer,
preserve signed zero, and exercise thread storage and single evaluation.
The four C23 floating-point environment calls use the pinned SDK's
round-to-nearest control mode and empty exception mask. Linux also tests
nonempty saved flags, a single-flag subset, and mode changes independent
of exception flags. Its probes link with -lm.
All 32 mixed cppgm and SDK Clang builds pass at -O0 and -O2 with
both linkers. The two probes also pass on Linux x86-64 with cppgm, GCC 15,
and Clang 22 at both levels, and on Linux AArch64 under QEMU at -O0,
-O2, and -Oz. Twelve strict WASI C99, C11, and C17 controls verify
the edition boundaries. Both release archive variants contain the runtime
sources, and the source-only package builds the archive and runs the two
probes at -Oz -flto.
The GCC host replay passes all 4,326 executed configurations. Linux
x86-64 runs 1,444, stock WASI runs 1,333, the hosted supplement runs 515,
and bare Wasm runs 1,034. The supplement passes 193 tracked C23 checks.
Its three uncovered header entries are <math.h>, <stdio.h>, and
<tgmath.h>. The 76 harness test files pass. The file audit retains its
15 existing warnings.
The pinned WASI archive lacks 120 callable binary-math names from the
C23 draft's <math.h> inventory. The <tgmath.h> additions use those
families. For temporary files, an SDK experiment verified exclusive
creation, unlinking an open update stream, and clean failure without
a writable preopen. The mkstemp SDK declaration remains unresolved at
link time. The scoped C23 FENV_ROUND compiler probe remains open.
C23 N3096 §§7.3, 7.6, 7.12, 7.23.4 · Complex probe · Floating-point environment probe · Compile and runtime measurements
The supplement provides tmpfile and tmpnam in every C edition.
tmpfile checks the guest working directory's creation and deletion
rights and uses exclusive creation. It unlinks the file before opening
the binary update stream. tmpnam checks the candidate name without
following symlinks. Entropy and an atomic, nonwrapping ticket produce
the names. The C23 header advertises the stdio version and reports a
maximum NaN output length of four.
All 32 cppgm and SDK Clang build and link combinations pass in strict
C90 and C23 at -O0 and -O2. Each runs once with a writable preopen
and once without a preopen. The host directory stays empty after each
run. The C23 NaN check passes with both compilers. A separate test
generates all 10,000 advertised names and finds 10,000 distinct names.
Both new probes pass on Linux AArch64 under QEMU at -O0, -O2, and
-Oz. The extracted source-only package builds the runtime and passes
both probes at -Oz -flto.
The GCC host replay passes all 4,345 executed configurations. Linux
x86-64 runs 1,458, stock WASI runs 1,333, the supplement runs 520, and
bare Wasm runs 1,034. The supplement passes 196 tracked C23 checks.
The two open header entries are <math.h> and <tgmath.h>. The 76
harness test files pass and the file audit retains its 15 existing
warnings.
C23 N3096 §§7.23.1, 7.23.4.3–4 · Temporary-file probe · NaN output probe · Compile measurements
The overlay adds 36 callable symbols from the SDK's 120 missing C23 math names. It provides adjacent representable values, integer exponents, canonicalization, and the numeric and magnitude extrema. The classification macros use the SDK and compiler primitives. The probes cover all three real types, including binary128 subnormals and NaN encodings, signed zeros, and the exact exponent sentinels.
The three probes pass 48 mixed cppgm and SDK Clang compile and link
configurations at -O0 and -O2. All three pass on Linux x86-64 with
cppgm, GCC 15, and Clang 22 at those levels. Linux AArch64 under QEMU
passes all three at -O0, -O2, and -Oz. Both release source variants
contain the expected files, and the archive built from the source-only
package passes the three probes at -Oz -flto.
The GCC host replay passes all 4,357 executed configurations. Linux
x86-64 runs 1,464, stock WASI runs 1,333, the C23 supplement runs 526,
and bare Wasm runs 1,034. The supplement passes 199 tracked C23 checks.
The 84 remaining callable math symbols and the associated type-generic
families keep <math.h> and <tgmath.h> open.
C23 N3096 §§7.12.3, 7.12.6.10, 7.12.11, 7.12.12 · Compile and Wasm instruction measurements
Kbuild's compiler version probe reads the expanded text from -E -P.
cppgm -fintegrated-as uses Kbuild's existing integrated assembler
probe path. The driver accepts the assembler probe's stdin input,
supports character devices as explicit inputs, and emits -Wp,-MMD
dependency files. The compiler and linker-script preprocessing routes
share the integrated preprocessor. Assembly objects use the integrated
assembler.
The upstream x86_64_defconfig target finishes with no source-tree
changes. prepare first fails at -mno-sse, which the x86 backend
currently rejects. It also needs native -S output for the device table,
bounds, and architecture offset generators. The next backend work needs
to preserve the kernel's no-SSE and no-x87 guarantees and support the
inline assembly data directives used by those generators.
Replays of GCC's recorded commands found a GNU asm keyword gap,
case ranges, tag bindings inside anonymous aggregate members, and
pointer-sized address round trips in static initializers. Those cases
now have coverage in PA38. The assembly reducers cover juxtaposed GAS
strings, STT_OBJECT spelling, and assembler-mode token pasting in PA29
and PA30. The lib/ctype.c replay with unsupported codegen switches
removed emits the same .export_symbol payload as GCC and retains the
relocation to _ctype. The linker-script replay reaches the same GNU ld
symbol-resolution diagnostic as GCC's script when fed an empty object.
All 71 recorded assembly invocations from GCC's defconfig build expose
remaining gaps. The first diagnostics include 21 integer-expression
errors, nine allocated mergeable string sections, and 14 uses of the
16-bit or 32-bit driver modes. The entry assembly also needs register
comparisons in macro conditions. The GNU C replay reaches an immediate
operand that depends on inlining. These partial checks leave vmlinux
and the modules unbuilt, so there is no cppgm kernel compile timing.
GCC preprocessor invocation · GCC code generation options · Compile measurements
The supplement adds roundeven and the four fromfp families for
float, double and long double. The fromfp functions use the
C23 floating return types and check the requested width against the
first excluded power of two. The probes cover signed zero, halfway
values, nonfinite inputs, all five directions and widths through
UINT_MAX. The WASI SDK environment has one rounding direction and
no observable exception flags.
Both probes pass all 32 mixed cppgm and SDK Clang compile and link
configurations at -O0 and -O2. Both pass with native GCC 15 and
Clang 22 at those levels and with cppgm at -O0, -O2 and -Oz,
including Linux AArch64 under QEMU. The extracted source-only package
builds the runtime and passes the probes at -Oz -flto.
The C matrix passes all 4,365 executed configurations. Linux x86-64
runs 1,468, stock WASI runs 1,333, the supplement runs 530 and bare
Wasm runs 1,034. The supplement passes 201 tracked C23 checks. It now
provides 51 of the 120 missing math names found in SDK 34. The remaining
69 names keep <math.h> and <tgmath.h> open.
C23 N3096 §§7.12.9.8–11 · Rounding probe · Integer range probe · Compile and Wasm instruction measurements
Lowering extends a checked signed integer to the stored width expected by static conversion. The C semantic value stores a separate high word for wide integers. Static lowering uses a 128-bit value in all integer-to-floating conversions, including the binary128 path.
The PA38 regression checks negative integer initializers for all three
real types and a large unsigned value. PA38 passes 715 general tests
on native Linux x86-64 and WASI, 63 controls and seven mixed-object ABI
cases. The new regression also passes on Linux AArch64 under QEMU at
-O0, -O2, and -Oz. The clean strict report passes 11,679 tests.
Debug-info, the PA35 self-build through PA5, the PA36 smoke suite, the
architecture and placement audits, and the student export pass.
PA38 regression · Frozen compile measurements
The supplement includes the binary32 and binary64 implementations for
12 families from the pinned CORE-MATH revision. Each compiles as its
own archive member under the public C23 name. rsqrtl adapts the
binary128 integer algorithm to WASI's 64-bit carry operations and fixed
nearest-even rounding. Both source packages contain the implementations
and their notices. The source-only package builds the archive and passes
all three probes at -Oz -flto.
The three probes pass all 48 mixed cppgm and SDK Clang compile and link configurations. All 24 binary32 and binary64 functions match a 256-bit MPFR oracle on 4,096 deterministic pseudorandom inputs per function. The binary128 reciprocal-square-root test matches MPFR on 131,072 positive values, including subnormals and powers of two.
The matrix passes all 4,377 configurations. Linux x86-64 runs 1,474, stock WASI runs 1,333, supplemented WASI runs 536 and bare Wasm runs 1,034. The supplement passes 204 tracked C23 checks. This batch leaves 44 of the original 120 missing math names.
C23 N3096 §§7.12.4, 7.12.6, 7.12.7.9 · Pinned CORE-MATH sources · Compile and Wasm instruction measurements
The SDK 34 log1pl returns zero for the nonzero binary128 input
0x1p-2000L. The supplement replaces that implementation and uses the
same function for logp1l. The adapted FreeBSD range reduction retains
the residual in binary128. The other two logp1 forms use the SDK's
existing float and double implementations.
The cppgm and SDK Clang builds each match a binary128 MPFR oracle on
32,768 inputs, including subnormals and inputs close to minus one. The
new probe passes all 16 mixed WASI build and link configurations at
-O0 and -O2. It passes with GCC 15 and Clang 22 on Linux x86-64.
All four CORE-MATH and logarithm probes pass with cppgm on Linux
AArch64 under QEMU at -O0, -O2, and -Oz. The extracted source-only
archive builds the runtime and passes all four probes at -Oz -flto.
The matrix passes all 4,381 executed configurations. Linux x86-64 runs 1,476, stock WASI runs 1,333, supplemented WASI runs 538 and bare Wasm runs 1,034. The supplement passes 205 tracked C23 checks.
The archive now supplies 79 of the 120 math symbols missing from the
pinned WASI SDK. The remaining 41 and the type-generic families keep
<math.h> and <tgmath.h> open.
C23 N3096 §§7.12.6.14, F.10.3.14 · FreeBSD msun source · Natural logarithm probe
The supplement adds all 18 C23 narrowing functions. The binary64 fast path checks whether hardware arithmetic produced a binary32 midpoint. The other path uses a pinned, stateless Berkeley SoftFloat subset and an odd-rounded intermediate to preserve the side of the midpoint.
The cppgm and SDK Clang archive builds match MPFR on 239,184 outcomes
each, including 12,288 deterministic input tuples and 1,000 special
value combinations. The checked-in probe exercises exact midpoints,
both sides of midpoints, directed rounding on supported native hosts,
and fused cancellation. It passes all 16 mixed WASI compile and link
configurations, both native x86-64 reference compilers, and AArch64 under
QEMU at -O0, -O2, and -Oz.
<tgmath.h> now supplies the generic forms for completed C23 families.
The probe checks result types, mixed integer and floating arguments,
single evaluation, and function access with macro expansion suppressed.
It passes all 16 mixed WASI configurations, GCC 15 on native x86-64,
and AArch64 under QEMU at all three levels. The default native Clang
resource header omits these macros. The supplemented WASI Clang
configuration supplies them through the portable _Generic path.
The existing C11 and C17 SDK math macros pass their controls.
The two binary128 compensated logarithms use the existing log1pl
range reduction. The MPFR comparison covers 32,768 cases per function
for each archive compiler. Both bases stay within one binary128 ULP,
and the natural-logarithm results still match MPFR bit for bit. The
expanded logarithm and generic probes pass all 32 mixed WASI
configurations, and the AArch64 QEMU checks pass.
The C matrix passes 4,389 configurations. Linux x86-64 runs 1,480,
stock WASI runs 1,333, supplemented WASI runs 542 and bare Wasm runs
1,034. The supplement passes 207 tracked C23 checks. Both source
packages include the SoftFloat files and notices. The extracted
source-only archive builds at -Oz -flto and passes the narrowing,
type-generic math, and both logarithm probes.
The runtime archive supplies 99 of the 120 math symbols missing from the
pinned SDK. The 21 remaining functions and their generic forms still
keep <math.h> and <tgmath.h> open. The SDK's expm1l loses the
nonzero binary128 input 0x1p-2000L. Its powl returns one for
powl(1 + 0x1p-64L, 0x1p64L). Both cases need a binary128
implementation when extending the compensated exponentials and
power functions.
C23 N3096 §§7.12.6, 7.12.14, 7.27 · Pinned SoftFloat sources · Compile and Wasm instruction measurements
The supplement supplies exp2m1l and exp10m1l and replaces the
SDK's binary64-backed expm1l. The adapted FreeBSD kernel reduces each
argument in its original base before converting the small remainder
to a natural exponent. A 256-bit MPFR comparison covers 131,072
deterministic cases per function with each archive compiler. All
sampled outputs are within one binary128 ULP.
The supplement supplies the seven binary128 pi-scaled trigonometric functions. The forward functions reduce the binary128 significand in bounded work and pass a split angle to the pinned SDK kernels. The inverse functions use the SDK's binary128 inverse trigonometric operations and handle the axes and endpoints explicitly. On 65,536 deterministic tuples per function and archive compiler, MPFR comparisons are within one ULP for forward functions and two ULP for inverse functions. The separate runtime probe checks signed zeros, poles, and values with unit or half-unit spacing.
The three updated probes pass all 48 mixed cppgm and SDK Clang compile
and link configurations at -O0 and -O2. The direct angle probe
passes with GCC 15 and Clang 22 on Linux x86-64. All three probes pass
with cppgm on Linux AArch64 under QEMU at -O0, -O2, and -Oz.
Both source packages include the new files and the FreeBSD notice.
The extracted source-only archive builds and passes those three probes
and the narrowing arithmetic probe at -Oz -flto.
The matrix passes all 4,389 configurations. Linux x86-64 runs 1,480,
stock WASI runs 1,333, supplemented WASI runs 542, and bare Wasm runs
1,034. The supplement passes 207 tracked C23 checks. It supplies 108 of
the 120 missing math names. The three precisions of compoundn,
pown, powr, and rootn remain open along with the two math
header version macros.
C23 N3096 §§7.12.4.8–14, 7.12.6.3–6 · FreeBSD exponential source · Wasm instruction measurements
The WASI SDK 34 supplement supplies all three precisions of
compoundn, pown, powr, and rootn with their type-generic
forms. The SDK declares exp10 under its GNU extension gate. The
supplement exposes its three C23 declarations and generic form and
extends exp10l to the binary128 range. The archive now supplies all
120 C23 math names found missing in the pinned SDK. The math and
type-generic math headers supply their C23 version macros.
The power functions use existing logarithm reduction and exponential
tables. They preserve the residual of 1 + x, integer parity through
LLONG_MAX, and subnormal results. The cppgm and SDK Clang archives
produce identical results on 65,536 deterministic MPFR comparisons
per binary128 power function. All samples are within one ULP. A
separate 131,072-case comparison finds exp10l within one ULP.
The stock SDK also narrows the inputs of expl, logl, log2l,
log10l, and powl to binary64. The supplement uses the existing
binary128 kernels for these entry points. The archive builds agree
with MPFR within one ULP for expl and bit for bit for the three
logarithms across 131,072 deterministic inputs each. The sampled
positive-base powl outputs agree with the checked powrl results.
The four power and logarithm probes pass 64 mixed cppgm and SDK Clang
compile and link configurations. The binary128 range probe passes
another 64 mixed configurations spanning C99, C11, C17, and C23.
The new range and math reporting probes pass with GCC 15 and Clang 22
on Linux x86-64 and with cppgm on Linux AArch64 under QEMU. Seven
probes pass at -Oz -flto from the extracted source-only archive.
The two matrix replays pass all 5,911 executed configurations. They
cover 1,498 each on Linux x86-64 and Linux AArch64 under QEMU, 1,333 on
stock WASI, 548 on the WASI supplement, and 1,034 on bare Wasm. The supplement passes 211 tracked C23
requirements. Its remaining uncovered requirement is hosted math
error reporting. The SDK advertises MATH_ERREXCEPT and omits
FE_INVALID, FE_DIVBYZERO, and FE_OVERFLOW. The focused probe
reproduces this in both WASI configurations.
On the glibc 2.43 Linux x86-64 replay, the uncovered C23 requirement
is WCHAR_WIDTH when only <wchar.h> is included. GCC 15 and
Clang 22 both reproduce the omission and report 32 when including
<stdint.h>.
C23 N3096 §§7.12, 7.12.6–7, 7.27, 7.31.1 · Runtime and compile instruction measurements
With WASI SDK 34, remquol(1 + 0x1p-64L, 0.5L, "ient) loses the
small remainder. For 1.25 + 0x1p-64L and the same divisor, it
selects the wrong quotient. The supplement computes remquol and
remainderl from the integer significands. It preserves signed zero
and the three required low quotient bits. The regression exercises
halfway cases, negative divisors, subnormals, and the largest finite
input.
Both runtime compiler builds agree with an independent integer oracle
on all 65,536 sampled operand pairs across the binary128 exponent
range. The probe passes all 16 mixed WASI compile and link
configurations. It also passes with GCC 15 and Clang 22 on Linux
x86-64 across C99, C11, C17, and C23 and with cppgm on Linux AArch64
under QEMU. The extracted source-only archive passes eight math
probes at -Oz -flto.
The combined matrix passes all 5,929 executed configurations. Linux x86-64 and Linux AArch64 under QEMU each run 1,506, stock WASI runs 1,333, the WASI supplement runs 550, and bare Wasm runs 1,034. The supplement passes 212 of its tracked C23 requirements, with hosted math error reporting still uncovered. Native macOS qualification remains open.
C23 N3096 §§7.12.10.2–3, F.10.7.2–3 · Wasm instruction measurements
The supplement reports domain, pole, and overflow errors through
errno in its math implementations. It uses the SDK's exceptional
result helpers for inherited functions that already call them. The
square-root entry points share an archive member with the other
scalar math intrinsics, and the replacement supplies the full member.
The C23 probe also checks that finite, exact infinite, and quiet NaN
results preserve errno where the operation has no additional error.
The probe passes all 16 mixes of cppgm and SDK Clang archive builders,
client compilers, and linkers at -O0 and -O2. It includes both
sides of the binary32 overflow midpoint. The earlier MPFR-checked
corpus matches bit for bit for narrowing and matches all numeric
power outcomes, including signed zeros. The cppgm archive can
produce a different NaN encoding for domain failures. The extracted
source-only archive passes nine math probes at -Oz -flto.
The combined replay passes 5,931 configurations. It covers 1,506 each on Linux x86-64 and Linux AArch64 under QEMU, 1,333 on stock WASI, 552 on supplemented WASI, and 1,034 on bare Wasm. The supplement passes 213 tracked C23 requirements.
Hosted math error reporting remains open. A separate 76-case audit
of inherited SDK entry points reaches 32 expected errno outcomes
with the supplement, up from six with stock SDK 34. Uncovered cases
include exp(710), the domain boundary of acosh, and overflow in
ldexp and hypot. The header still reports the SDK's exception
mode. Direct calls also need checking before qualifying the errno
mode. On native Linux, cppgm, GCC 15, and Clang 22 all retain
ERANGE for indirect pow(DBL_MAX, 2.0) at -O2 and elide it
for the corresponding direct call with a literal exponent and a
volatile base.
WASI SDK 34 scalar math member · C23 N3096 §§7.12p20, 7.12.1 · Wasm instruction measurements
The WASI supplement reports ERANGE at the finite overflow boundary
for exp, expm1, expm1f, exp10, exp10f, and exp2l. Its
scalbn variants also cover ldexp and scalbln through the SDK's existing
calls. The binary128 regression includes an SDK exp2l input that rounded
to zero even though the correct result is a nonzero subnormal. PA37 checks
the C driver's __wasip1__ macro by including <wasi/api.h> and verifying
that the SDK's direct errno declaration and accessor identify the same
object.
The exponential corpus compares 131,072 values per function against MPFR.
Both archive builds agree on every result. The five binary32 and binary64
functions match SDK 34 bit for bit in the corpus. Their maximum observed
errors are one ULP for exp, expm1, and expm1f, four for exp10, and
three for exp10f. The binary128 exp2l results are exact for 130,512 inputs
and within one ULP for the other 560. Both archive builds match an exact
integer scaling oracle on 65,536 cases per precision, including the
returned bits and errno.
The supplemental errno probe passes all 16 mixes of archive builders,
client compilers, and linkers at -O0 and -O2. The extracted source-only
archive passes nine math probes at -Oz -flto. The inherited SDK audit
now records 46 of 76 expected outcomes, from 32 before this batch and six
with stock SDK 34. Uncovered cases include domain errors in acosh and
overflow in hypot. Hosted math error reporting remains uncovered under
the SDK's advertised exception mode.
The combined replay passes all 5,931 configurations at 15921ccd4.
Linux x86-64 and Linux AArch64 under QEMU each run 1,506, stock WASI
runs 1,333, the WASI supplement runs 552, and bare Wasm runs 1,034.
The supplement passes 213 tracked C23 requirements. Native macOS
qualification remains open.
WASI SDK 34 exp kernel ·
WASI SDK 34 exp2l implementation ·
Wasm instruction measurements
The supplement now reports domain and pole errors through errno in
log10, log1p, acosh, and atanh at the supported precisions. The
binary32 and binary64 logarithms share their reduction and polynomial
within each precision. The C23 logp1 spellings use the same paths.
The inherited audit reaches 55 of 76 expected outcomes, up from 46.
SDK 34 can return a finite value for acosh(-0x1.a17e45b8ac257p+22).
The supplemental implementation returns NaN and reports EDOM. The
SDK's acoshl converts its argument to double. The supplement uses
binary128 arithmetic, including near one and beyond DBL_MAX.
Both archive builds match MPFR within one ULP for the sampled finite
logarithms and within two ULPs for the sampled inverse hyperbolic
functions. The corpus has 131,072 inputs per function. The two archive
builds agree on all numeric outputs, including signs of zeros and
infinities. In acoshl, the stock SDK returned zero for 1,998 finite
nonzero results and infinity for 3,893 finite results in the corpus.
The supplement returns the expected classification for every sample.
All 16 mixed WASI configurations pass the errno probe. The direct calls
pass at -O0 and -O2 with cppgm and with SDK Clang using
-fmath-errno. SDK Clang's default WASI mode can omit the errno reload
for a direct log1p call. Hosted math error reporting remains uncovered.
WASI SDK 34 log1p ·
WASI SDK 34 acoshl ·
Wasm instruction measurements
C uses the target's thread-local storage addressing directly. The old cppgm Mach-O objects referenced a C++ initialization wrapper that Clang C providers did not define. Both Intel and Apple Silicon now emit the expected thread-local variable descriptor relocations for external C objects. The PA38 fixture accesses a host-defined thread-local object and passes a cppgm-defined thread-local object back to the host compiler.
The fixture runs on Linux x86-64 with GCC and Clang providers, Linux
AArch64 under QEMU, and WASI with both linkers. It cross-links on Intel
macOS and Apple Silicon. Separate mixed-object cross-links confirm
that Clang C++ callers can still use cppgm C definitions on Darwin.
The direct and LowIR round-trip objects match at -O0 on all five targets.
Native execution on both macOS targets remains open.
The combined replay at 3cdeea35b passes 5,931 configurations across
Linux x86-64, Linux AArch64 under QEMU, stock WASI, supplemented WASI,
and bare Wasm. The extracted source-only archive passes all nine math
probes at -Oz -flto.
PA38 mixed-object fixture · C11 N1570 §§6.2.4, 6.7.1 · Compile instruction measurements
The supplement reports EDOM for infinite arguments to sin, cos,
and tan, and for arguments outside [-1, 1] to asin and acos.
All three precisions preserve the caller's error number for valid
arguments and quiet NaNs. The implementation uses the SDK's reduced-angle
kernels and shares the inverse polynomial within each precision.
At this point both archive builds passed 70 of 76 inherited math audit cases, up from 55. Six finite overflow cases passed in the next batch. Hosted math reporting remains uncovered in the target matrix. Overflow results
Both builds match MPFR within one ULP on 65,536 samples per function
across all 15 functions. They agree on every numeric result. Compared
with SDK 34, the correctly rounded acosf results increase from 24,029
to 30,906 after correcting the constants returned at zero and at −1.
The correctly rounded tanl results increase from 59,083 to 59,604
after tightening the interval where the input itself is returned. The
other 13 functions match the SDK on every sampled numeric result.
At -O2, cppgm previously reused a value stored to the SDK's direct
errno symbol before a math call. The same bug affected a byte load
through an opaque pointer. PA33 now checks that LowIR preserves the
reads. All 16 mixed WASI compile and link configurations pass the
runtime probe. SDK Clang client builds use -fmath-errno for direct calls.
The replay at 2c87b27ca passes 5,931 configurations, including 1,506
each on Linux x86-64 and Linux AArch64 under QEMU, 1,333 on stock WASI,
552 on supplemented WASI, and 1,034 on bare Wasm. The Linux AArch64
and combined-host receipts use the same compiler binary and match all
41 generated input digests. The extracted source-only archive passes
all nine math probes at -Oz -flto.
A native repro showed an errno reset between sin(INFINITY) and
cos(INFINITY) producing two EDOM values at -O0. At -O2,
cppgm combined the calls into GNU sincos and the second read yielded
zero. GCC 15 also combined these calls at -O2 with -fmath-errno,
and both reads yielded zero. The subsequent PA33 fix preserves both
error updates. Native validation
PA33 error number fixture · WASI SDK 34 trigonometric sources · Wasm instruction measurements
Both supplemental archive builds pass all 76 inherited math audit
cases. The last six cases cover finite overflow in hypot, hypotf,
hypotl, fmaf, sinhl, and coshl. The integration probe checks
both signs where applicable, exact infinities, signed zeros, and
adjacent finite and overflowing binary128 arguments. All 16 mixed
compile and link configurations pass. Direct calls pass in C99, C11,
C17, and C23 at -O0 and -O2. The replay at 52f6bb77c
passes all 5,931 configurations across Linux x86-64, Linux AArch64
under QEMU, stock WASI, supplemented WASI, and bare Wasm. An
archive built from the extracted source-only package passes all nine
math probes at -Oz -flto.
Both builds agree on all sampled numeric results. On 196,608
binary32 triples, fmaf matches MPFR exactly. The SDK rounds one
normal–subnormal boundary case to the smallest normal. The supplement
recovers the direction of the unrounded double-precision sum and
returns the largest subnormal. On 65,536 inputs per function,
hypotf matches MPFR exactly, correcting 1,904 SDK results. The
binary64 and binary128 norms match the SDK on this corpus and stay
within one ULP of MPFR.
The SDK implements sinhl and coshl by conversion to binary64. The
supplement computes in binary128 and matches the classification of
every MPFR sample. The stock SDK returns infinity for 4,239 finite
sinhl results and for 4,239 finite coshl results. It also returns
zero for 4,800 finite nonzero sinhl results. The maximum sampled
errors with the supplement are two ULPs for sinhl and one ULP for
coshl.
An expanded probe observed missing error-number updates in the SDK's remainder, positive difference, adjacent-value, and gamma functions. These cases include errors that the standard leaves optional or implementation-defined. The next batch covers positive difference and adjacent values. C23 N3096 §7.12 · Adjacent-value and difference results
WASI SDK 34 fmaf ·
WASI SDK 34 coshl ·
Wasm instruction measurements
GNU sincos call fusion now checks writes that can reach the error
number. The optimizer keeps each call's error update when a store,
callback, or other math call can change errno on an intervening path.
The proof uses the effective call effects and the alias guarantees on
typed stores. Fusion still applies across verified disjoint writes and
when ordinary calls share an argument across blocks.
The PA33 hosted regression checks adjacent calls, conditional stores,
a non-inlined reset, an overflowing call to exp, and writes through
unsigned char *. The original compiler fails the adjacent-call case.
Clang 22 with -fmath-errno agrees with cppgm's corrected x86-64
execution. AArch64 under QEMU produces the same results at -O0,
-O2, and -O3.
PA33 hosted fixture · Compile instruction measurements
The supplement reports ERANGE for finite overflow in nextafter,
nexttoward, and fdim in all three precisions. The C23 nextup and
nextdown functions preserve errno on the corresponding steps to
infinity. The runtime probe exercises signed zero, the smallest
subnormal, equal infinities, NaNs, and a nexttoward target that loses
its direction when converted to float or double. All 16 mixed WASI
configurations pass the direct and indirect calls. Each final archive
also passes the 76 inherited math audit cases. The replay at
48e4f634c passes 5,931 configurations. The extracted source-only
package passes all nine math probes at -Oz -flto.
On 65,536 operand pairs per precision, all tested result bits match
glibc and libquadmath. The comparisons cover nextafter, nextup,
nextdown, and fdim. The error-number probe covers the wider-target
nexttoward cases separately.
C23 N3096 §§7.12.11.3–6, 7.12.12.1 · Wasm instruction measurements
fmod, remainder, and remquo report EDOM for a zero divisor
or infinite dividend in all three precisions. They preserve signed zero,
propagate quiet NaNs, and retain the sign and low three bits of the
remquo quotient. Both archive builds match glibc and libquadmath on
16,384 operand pairs per precision. The scalar significand division
processes several quotient bits per step.
C23 N3096 §§7.12.10.1–3
The PA33 hosted test catches lost ERANGE from fixed-exponent powers.
The optimizer uses multiplication or division when the encoded input
proves a normal result. Inputs near a pole, overflow or underflow reach
libm. The restructuring shares the square-root guard pass and visits
each original block once when inserting its guards. The direct repro
passes at -O0, -O2, -O3, and -Oz on Linux x86-64, AArch64
under QEMU, and WASI.
PA33 hosted fixture
The supplement restores error reporting for negative powers of signed
zero and overflow at the upper rounding boundary. powf keeps the
range handling on a cold path and uses the pinned SDK coefficients
as constants. After normalizing NaNs, both archives match SDK 34 on
65,897 input pairs per precision. All 16 combinations of archive
builder, client compiler, linker, and optimization level pass, and
each archive passes the 76 inherited error-number probes.
WASI SDK 34 pow ·
WASI SDK 34 powf ·
Compile and runtime instruction measurements
The replay at f67c98382 passes 5,931 configurations and uses the
same 41 generated input hashes across native, WASI and bare Wasm.
The final powf hot-path change at 3f87934d7 passes all 552
supplemented WASI configurations with the same compiler and inputs.
The source-only archive at that revision builds the supplement with
-Oz -flto and passes all nine math probes. The source-with-tests
archive includes the new PA33 fixture. The strict suite passes all
11,683 tests, and the exported PA33 fixture passes using its
packaged reference compiler.
The SDK-derived gamma functions at that checkpoint leave errno unchanged
for finite overflow. The inherited binary128 functions return infinity for
inputs with finite binary128 results, including tgammal(200.0L) and
lgammal(0x1p4000L). The SDK exponent queries produce the required sentinel
values and leave errno unchanged. These cases are covered in the following
replay.
C23 N3096 §§7.12.6.8, 7.12.6.10, 7.12.8.3–4
The exponent query families report their range or domain errors in all
three precisions. A leading-bit calculation computes subnormal exponents
directly. The gamma functions report finite overflow and poles, and
tgamma reports domain errors for negative integers. The scalar gamma
functions keep the SDK reductions. The binary128 functions use the Arm
Optimized Routines and FreeBSD msun reductions, preserving finite results
beyond the binary64 input and output ranges.
Arm binary128 true gamma ·
FreeBSD binary128 log gamma
Both archive builders produce matching results on 11,328 binary128
inputs after normalizing NaNs. Compared with a 384-bit MPFR oracle,
tgammal is within five ULPs, including the overflow boundary, and
lgammal is within two ULPs on the positive inputs. Cancellation near
negative roots of lgammal raises the sampled error to 151 ULPs. The
sampled absolute error for cases above 16 ULPs stays below
1.5 × 10⁻³⁴. The comparisons include subnormals, exact poles,
large powers of two, and both sides of the signed underflow range.
An indirect sweep of 261 domain, pole, overflow, and exact-special
cases passes with both archive builders. The corresponding direct CPPGM
calls pass at -O0, -O2, -O3, and -Oz. The maintained probe
passes all 16 combinations of archive builder, client compiler, linker,
and optimization level. The supplement advertises MATH_ERRNO, and
the standard reporting probe passes at both optimization levels in the
conformance runner.
Standard reporting probe ·
Supplemental error-path probe
The conformance replay at 94c6e454c passes all 5,933 executed
configurations with matching compiler and generated input hashes.
The supplemented C23 profile passes all 214 applicable tracked
requirements, including hosted math error reporting. Its remaining
seven entries are inapplicable to the profile. The separate stock
SDK profile has 63 uncovered C23 entries. The final scalar gamma
optimization at 158312a46 passes the same 554 supplemented WASI
configurations. The extracted source-only package builds at
-Oz -flto and passes all ten math probes with the new notices
installed beside the archive.
C23 N3096 §§7.12p20, 7.12.1, 7.12.6, 7.12.8 ·
Instruction measurements