From patchwork Wed Jul 27 18:51:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 107141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 3E376B6F69 for ; Thu, 28 Jul 2011 04:51:24 +1000 (EST) Received: (qmail 8168 invoked by alias); 27 Jul 2011 18:51:21 -0000 Received: (qmail 8158 invoked by uid 22791); 27 Jul 2011 18:51:20 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jul 2011 18:51:05 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6RIp5Ki031673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jul 2011 14:51:05 -0400 Received: from houston.quesejoda.com (vpn-227-134.phx2.redhat.com [10.3.227.134]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6RIp4Ds021669; Wed, 27 Jul 2011 14:51:04 -0400 Message-ID: <4E305E18.2010904@redhat.com> Date: Wed, 27 Jul 2011 13:51:04 -0500 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: "H.J. Lu" CC: Jason Merrill , Jeff Law , gcc-patches , Jakub Jelinek Subject: Re: [C++0x] contiguous bitfields race implementation References: <4DC8155A.3040401@redhat.com> <4DC82136.6030802@redhat.com> <4DC83549.8010709@redhat.com> <4DC83F49.5020101@redhat.com> <4DCD8412.9020005@redhat.com> <4DD440EA.2080500@redhat.com> <4DD5AA47.4000902@redhat.com> <4DDE8CE6.40203@redhat.com> <4DDE9040.8000807@redhat.com> <4DDE99D2.4020502@redhat.com> <4DDE9DED.6040801@redhat.com> <4DDFF90E.7070408@redhat.com> <4E2420E6.8090809@redhat.com> <4E29C502.8020100@redhat.com> <4E2DA2BA.1010003@redhat.com> In-Reply-To: Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org > This caused: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49875 The assembler sequence on ia32 was a bit different. H.J. Can you try this on your end? If it fixes the problem, I will commit as obvious. Aldy PR middle-end/49875 * c-c++-common/cxxbitfields-4.c: Check for smaller than long moves. Index: c-c++-common/cxxbitfields-4.c =================================================================== --- c-c++-common/cxxbitfields-4.c (revision 176824) +++ c-c++-common/cxxbitfields-4.c (working copy) @@ -15,4 +15,4 @@ void update_c(struct bits *p, int val) p -> c = val; } -/* { dg-final { scan-assembler-not "movl" } } */ +/* { dg-final { scan-assembler "mov\[bw\]" } } */