This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error with -mfpmath=387 switch on Mac OSX Intel CPU
- From: Xi Ruoyao <ryxi at stu dot xidian dot edu dot cn>
- To: amar712 <amar712 at gmail dot com>
- Cc: ryxi at stu dot xidian dot edu dot cn, gcc-help at gcc dot gnu dot org
- Date: Sun, 05 Mar 2017 17:11:18 +0800
- Subject: Re: Error with -mfpmath=387 switch on Mac OSX Intel CPU
- Authentication-results: sourceware.org; auth=none
- References: <1488682504257-1355695.post@n8.nabble.com>
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