This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]