public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: -mno-fancy-math-387 doesn't work with -mpentium3
       [not found] <Pine.LNX.4.33.0207222000010.11100-100000@www.eyesopen.com>
@ 2002-07-23  3:13 ` Roger Sayle
  0 siblings, 0 replies; only message in thread
From: Roger Sayle @ 2002-07-23  3:13 UTC (permalink / raw)
  To: H. J. Lu; +Cc: gcc


Hi H.J.,

This is the documented behaviour of "-mno-fancy-math-387".

> -mno-fancy-math-387
> Some 387 emulators do not support the sin, cos and sqrt instructions
> for the 387.  Specify this option to avoid generating those
> instructions.  This option is the default on FreeBSD, OpenBSD and
> NetBSD.  This option is overridden when -march indicates that the
> target cpu will always have an FPU and so the instruction will not
> need emulation.  As of revision 2.6.1, these instructions are not
> generated unless you also use the -funsafe-math-optimizations switch.

As the pentium3 has an FPU, this option has no effect.  I take
it you have a case where you'd like to generate optimized code
but without using fsin, fcos and fsqrt on the pentium III?

Perhaps "-fno-builtin-sin -fno-builtin-cos -fno-builtin-sqrt"?

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-23  2:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.33.0207222000010.11100-100000@www.eyesopen.com>
2002-07-23  3:13 ` -mno-fancy-math-387 doesn't work with -mpentium3 Roger Sayle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).