public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3322] elf: ELF toolchain --without-{headers, newlib} should provide stdint.h Date: Mon, 17 Oct 2022 06:59:46 +0000 (GMT) [thread overview] Message-ID: <20221017065946.2FF453858D39@sourceware.org> (raw) https://gcc.gnu.org/g:f10b9f64133cbfb5ba06f4deb23766f92629bdd9 commit r13-3322-gf10b9f64133cbfb5ba06f4deb23766f92629bdd9 Author: Arsen Arsenovic <arsen@aarsen.me> Date: Mon Oct 17 08:58:07 2022 +0200 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: --- gcc/config.gcc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index 8d5972fecf7..2af30b4a6ec 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
reply other threads:[~2022-10-17 6:59 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221017065946.2FF453858D39@sourceware.org \ --to=rguenth@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).