[Bug rtl-optimization/82338] valgrind error in inherit_in_ebb

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 27 22:07:00 GMT 2017


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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
12 hours reducing leads to this C++ code:

extern "C" {
void a();
void *memset(void *, int, unsigned long);
}
struct b {
  int c;
  int d;
} e[5000], *f;
int g;
int h;
int i;
int j, k;
void l(int);
int m;
int o;
void load() {
  int n;
  memset(e, 0, sizeof(e));
  for (; k;)
    ;
  a();
  for (; m < o; m++)
    for (; i; n++) {
      e[j].c = g;
      if (f[h].d && n == i)
        l(-1);
    }
}


More information about the Gcc-bugs mailing list