From owner-svn-src-head@FreeBSD.ORG Sat Dec 6 07:15:42 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAE501065672; Sat, 6 Dec 2008 07:15:42 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C93808FC1B; Sat, 6 Dec 2008 07:15:42 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mB67FgMS086616; Sat, 6 Dec 2008 07:15:42 GMT (envelope-from kientzle@svn.freebsd.org) Received: (from kientzle@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mB67FgVA086614; Sat, 6 Dec 2008 07:15:42 GMT (envelope-from kientzle@svn.freebsd.org) Message-Id: <200812060715.mB67FgVA086614@svn.freebsd.org> From: Tim Kientzle Date: Sat, 6 Dec 2008 07:15:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185684 - head/usr.bin/cpio X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2008 07:15:43 -0000 Author: kientzle Date: Sat Dec 6 07:15:42 2008 New Revision: 185684 URL: http://svn.freebsd.org/changeset/base/185684 Log: Make the GCC-specific __dead2 markers conditional on whether we're compiling under GCC. Modified: head/usr.bin/cpio/cpio.h head/usr.bin/cpio/cpio_platform.h Modified: head/usr.bin/cpio/cpio.h ============================================================================== --- head/usr.bin/cpio/cpio.h Sat Dec 6 07:08:08 2008 (r185683) +++ head/usr.bin/cpio/cpio.h Sat Dec 6 07:15:42 2008 (r185684) @@ -89,7 +89,7 @@ struct cpio { /* Name of this program; used in error reporting, initialized in main(). */ const char *cpio_progname; -void cpio_errc(int _eval, int _code, const char *fmt, ...) __dead2; +void cpio_errc(int _eval, int _code, const char *fmt, ...) __LA_DEAD; void cpio_warnc(int _code, const char *fmt, ...); int owner_parse(const char *, int *, int *); Modified: head/usr.bin/cpio/cpio_platform.h ============================================================================== --- head/usr.bin/cpio/cpio_platform.h Sat Dec 6 07:08:08 2008 (r185683) +++ head/usr.bin/cpio/cpio_platform.h Sat Dec 6 07:15:42 2008 (r185684) @@ -81,4 +81,12 @@ #endif #endif +/* How to mark functions that don't return. */ +#if defined(__GNUC__) && (__GNUC__ > 2 || \ + (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) +#define __LA_DEAD __attribute__((__noreturn__)) +#else +#define __LA_DEAD +#endif + #endif /* !CPIO_PLATFORM_H_INCLUDED */