This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/33563] New: [4.3 Regression] DSE removes non-dead store


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]