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/79955] GLIBC build fails after r245840


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79955

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Testcase that is fixed (at -O2, at -O1 we do not run isolate-paths...)

/* { dg-do compile } */
/* { dg-options "-O2 -Wmaybe-uninitialized" } */

int foo (int x)
{
  int y;
  if (x)
    return *(&y + 1);  /* { dg-bogus "may be used uninitialized" } */
  return 0;
}

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