Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2015 16:43:56 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r281469 - head/sys/sys
Message-ID:  <201504121643.t3CGhub1091039@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504121643.t3CGhub1091039>