From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: newlib@sourceware.org
Subject: [PATCH 6/6] cdefs.h: Remove redundant #ifdefs
Date: Mon, 11 Jul 2022 09:15:47 +0200 [thread overview]
Message-ID: <20220711071547.106142-7-sebastian.huber@embedded-brains.de> (raw)
In-Reply-To: <20220711071547.106142-1-sebastian.huber@embedded-brains.de>
From: Warner Losh <imp@FreeBSD.org>
Remove redunant #ifdef __GNUC__ inside an #if defined(__GNUC__)
block. They are nops.
Sponsored by: Netflix
---
newlib/libc/include/sys/cdefs.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index b3508f3a9..720e70092 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -122,16 +122,12 @@
#define __GNUCLIKE_BUILTIN_VAALIST 1
#endif
-#if defined(__GNUC__)
#define __GNUC_VA_LIST_COMPATIBILITY 1
-#endif
/*
* Compiler memory barriers, specific to gcc and clang.
*/
-#if defined(__GNUC__)
#define __compiler_membar() __asm __volatile(" " : : : "memory")
-#endif
#define __GNUCLIKE_BUILTIN_NEXT_ARG 1
#define __GNUCLIKE_MATH_BUILTIN_RELOPS
--
2.35.3
prev parent reply other threads:[~2022-07-11 7:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 7:15 [PATCH 0/6] Synchronize <sys/cdefs.h> with FreeBSD Sebastian Huber
2022-07-11 7:15 ` [PATCH 1/6] cdefs.h: remove intel_compiler support Sebastian Huber
2022-07-11 8:32 ` Corinna Vinschen
2022-07-11 9:10 ` Sebastian Huber
2022-07-11 9:43 ` Corinna Vinschen
2022-07-11 7:15 ` [PATCH 2/6] Expose clang's alignment builtins and use them for roundup2/rounddown2 Sebastian Huber
2022-07-11 7:15 ` [PATCH 3/6] cdefs.h: Remove __GNUCLIKE___OFFSETOF, it's unused Sebastian Huber
2022-07-11 7:15 ` [PATCH 4/6] cdefs: Make __nosanitizeaddress work for KASAN as well Sebastian Huber
2022-07-11 7:15 ` [PATCH 5/6] cdefs: Add a default definition for __nosanitizememory Sebastian Huber
2022-07-11 7:15 ` Sebastian Huber [this message]
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=20220711071547.106142-7-sebastian.huber@embedded-brains.de \
--to=sebastian.huber@embedded-brains.de \
--cc=newlib@sourceware.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: link
Be 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).