[Bug target/59363] [4.9 Regression] r203886 miscompiles git
octoploid at yandex dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 2 21:25:00 GMT 2013
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 %
More information about the Gcc-bugs
mailing list