svn commit: r281469 - head/sys/sys

Pedro F. Giffuni pfg at FreeBSD.org
Sun Apr 12 16:43:57 UTC 2015


Author: pfg
Date: Sun Apr 12 16:43:55 2015
New Revision: 281469
URL: https://svnweb.freebsd.org/changeset/base/281469

Log:
  Add definition for the gcc gnu_inline attribute.
  
  This uses a non-standard (who would guess that) inlining method
  that is useful for legacy GNU software. This attribute was added
  in GCC 4.1.3. Older versions of clang would just ignore the
  attribute but as lately it is supported also there.
  
  This is currently unused but it is required for the
  FORTIFY_SOURCE extension.

Modified:
  head/sys/sys/cdefs.h

Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h	Sun Apr 12 15:08:41 2015	(r281468)
+++ head/sys/sys/cdefs.h	Sun Apr 12 16:43:55 2015	(r281469)
@@ -375,8 +375,10 @@
 #endif
 
 #if __GNUC_PREREQ__(4, 1)
+#define	__gnu_inline	__attribute__((__gnu_inline__))
 #define	__returns_twice	__attribute__((__returns_twice__))
 #else
+#define	__gnu_inline
 #define	__returns_twice
 #endif
 


More information about the svn-src-all mailing list