Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264261AbUFZTeI (ORCPT ); Sat, 26 Jun 2004 15:34:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264396AbUFZTeI (ORCPT ); Sat, 26 Jun 2004 15:34:08 -0400 Received: from stat1.steeleye.com ([65.114.3.130]:16581 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S264261AbUFZTeF (ORCPT ); Sat, 26 Jun 2004 15:34:05 -0400 Subject: Re: [PATCH] Fix the cpumask rewrite From: James Bottomley To: Linus Torvalds Cc: Andrew Morton , Paul Jackson , PARISC list , Linux Kernel In-Reply-To: References: <1088266111.1943.15.camel@mulgrave> <1088268405.1942.25.camel@mulgrave> <1088270298.1942.40.camel@mulgrave> <1088276343.1750.105.camel@mulgrave> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9) Date: 26 Jun 2004 14:33:55 -0500 Message-Id: <1088278436.1943.148.camel@mulgrave> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 633 Lines: 23 On Sat, 2004-06-26 at 14:11, Linus Torvalds wrote: > It seems the pa-risc optimizer for gcc is somehow broken. I just checked > on x86: > > #define test_bit(x,y) \ > (!!((1ul << x) & *(y))) > > int test(unsigned long *a) > { > while (test_bit(0, a)); > } OK, this one definitely compiles to a non reaload loop on parisc. I concede we need the volatile. James - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/