From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16601 invoked by alias); 22 Sep 2011 21:15:52 -0000 Received: (qmail 16593 invoked by uid 22791); 22 Sep 2011 21:15:52 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_SV X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Sep 2011 21:15:38 +0000 Received: by yxj17 with SMTP id 17so2472411yxj.20 for ; Thu, 22 Sep 2011 14:15:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.213.8 with SMTP id l8mr2716804ybg.2.1316726137296; Thu, 22 Sep 2011 14:15:37 -0700 (PDT) Received: by 10.151.51.5 with HTTP; Thu, 22 Sep 2011 14:15:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Sep 2011 21:15:00 -0000 Message-ID: Subject: Re: Volatile qualification on pointer and data From: Richard Guenther To: "Paulo J. Matos" Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2011-09/txt/msg00235.txt.bz2 On Wed, Sep 21, 2011 at 4:57 PM, Paulo J. Matos wrote: > On 21/09/11 15:21, David Brown wrote: >> >> And since this >> situation would not occur in real code (at least, not code that is >> expected to do something useful other than test the compiler's code >> generation), there is no harm in making sub-optimal object code. >> > > Actually the reason why I noticed this is because one of our engineers told > that GCC stopped generating instructions for certain operations when he > moved from GCC45 to GCC46. This code is real code. Btw, I think this is an old bug that has been resolved. Did you make sure to test a recent 4.6 branch snapshot or svn head? > Cheers, > -- > PMatos > >