This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIMD-enabled and -lpthread incompatible?
- From: "Daniel Verkamp" <daniel dot verkamp at gmail dot com>
- To: "J.C. Pizarro" <jcpiza at gmail dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 20 Nov 2007 00:10:06 -0500
- Subject: Re: SIMD-enabled and -lpthread incompatible?
- References: <998d0e4a0711191602i1d564912j1dc8520a923faebd@mail.gmail.com>
The MMX registers are aliased onto the x87 floating-point registers,
so they should be saved and restored correctly regardless.
Also, -lpthread is generally some POSIX threading library implemented
by the target OS or libc, not the unfortunately-named GNU Portable
Threads (GNU Pth), which confusingly does have a POSIX thread
emulation layer.
In any case, this problem seems unrelated to GCC; if the
longjmp/setjmp implementation doesn't save and restore the proper
registers, then maybe they shouldn't be used by this library.
-- Daniel Verkamp