[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc compiler options



On Thu, Dec 13, 2001 at 06:57:47PM +0000, Philip Blundell wrote:
> In message <20011213181344.86555.qmail@web14907.mail.yahoo.com>, Arm Lover writ
> es:
> >I want to add -ffast-math to it . Please let me know
> >where i have to change in specs file .
> 
> In the %cc1 section, but I'm not at all sure this is a good idea.

I think Phil mentions this part of the GCC manual:

     This option should never be turned on by any `-O' option since it
     can result in incorrect output for programs which depend on an
     exact implementation of IEEE or ANSI rules/specifications for math
     functions.

Think about it when you get unexpected results.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/



Reply to: