This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
SIMD-enabled and -lpthread incompatible?
- From: "J.C. Pizarro" <jcpiza at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 20 Nov 2007 01:02:14 +0100
- Subject: SIMD-enabled and -lpthread incompatible?
Hello people, i've a question.
"Is it safe the code generation when GCC is using the options
-lpthread and -mmmx -msse -msse2 -msse3 -msse4?"
The GNU Portable Threads (of -lpthread) uses longjmp/setjmp that
saves general purpose registers but not SIMD registers.
GCC should to print warning or the user should to use the options
-lpthread -mno-sse4 -mno-sse3 -mno-sse2 -mno-sse -mno-mmx -mno-3dnow
Does GCC recognize this unsafe situation?
Sincerely, J.C.Pizarro