This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin 32bit: Can't use gcc -mfpmath=sse
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 10 Sep 2015 16:20:31 -0500
- Subject: Re: Cygwin 32bit: Can't use gcc -mfpmath=sse
- Authentication-results: sourceware.org; auth=none
- References: <op dot x4rlk1hl6wtfvl at orion>
On Thu, 2015-09-10 at 22:52 +0200, HK wrote:
> On Thu, 10 Sep 2015 13:19:04 +0200, V?clav_Haisman wrote:
> > On 10 September 2015 at 01:30, HK wrote:
> >> I've just run across this strange behavior on a recent 32bit
> >> installation:
> >>
> >> vega> cat hello.c
> >> #include <stdio.h>
> >> int main(int argc, char** argv){
> >> printf("hello world\n");
> >> }
> >> vega> gcc -mfpmath=sse hello.c
> >> hello.c:1:0: warning: SSE instruction set disabled, using 387
> >> arithmetics
> >
> > Does it help to use `-march=native`? My hunch is that this is because
> > the default CPU type is set to such that does not have SSE.
>
> Yep, that did the trick. Thanks for the suggestion. Now, is this a gcc
> build problem? The 64bit version doesn't need -march=native and that is on
> the same computer.
It's not a bug. SSE and SSE2 are part of the core x86_64 instruction
set.
--
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple