From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15952 invoked by alias); 27 Jan 2009 11:27:24 -0000 Received: (qmail 15933 invoked by uid 22791); 27 Jan 2009 11:27:23 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_13,SPF_PASS X-Spam-Check-By: sourceware.org Received: from yx-out-1718.google.com (HELO yx-out-1718.google.com) (74.125.44.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Jan 2009 11:27:15 +0000 Received: by yx-out-1718.google.com with SMTP id 36so2469152yxh.26 for ; Tue, 27 Jan 2009 03:27:11 -0800 (PST) Received: by 10.100.178.2 with SMTP id a2mr459729anf.114.1233055631480; Tue, 27 Jan 2009 03:27:11 -0800 (PST) Received: from ?10.96.28.184? ([32.152.240.92]) by mx.google.com with ESMTPS id d22sm12721292and.7.2009.01.27.03.27.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jan 2009 03:27:11 -0800 (PST) References: Message-Id: From: Andrew Thomas Pinski To: "gcc-bugzilla@gcc.gnu.org" In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPhone Mail 5G77) Subject: Re: [Bug tree-optimization/38985] New: [4.2/4.3/4.4 Regression] missing constraints for pointers accessed directly via their address Date: Tue, 27 Jan 2009 11:27:00 -0000 Cc: "gcc-bugs@gcc.gnu.org" X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-01/txt/msg02927.txt.bz2 Sent from my iPhone On Jan 27, 2009, at 3:15 AM, "bonzini at gnu dot org" wrote: > This testcase fails: > > /* { dg-do compile } */ > /* { dg-options "-O2 -fdump-tree-optimized" } */ > > int f(int *p) > { > int a = *p; > int *q = (int *)0xDEADBEE0; > *q = 5; > return *p == a; > } > > /* { dg-final { scan-tree-dump-times " = \\\*p" 2 "optimized" } } */ > /* { dg-final { scan-tree-dump-not "return 1" "optimized" } } */ > /* { dg-final { cleanup-tree-dump "optimized" } } */ > > > Unlike PR38984 it does not require -fno-delete-null-pointer-checks. Volatile addresses also don't have vops on them. As I mentioned in the other bug. So this is also a bug for volatiles. > > > > -- > Summary: [4.2/4.3/4.4 Regression] missing constraints for > pointers accessed directly via their address > Product: gcc > Version: 4.4.0 > Status: UNCONFIRMED > Keywords: wrong-code > Severity: normal > Priority: P3 > Component: tree-optimization > AssignedTo: unassigned at gcc dot gnu dot org > ReportedBy: bonzini at gnu dot org > OtherBugsDependingO 38984 > nThis: > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38985 >