svn commit: r316779 - stable/11/sys/sys
Pedro F. Giffuni
pfg at FreeBSD.org
Thu Apr 13 18:28:41 UTC 2017
Author: pfg
Date: Thu Apr 13 18:28:40 2017
New Revision: 316779
URL: https://svnweb.freebsd.org/changeset/base/316779
Log:
Temporarily revert r315602.
Bring back the definition for the GCC __nonnull() attribute.
Old versions of GCC, including the version installed the latest 11-stable
snapshot with pkg(8), still carry the old attributes.
The issue is easily fixed by rebuilding GCC but there is no need to cause
havoc in our user base. The definition by itself is harmless but it should
be removed again in the near future.
Modified:
stable/11/sys/sys/cdefs.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/sys/cdefs.h
==============================================================================
--- stable/11/sys/sys/cdefs.h Thu Apr 13 18:13:10 2017 (r316778)
+++ stable/11/sys/sys/cdefs.h Thu Apr 13 18:28:40 2017 (r316779)
@@ -376,6 +376,14 @@
#define __noinline
#endif
+#if __GNUC_PREREQ__(3, 3)
+#define __nonnull(x) __attribute__((__nonnull__(x)))
+#define __nonnull_all __attribute__((__nonnull__))
+#else
+#define __nonnull(x)
+#define __nonnull_all
+#endif
+
#if __GNUC_PREREQ__(3, 4)
#define __fastcall __attribute__((__fastcall__))
#define __result_use_check __attribute__((__warn_unused_result__))
More information about the svn-src-stable-11
mailing list