[PATCH] libstdc++: Install <bits/indirect.h> for freestanding builds [PR127476]
Bourbon Yang
bin.macchiato@gmail.com
Sat Oct 17 16:19:50 GMT 2026
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.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libstdc-Install-bits-indirect.h-for-freestanding-bui.patch
Type: application/octet-stream
Size: 2455 bytes
Desc: 0001-libstdc-Install-bits-indirect.h-for-freestanding-bui.patch
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261017/df829afd/attachment.obj>
More information about the Libstdc++
mailing list