WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Fri, 27 May 2011 14:16:00 +0100
Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>
Delivery-date: Fri, 27 May 2011 06:16:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DDF735F.9020706@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>
References: <CA052B9C.2DB31%keir@xxxxxxx> <4DDF735F.9020706@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
At 11:48 +0200 on 27 May (1306496895), Christoph Egger wrote:
> On 05/27/11 11:21, Keir Fraser wrote:
> >Secondly, I wonder whether *BSD would be happier if we did not include
> >-nostdinc on the command line? See arch/x86/Rules.mk where SunOS is already
> >special cased. I don't know whether that would work for BSD too.
> 
> It works for NetBSD at least.
> 
> >Finally, rather than referencing a hardcoded /usr/include path or including
> >gcc intrinsics in xen/stdarg.h, would *BSD prefer a -isystem command-line
> >option to include the gcc headers in the search path? Then we could perhaps
> >even get rid of xen/stdarg.h completely.
> 
> NetBSD is about to add clang/llvm support. If -isystem works for both
> gcc and clang then this should be fine.

Building Xen with clang I had to remove the -nostdinc because I couldn't
find a sensible way of automatically finding the clang include paths. 
It may be that I just wasn't looking in the right place.

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel