public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1461] [Ada] Small cleanup in exception handling C code Date: Tue, 15 Jun 2021 10:21:37 +0000 (GMT) [thread overview] Message-ID: <20210615102137.2C7D6398B414@sourceware.org> (raw) https://gcc.gnu.org/g:385484ef92f34ff7b420312927aaa174e5a8a696 commit r12-1461-g385484ef92f34ff7b420312927aaa174e5a8a696 Author: Eric Botcazou <ebotcazou@adacore.com> Date: Tue Feb 9 12:52:08 2021 +0100 [Ada] Small cleanup in exception handling C code gcc/ada/ * raise-gcc.c: Include <cstdarg> instead of <stdarg.h> in C++. Include <stdbool.h> and unconditionally <stdlib.h> in C. Diff: --- gcc/ada/raise-gcc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gcc/ada/raise-gcc.c b/gcc/ada/raise-gcc.c index bbedee50960..5c3adbdb302 100644 --- a/gcc/ada/raise-gcc.c +++ b/gcc/ada/raise-gcc.c @@ -48,14 +48,13 @@ # endif #endif -#include <stdarg.h> - #ifdef __cplusplus +# include <cstdarg> # include <cstdlib> #else -typedef char bool; -# define true 1 -# define false 0 +# include <stdarg.h> +# include <stdbool.h> +# include <stdlib.h> #endif #include "raise.h" @@ -123,7 +122,6 @@ extern void __gnat_raise_abort (void) __attribute__ ((noreturn)); #define abort() __gnat_raise_abort() #elif defined(STANDALONE) -#include <stdlib.h> #define inhibit_libc #endif
reply other threads:[~2021-06-15 10:21 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=20210615102137.2C7D6398B414@sourceware.org \ --to=pmderodat@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).