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.

Attachment: 0001-libstdc-Install-bits-indirect.h-for-freestanding-bui.patch
Description: 0001-libstdc-Install-bits-indirect.h-for-freestanding-bui.patch

Reply via email to