From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21383 invoked by alias); 22 Jun 2009 13:38:06 -0000 Received: (qmail 21368 invoked by uid 22791); 22 Jun 2009 13:38:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 13:37:54 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5MDbmEu026486; Mon, 22 Jun 2009 09:37:48 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5MDblA5004666; Mon, 22 Jun 2009 09:37:47 -0400 Received: from yakj.usersys.redhat.com (dhcp-lab-149.englab.brq.redhat.com [10.34.33.149]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5MDbjqG003126; Mon, 22 Jun 2009 09:37:45 -0400 Message-ID: <4A3F8921.3020801@gnu.org> Date: Mon, 22 Jun 2009 13:38:00 -0000 From: Paolo Bonzini User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Dave Korn CC: 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> In-Reply-To: <4A3F84C7.2000004@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/msg00507.txt.bz2 > 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