[Bug target/59691] cilk-plus run failures on non-sse processors
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 22 17:45:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59691
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Balaji V. Iyer from comment #2)
> Hello Bernd,
> I don't have a pentium 2 machine readily available. Can you try this
> patch and see if it works for you?
This is not correct, there should be a runtime check rather than a compile time
one.
>
> Thanks,
>
> Balaji V. Iyer.
>
> diff --git a/libcilkrts/runtime/config/x86/os-unix-sysdep.c
> b/libcilkrts/runtime
> /config/x86/os-unix-sysdep.c
> index 881bc3f..8d5642c 100644
> --- a/libcilkrts/runtime/config/x86/os-unix-sysdep.c
> +++ b/libcilkrts/runtime/config/x86/os-unix-sysdep.c
> @@ -47,7 +47,7 @@
> // save the FP state (rounding mode and the like) before calling setjmp. We
> // will need to restore that state when we resume.
> #ifndef __MIC__
> -# if defined(__i386__) || defined(__x86_64)
> +# if (defined(__i386__) || defined(__x86_64)) && defined (__SSE__)
> # define RESTORE_X86_FP_STATE
> # endif // defined(__i386__) || defined(__x86_64)
> #endif // __MIC__
More information about the Gcc-bugs
mailing list