From: Arsen Arsenovic Date: Mon, 17 Oct 2022 06:58:07 +0000 (+0200) Subject: elf: ELF toolchain --without-{headers, newlib} should provide stdint.h X-Git-Tag: basepoints/gcc-14~3885 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f10b9f64133cbfb5ba06f4deb23766f92629bdd9;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/config.gcc b/gcc/config.gcc index 8d5972fecf7a..2af30b4a6ecc 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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