This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/59363] [4.9 Regression] r203886 miscompiles git
- From: "octoploid at yandex dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Dec 2013 21:25:06 +0000
- Subject: [Bug target/59363] [4.9 Regression] r203886 miscompiles git
- Auto-submitted: auto-generated
- References: <bug-59363-4 at http dot gcc dot gnu dot org/bugzilla/>
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 %