http://sourceware.org/bugzilla/show_bug.cgi?id=15984
Bug ID: 15984
Summary: Segfault when using static __thread function variables
with intel compiler
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ian at airs dot com
Reporter: richardg.work at gmail dot com
CC: ccoutant at google dot com
static __thread function variables cause Segfault at runtime when compiled with
the intel compiler.
Build command :
icc14 goldcrash.cpp -o goldcrash -B <path to gold ld> && ./goldcrash
(replace <path to gold ld> with the installation of binutils 2.23.2
goldcrash.cpp :
int main(int argc, const char **argv)
{
static __thread int lastID = -1;
lastId = 0;
return 0;
}
Also reported to intel: http://software.intel.com/en-us/forums/topic/475114
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils