From owner-svn-src-all@FreeBSD.ORG  Mon Oct  7 10:01:24 2013
Return-Path: <owner-svn-src-all@FreeBSD.ORG>
Delivered-To: svn-src-all@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id 595F5734;
 Mon,  7 Oct 2013 10:01:24 +0000 (UTC) (envelope-from phk@FreeBSD.org)
Received: from svn.freebsd.org (svn.freebsd.org
 [IPv6:2001:1900:2254:2068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 46F62238D;
 Mon,  7 Oct 2013 10:01:24 +0000 (UTC)
Received: from svn.freebsd.org ([127.0.1.70])
 by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r97A1OGC012391;
 Mon, 7 Oct 2013 10:01:24 GMT (envelope-from phk@svn.freebsd.org)
Received: (from phk@localhost)
 by svn.freebsd.org (8.14.7/8.14.5/Submit) id r97A1O1N012390;
 Mon, 7 Oct 2013 10:01:24 GMT (envelope-from phk@svn.freebsd.org)
Message-Id: <201310071001.r97A1O1N012390@svn.freebsd.org>
From: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Mon, 7 Oct 2013 10:01:24 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
 svn-src-head@freebsd.org
Subject: svn commit: r256105 - head/sys/x86/include
X-SVN-Group: head
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-src-all@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "SVN commit messages for the entire src tree \(except for &quot;
 user&quot; and &quot; projects&quot; \)" <svn-src-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/svn-src-all>,
 <mailto:svn-src-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-all>
List-Post: <mailto:svn-src-all@freebsd.org>
List-Help: <mailto:svn-src-all-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-all>,
 <mailto:svn-src-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Oct 2013 10:01:24 -0000

Author: phk
Date: Mon Oct  7 10:01:23 2013
New Revision: 256105
URL: http://svnweb.freebsd.org/changeset/base/256105

Log:
  Add a va_copy() to our fall-back stdarg implementation for use with lint(1)
  
  Approved by:	re@ (glebius@)

Modified:
  head/sys/x86/include/stdarg.h

Modified: head/sys/x86/include/stdarg.h
==============================================================================
--- head/sys/x86/include/stdarg.h	Mon Oct  7 08:39:54 2013	(r256104)
+++ head/sys/x86/include/stdarg.h	Mon Oct  7 10:01:23 2013	(r256105)
@@ -64,6 +64,8 @@ typedef	__va_list	va_list;
 	(((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 #define	va_start(ap, last) \
 	((ap) = (va_list)&(last) + __va_size(last))
+#define va_copy(dst, src) \
+	((dst) = (src))
 #define	va_arg(ap, type) \
 	(*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
 #define	va_end(ap)