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-01-27 11:27 ` Andrew Thomas Pinski
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ 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] 22+ messages in thread

end of thread, other threads:[~2010-05-22 18:29 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-27 11:15 [Bug tree-optimization/38985] New: [4.2/4.3/4.4 Regression] missing constraints for pointers accessed directly via their address bonzini at gnu dot org
2009-01-27 11:27 ` Andrew Thomas Pinski
2009-01-27 11:27 ` [Bug tree-optimization/38985] " pinskia at gmail dot com
2009-01-27 12:04 ` rguenth at gcc dot gnu dot org
2009-01-27 12:05 ` rguenth at gcc dot gnu dot org
2009-01-27 12:06 ` rguenth at gcc dot gnu dot org
2009-01-27 12:09 ` rguenth at gcc dot gnu dot org
2009-01-27 12:21 ` bonzini at gnu dot org
2009-01-27 12:29 ` bonzini at gnu dot org
2009-01-27 12:31 ` rguenth at gcc dot gnu dot org
2009-01-27 12:33 ` rguenth at gcc dot gnu dot org
2009-01-27 12:58 ` bonzini at gnu dot org
2009-01-27 13:05 ` rguenth at gcc dot gnu dot org
2009-01-27 13:18 ` bonzini at gnu dot org
2009-01-28 11:50 ` bonzini at gnu dot org
2009-01-28 12:08 ` rguenther at suse dot de
2009-01-28 21:38 ` rguenth at gcc dot gnu dot org
2009-03-31 21:08 ` [Bug tree-optimization/38985] [4.3/4.4/4.5 Regression] missing VOPs " jsm28 at gcc dot gnu dot org
2009-04-03 10:28 ` rguenth at gcc dot gnu dot org
2009-04-03 10:37 ` [Bug tree-optimization/38985] [4.3/4.4 " 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).