This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIMD-enabled and -lpthread incompatible?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]