public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38985]  New: [4.2/4.3/4.4 Regression] missing constraints for pointers accessed directly via their address
@ 2009-01-27 11:15 bonzini at gnu dot org
  2009-04-03 10:37 ` [Bug tree-optimization/38985] [4.3/4.4 Regression] missing VOPs " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: bonzini at gnu dot org @ 2009-01-27 11:15 UTC (permalink / raw)
  To: gcc-bugs

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.


-- 
           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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-13 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-38985-4@http.gcc.gnu.org/bugzilla/>
2011-06-27 13:47 ` [Bug tree-optimization/38985] [4.3/4.4 Regression] missing VOPs for pointers accessed directly via their address rguenth at gcc dot gnu.org
2012-03-13 16:45 ` [Bug tree-optimization/38985] [4.4 " jakub at gcc dot gnu.org
2009-01-27 11:15 [Bug tree-optimization/38985] New: [4.2/4.3/4.4 Regression] missing constraints " bonzini at gnu dot org
2009-04-03 10:37 ` [Bug tree-optimization/38985] [4.3/4.4 Regression] missing VOPs " rguenth at gcc dot gnu dot org
2009-08-04 12:46 ` rguenth at gcc dot gnu dot org
2010-05-22 18:29 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).