This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH] xen: Deal with stdarg.h and -nostdinc

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: Deal with stdarg.h and -nostdinc
From: Keir Fraser <keir@xxxxxxx>
Date: Fri, 27 May 2011 09:46:45 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Delivery-date: Fri, 27 May 2011 07:11:08 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:user-agent:date:subject:from:to:cc :message-id:thread-topic:thread-index:in-reply-to:mime-version :content-type:content-transfer-encoding; bh=lyF6XLfHS4W7vpM35p8VRtlKourWxPsOp7EgGzlydS8=; b=u2HmsjF07ALWxUngaz6u+JkCBaa3DOJ14Usz8Jpn0ZCaicfCrca6vZHd8W/19Oqi55 HtFQUEYf6qSAEHrQY2jhPSWTtaXKqnY1AWUUDa1GGXUk5W62c4toxF+wm0H9G9YvCBVD PGRCC6sVz7tR5gaLjCliar68eTVlfQaDB5O7s=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=uioaFmvHKE0ym/93BkpON+YafJT4p737Al2RPYSPbqHs96zgLwxHjgN5DcUfL8BWqi uywcmP0Mjwlyiblf9ec6H/5VO+3sagOMjZr94tiMx6qLNWeXpoQLeMGQnMw6UU+YgqYi +SocrNBO2ADuGGc2DyRsfI1Y7NjJZIqE84cY8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DDF590F.5040706@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwcSpuQxvhnuMqZvEiHjxLs4g7FWA==
Thread-topic: [Xen-devel] [PATCH] xen: Deal with stdarg.h and -nostdinc
User-agent: Microsoft-Entourage/
On 27/05/2011 08:55, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

>> Not really. We are only doing the same as Linux right now. I do note that
>> they add an -isystem option to their command line, with a gcc include path
>> that they presumably dump out of gcc in some standard way. However, our
>> current approach seems to work, if it fails to work in some situation it is
>> likely to be pretty obvious (build or link failure), and we can fix it then.
> The cross-compiling facility in NetBSD has been further improved which
> made gcc more pendantic for this. -nostdinc is used and -isystem is
> *not* used.

So where does NetBSD get its stdarg.h from in this case? It's somewhat bogus
to roll your own, as it contains compiler-specific intrinsics.

 -- Keir

Xen-devel mailing list