From owner-svn-src-stable-11@freebsd.org Thu Apr 13 18:28:41 2017 Return-Path: Delivered-To: svn-src-stable-11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6CE6DD3C657; Thu, 13 Apr 2017 18:28:41 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3E97299F; Thu, 13 Apr 2017 18:28:41 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3DISeAa070999; Thu, 13 Apr 2017 18:28:40 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3DISeph070998; Thu, 13 Apr 2017 18:28:40 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201704131828.v3DISeph070998@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 13 Apr 2017 18:28:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r316779 - stable/11/sys/sys X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2017 18:28:41 -0000 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__))