"mfpmath=sse" violation

Asked by liuyix

when compiling program using "mfpmath=sse" and "-static" options , the generated program still contains x87 instruction.
objdump the program, I found the sincos function contains x87 instruction.
"gcc fft.o -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels -mfpmath=sse -o FFT -lm"

My ubuntu is ubuntu natty x86-64
uname -a :Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu mpclib Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Natyy is EOL in October. I suggest you abandon it soon and fresh install Precise. Not only is it the latest stable Ubuntu, it is also LTS giving it support until 2017...

Revision history for this message
liuyix (cnliuyix) said :
#2

Thanks actionparsnip, that solved my question.