Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2015 20:39:39 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r283267 - stable/10/sys/sys
Message-ID:  <201505212039.t4LKddQh020651@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu May 21 20:39:39 2015
New Revision: 283267
URL: https://svnweb.freebsd.org/changeset/base/283267

Log:
  MFC	r282863:
  
  Adjust visibility macros.
  
  The GCC visibility attributes were introduced in GCC 4.0.
  Apparently the "protected" attribute was introduced only
  until GCC 4.2, but we are not currently using it.

Modified:
  stable/10/sys/sys/cdefs.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/sys/cdefs.h
==============================================================================
--- stable/10/sys/sys/cdefs.h	Thu May 21 20:22:55 2015	(r283266)
+++ stable/10/sys/sys/cdefs.h	Thu May 21 20:39:39 2015	(r283267)
@@ -439,7 +439,7 @@
 #define __predict_false(exp)    (exp)
 #endif
 
-#if __GNUC_PREREQ__(4, 2)
+#if __GNUC_PREREQ__(4, 0)
 #define	__hidden	__attribute__((__visibility__("hidden")))
 #define	__exported	__attribute__((__visibility__("default")))
 #else



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