Re: __thread and builtin memcpy() bug

2005-11-28 Thread Jim Wilson
Frank Cusack wrote: See http://bugzilla.redhat.com/bugzilla> for instructions. The bug is not reproducible, so it is likely a hardware or OS problem. - the bug is quite reproducible, why does gcc say otherwise? This is due to a patch that Red Hat has added to the FSF gcc sources. When a Red Ha

__thread and builtin memcpy() bug

2005-11-23 Thread Frank Cusack
filed as $ cat bug.c #include /* memcpy() */ static #ifdef SHOWBUG __thread #endif int foo[2]; void bug(void) { int bar; (void) memcpy(&foo[0], &bar, sizeof(bar)); #ifdef SHOWBUG (void) memcpy(&foo[1], &bar, sizeof(bar)); #e