On Sat, 17 Oct 2026 at 17:20, Bourbon Yang <[email protected]> wrote: > > Hi, > > In freestanding mode, <memory> includes <bits/indirect.h> under C++26, > but the header was previously categorized under hosted bits_headers, > causing compilation failures due to missing header in freestanding > installations (PR libstdc++/127476). > > This patch moves <bits/indirect.h> to the bits_freestanding list in > libstdc++-v3/include/Makefile.am and regenerates Makefile.in. > > Tested on x86_64-linux, verified that bits/indirect.h is now correctly > generated into the freestanding include tree, and all tests under > 20_util/memory/* pass. > > Please let me know if any adjustment is needed.
The patch looks good, thanks. I'll take care of pushing it. > > Thanks, > Bourbon Yang > > libstdc++-v3/ChangeLog: > > PR libstdc++/127476 > * include/Makefile.am (bits_freestanding): Add indirect.h. > (bits_headers): Remove indirect.h. > * include/Makefile.in: Regenerate.
