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 target/59363] [4.9 Regression] r203886 miscompiles git


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

--- Comment #14 from Markus Trippelsdorf <octoploid at yandex dot com> ---
Further reduced:

markus@x4 tmp % cat test.i
typedef struct {
  int ctxlen;
  long interhunkctxlen;
  int flags;
  long find_func;
  void *find_func_priv;
  int hunk_func;
} xdemitconf_t;

__attribute__((noinline))
int xdi_diff(xdemitconf_t *xecfg) {
  if (xecfg->hunk_func == 0)
    __builtin_abort();
  return 0;
}
int main() {
  xdemitconf_t xecfg = {0};
  xecfg.hunk_func = 1;
  return xdi_diff(&xecfg);
}

markus@x4 tmp % gcc -O2 -mtune=amdfam10 test.i && ./a.out
[1]    2079 abort      ./a.out
markus@x4 tmp % gcc -O2 test.i && ./a.out
markus@x4 tmp %


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