Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2017 20:44:32 +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: r311896 - head/sys/sys
Message-ID:  <201701102044.v0AKiWl9073266@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Tue Jan 10 20:44:31 2017
New Revision: 311896
URL: https://svnweb.freebsd.org/changeset/base/311896

Log:
  Remove unused __gnu_inline() attribute.
  
  This was meant to be used by a future FORTIFY_SOURCE implementation.
  Probably for good, FORTIFY_SOURCE and this particular GCCism were never
  well supported by clang or other compilers. Furthermore, the technology
  has long since been replaced by either static checkers, sanitizers, or
  even just the strong stack protector that was enabled by default.
  
  Drop __gnu_inline to avoid cluttering the headers.
  
  MFC after:	5 days

Modified:
  head/sys/sys/cdefs.h

Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h	Tue Jan 10 20:43:32 2017	(r311895)
+++ head/sys/sys/cdefs.h	Tue Jan 10 20:44:31 2017	(r311896)
@@ -543,22 +543,6 @@
 	    __attribute__((__format__ (__strftime__, fmtarg, firstvararg)))
 #endif
 
-/*
- * FORTIFY_SOURCE, and perhaps other compiler-specific features, require
- * the use of non-standard inlining.  In general we should try to avoid
- * using these but GCC-compatible compilers tend to support the extensions
- * well enough to use them in limited cases.
- */ 
-#if defined(__GNUC_GNU_INLINE__) || defined(__GNUC_STDC_INLINE__)
-#if __GNUC_PREREQ__(4, 3) || __has_attribute(__artificial__)
-#define	__gnu_inline	__attribute__((__gnu_inline__, __artificial__))
-#else
-#define	__gnu_inline	__attribute__((__gnu_inline__))
-#endif /* artificial */
-#else
-#define	__gnu_inline
-#endif
-
 /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */
 #if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version >= 300001 && \
     defined(__GNUC__) && !defined(__INTEL_COMPILER)



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