For gcc.dg/torture

/* { dg-do run } */
/* { dg-options "--param max-aliased-vops=0" } */

struct T
{
  int a, b;
} t, q;

int main (void)
{
  struct T *p;

  t.a = 1;
  t.b = 2;
  q = t;
  t.a = 3;

  if (q.a != 1)
    __builtin_abort ();

  return 0;
}

the logic behind tree-ssa-dse.c:get_use_of_stmt_lhs is wrong.


-- 
           Summary: [4.3 Regression] DSE removes non-dead store
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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

Reply via email to