From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31356 invoked by alias); 22 Jun 2009 19:03:33 -0000 Received: (qmail 31141 invoked by uid 22791); 22 Jun 2009 19:03:32 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f225.google.com (HELO mail-ew0-f225.google.com) (209.85.219.225) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 19:03:27 +0000 Received: by ewy25 with SMTP id 25so699179ewy.8 for ; Mon, 22 Jun 2009 12:03:24 -0700 (PDT) Received: by 10.210.43.11 with SMTP id q11mr5277836ebq.73.1245697404640; Mon, 22 Jun 2009 12:03:24 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 5sm148449eyh.20.2009.06.22.12.03.23 (version=SSLv3 cipher=RC4-MD5); Mon, 22 Jun 2009 12:03:24 -0700 (PDT) Message-ID: <4A3FD0AE.10508@gmail.com> Date: Mon, 22 Jun 2009 19:03:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Paolo Bonzini CC: Dave Korn , Richard Guenther , Daniel Berlin , Jeff Law , GCC Subject: Re: (known?) Issue with bitmap iterators References: <4A3CF81C.7050406@redhat.com> <4aca3dc20906211944hb27a3day21bc22c8a9f58aee@mail.gmail.com> <4A3F6ED1.6020106@gmail.com> <84fc9c000906220437t2d6fcb8fx6a59a45b7ed49abd@mail.gmail.com> <4A3F84C7.2000004@gmail.com> <4A3F8921.3020801@gnu.org> In-Reply-To: <4A3F8921.3020801@gnu.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00517.txt.bz2 Paolo Bonzini wrote: > >> I took a look. I don't think it would be hideously hacky to do >> something like ... >> >> #define EXECUTE_IF_SET_IN_BITMAP(BITMAP, MIN, BITNUM, ITER) \ >> for ((BITMAP)->ro_flag = true, \ >> bmp_iter_set_init (&(ITER), (BITMAP), (MIN), &(BITNUM)); \ >> (BITMAP)->ro_flag = bmp_iter_set (&(ITER), &(BITNUM)); \ >> bmp_iter_next (&(ITER), &(BITNUM))) > > You should add a BREAK_FROM_EXECUTE_IF_SET(BITMAP) macro too, however. > > Paolo :) I should, but I'm way too loaded at the moment to actually generate this patch... already got two simultaneous testruns going that will tie up my PC for a couple of days. Sorry. cheers, DaveK