Error with -mfpmath=387 switch on Mac OSX Intel CPU

Xi Ruoyao ryxi@stu.xidian.edu.cn
Sun Mar 5 09:11:00 GMT 2017


On 2017-03-04 19:55 -0700, amar712 wrote:
> I get this error when I try to compile the C program using -mfpmath=387
> switch 
> error: the '387' unit is not supported with this instruction set

> This is on Mac OSX

First of all you should notice on Mac OS X, by default "gcc" is an alias
of "clang". So this issue should not be discussed in this mail list.

For clang you need "-mfpmath=387 -mno-sse".

See <https://github.com/llvm-mirror/clang/commit/
5389b84a780ac17b63c10ad97cd5e3aaa41595b7>.
-- 
Xi Ruoyao <ryxi@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University



More information about the Gcc-help mailing list