public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/cygwin-acl] Add FreeBSD style changes to sys/cdefs.h
@ 2015-10-22 15:38 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2015-10-22 15:38 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c35d7c4f59f42138c2efc63e2dc62a26ddbb8f26
commit c35d7c4f59f42138c2efc63e2dc62a26ddbb8f26
Author: Jeff Johnston <jjohnstn@redhat.com>
Date: Tue Oct 13 17:46:47 2015 -0400
Add FreeBSD style changes to sys/cdefs.h
* libc/include/sys/cdefs.h: Add style changes of latest FreeBSD
version.
Diff:
---
newlib/ChangeLog | 5 ++++
newlib/libc/include/sys/cdefs.h | 64 ++++++++++++++++++++---------------------
2 files changed, 37 insertions(+), 32 deletions(-)
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index a19a908..3b29078 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * libc/include/sys/cdefs.h: Add style changes of latest FreeBSD
+ version.
+
2015-08-29 Corinna Vinschen <corinna@vinschen.de>
* include/sys/unistd.h (_SC_LEVEL*): Add cache-related variables as
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index f1747d0..d952ff6 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -100,33 +100,33 @@
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
#if __GNUC__ >= 3 || defined(__INTEL_COMPILER)
-#define __GNUCLIKE_ASM 3
-#define __GNUCLIKE_MATH_BUILTIN_CONSTANTS
+#define __GNUCLIKE_ASM 3
+#define __GNUCLIKE_MATH_BUILTIN_CONSTANTS
#else
-#define __GNUCLIKE_ASM 2
+#define __GNUCLIKE_ASM 2
#endif
-#define __GNUCLIKE___TYPEOF 1
-#define __GNUCLIKE___OFFSETOF 1
-#define __GNUCLIKE___SECTION 1
+#define __GNUCLIKE___TYPEOF 1
+#define __GNUCLIKE___OFFSETOF 1
+#define __GNUCLIKE___SECTION 1
#ifndef __INTEL_COMPILER
-# define __GNUCLIKE_CTOR_SECTION_HANDLING 1
+#define __GNUCLIKE_CTOR_SECTION_HANDLING 1
#endif
-#define __GNUCLIKE_BUILTIN_CONSTANT_P 1
-# if defined(__INTEL_COMPILER) && defined(__cplusplus) \
- && __INTEL_COMPILER < 800
-# undef __GNUCLIKE_BUILTIN_CONSTANT_P
-# endif
+#define __GNUCLIKE_BUILTIN_CONSTANT_P 1
+#if defined(__INTEL_COMPILER) && defined(__cplusplus) && \
+ __INTEL_COMPILER < 800
+#undef __GNUCLIKE_BUILTIN_CONSTANT_P
+#endif
#if (__GNUC_MINOR__ > 95 || __GNUC__ >= 3) && !defined(__INTEL_COMPILER)
-# define __GNUCLIKE_BUILTIN_VARARGS 1
-# define __GNUCLIKE_BUILTIN_STDARG 1
-# define __GNUCLIKE_BUILTIN_VAALIST 1
+#define __GNUCLIKE_BUILTIN_VARARGS 1
+#define __GNUCLIKE_BUILTIN_STDARG 1
+#define __GNUCLIKE_BUILTIN_VAALIST 1
#endif
#if defined(__GNUC__)
-# define __GNUC_VA_LIST_COMPATIBILITY 1
+#define __GNUC_VA_LIST_COMPATIBILITY 1
#endif
/*
@@ -137,23 +137,23 @@
#endif
#ifndef __INTEL_COMPILER
-# define __GNUCLIKE_BUILTIN_NEXT_ARG 1
-# define __GNUCLIKE_MATH_BUILTIN_RELOPS
+#define __GNUCLIKE_BUILTIN_NEXT_ARG 1
+#define __GNUCLIKE_MATH_BUILTIN_RELOPS
#endif
-#define __GNUCLIKE_BUILTIN_MEMCPY 1
+#define __GNUCLIKE_BUILTIN_MEMCPY 1
/* XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced */
-#define __CC_SUPPORTS_INLINE 1
-#define __CC_SUPPORTS___INLINE 1
-#define __CC_SUPPORTS___INLINE__ 1
+#define __CC_SUPPORTS_INLINE 1
+#define __CC_SUPPORTS___INLINE 1
+#define __CC_SUPPORTS___INLINE__ 1
-#define __CC_SUPPORTS___FUNC__ 1
-#define __CC_SUPPORTS_WARNING 1
+#define __CC_SUPPORTS___FUNC__ 1
+#define __CC_SUPPORTS_WARNING 1
-#define __CC_SUPPORTS_VARADIC_XXX 1 /* see varargs.h */
+#define __CC_SUPPORTS_VARADIC_XXX 1 /* see varargs.h */
-#define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1
+#define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1
#endif /* __GNUC__ || __INTEL_COMPILER */
@@ -368,9 +368,9 @@
#endif
#if __GNUC_PREREQ__(3, 3)
-#define __nonnull(x) __attribute__((__nonnull__(x)))
+#define __nonnull(x) __attribute__((__nonnull__(x)))
#else
-#define __nonnull(x)
+#define __nonnull(x)
#endif
#if __GNUC_PREREQ__(3, 4)
@@ -433,11 +433,11 @@
* larger code.
*/
#if __GNUC_PREREQ__(2, 96)
-#define __predict_true(exp) __builtin_expect((exp), 1)
-#define __predict_false(exp) __builtin_expect((exp), 0)
+#define __predict_true(exp) __builtin_expect((exp), 1)
+#define __predict_false(exp) __builtin_expect((exp), 0)
#else
-#define __predict_true(exp) (exp)
-#define __predict_false(exp) (exp)
+#define __predict_true(exp) (exp)
+#define __predict_false(exp) (exp)
#endif
#if __GNUC_PREREQ__(4, 2)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-22 15:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 15:38 [newlib-cygwin/cygwin-acl] Add FreeBSD style changes to sys/cdefs.h Corinna Vinschen
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).