]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make <cstdint> work freestanding [PR107134]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 3 Oct 2022 20:49:27 +0000 (21:49 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 4 Oct 2022 14:03:28 +0000 (15:03 +0100)
commit7cdab65f3d770345903023f357b6ca96bc85a002
treede3f5a6ba651e98e074d40937684dfb37ce83f57
parent7d8189882fc89f6f410fc9bcf0f8226787316f83
libstdc++: Make <cstdint> work freestanding [PR107134]

When gcc/config.gcc defines use_gcc_stdin=wrap, GCC's <stdint.h> tries
to use libc's <stdint.h> unless -ffreestanding is used.

When libstdc++ is configured --disable-hosted-libstdcxx we want
<cstdint> to work even without -ffreestanding being given. This is a
kluge to make it include GCC's <stdint-gcc.h> directly even without
-ffreestanding.

libstdc++-v3/ChangeLog:

PR libstdc++/107134
* include/c_global/cstdint [!_GLIBCXX_HOSTED]: Include
<stdint-gcc.h> directly.
libstdc++-v3/include/c_global/cstdint