elf: ELF toolchain --without-{headers, newlib} should provide stdint.h

stdint.h is considered a freestanding headers by C, and a valid stdint.h
is required for certain parts of libstdc++' configuration, so we should
simply provide one when we have no other way (i.e. newlib or
user-specified sysroot) of getting one.

	* config.gcc: --target=*-elf --without-{newlib,headers} should
	provide stdint.h.
This commit is contained in:
Arsen Arsenovic 2022-10-17 08:58:07 +02:00 committed by Richard Biener
parent fd206f0e95
commit f10b9f6413

View file

@ -1082,6 +1082,11 @@ case ${target} in
# Assume that newlib is being used and so __cxa_atexit is provided.
default_use_cxa_atexit=yes
use_gcc_stdint=wrap
case "${with_newlib}-${with_headers}" in
no-no) use_gcc_stdint=provide ;;
*) ;;
esac
;;
esac