public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13761] New: [tree-ssa] component refs to the same struct should not alias
@ 2004-01-20  7:03 dann at godzilla dot ics dot uci dot edu
  2004-01-20 15:13 ` [Bug optimization/13761] " pinskia at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 24+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-01-20  7:03 UTC (permalink / raw)
  To: gcc-bugs

struct s {   int s;  int s2;  char p;  int arr[10];};

int foo0 (struct s * f)
{
  f->s = 1;
  f->s2 = 2;
  if (f->s != 1)
    link_error ();
}

The "if" is not optimized because, presumably, the 2 stores are not considered
not to alias.

The .optimized dump:

foo0 (f)
{
<bb 0>:
  f->s = 1;
  f->s2 = 2;
  if (f->s != 1) goto <L0>; else goto <L1>;

<L0>:;
  link_error ();

<L1>:;
  return;

}

-- 
           Summary: [tree-ssa] component refs to the same struct should not
                    alias
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13761


^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <bug-13761-1008@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2008-03-14 17:46 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-20  7:03 [Bug optimization/13761] New: [tree-ssa] component refs to the same struct should not alias dann at godzilla dot ics dot uci dot edu
2004-01-20 15:13 ` [Bug optimization/13761] " pinskia at gcc dot gnu dot org
2004-01-21 20:17 ` pinskia at gcc dot gnu dot org
2004-03-30 16:11 ` dnovillo at gcc dot gnu dot org
2004-03-30 16:12 ` dnovillo at gcc dot gnu dot org
2004-05-18 12:36 ` [Bug tree-optimization/13761] " dalej at apple dot com
2004-05-26 18:02 ` pinskia at gcc dot gnu dot org
2004-10-28 20:28 ` dnovillo at gcc dot gnu dot org
2004-10-28 20:34 ` dnovillo at gcc dot gnu dot org
2004-10-28 21:58 ` dberlin at dberlin dot org
2004-10-28 21:59 ` dnovillo at gcc dot gnu dot org
2004-12-20 16:35 ` dberlin at gcc dot gnu dot org
2005-03-13  0:46 ` dberlin at gcc dot gnu dot org
2005-04-23 16:52 ` steven at gcc dot gnu dot org
2005-04-23 18:41   ` Daniel Berlin
2005-04-23 18:41 ` dberlin at dberlin dot org
2005-07-25 15:29 ` steven at gcc dot gnu dot org
2005-07-25 15:31 ` steven at gcc dot gnu dot org
2005-07-25 15:50 ` dberlin at gcc dot gnu dot org
2005-08-27  4:42 ` pinskia at gcc dot gnu dot org
     [not found] <bug-13761-1008@http.gcc.gnu.org/bugzilla/>
2006-01-28 18:47 ` rguenth at gcc dot gnu dot org
2006-03-06 14:39 ` rguenth at gcc dot gnu dot org
2008-03-14 17:38 ` rguenth at gcc dot gnu dot org
2008-03-14 17:46 ` 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).