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] xen build error on gcc v4.5.0

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xen build error on gcc v4.5.0
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 18 Aug 2010 16:07:30 -0700
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Masroor Vettuparambil <Masroor.Vettuparambil@xxxxxxxx>, M A Young <m.a.young@xxxxxxxxxxxx>
Delivery-date: Wed, 18 Aug 2010 16:08:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C891F940.4E10%keir.fraser@xxxxxxxxxxxxx>
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: <C891F940.4E10%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Thunderbird/3.1.1
 On 08/18/2010 12:55 PM, Keir Fraser wrote:
> On 18/08/2010 20:44, "M A Young" <m.a.young@xxxxxxxxxxxx> wrote:
>
>> On Wed, 18 Aug 2010, Jeremy Fitzhardinge wrote:
>>> Looks like a gcc bug.  Older gccs can compute __RING_SIZE() as a
>>> compile-time constant, but gcc 4.5.0 apparently isn't doing that.  It
>>> is, admittedly, a very complex expression, but gcc shouldn't regress
>>> like this.  I'm not sure how to work around it.
>> One option is to use __CONST_RING_SIZE instead of __RING_SIZE if that is
>> available. I had a similar problem compiling xen with gcc 4.5 where this
>> worked.
> Yes that is exactly why Jan Beulich introduced __CONST_RING_SIZE, in
> xen-unstable:20975. Should be a simple patch to pv_ops netfront/back drivers
> to make use of it.

Ah, OK.  I'll bring it across and sprinkle it around.

    J

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

<Prev in Thread] Current Thread [Next in Thread>