Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2009 11:37:34 GMT
From:      gavin@FreeBSD.org
To:        peter@vereshagin.org, gavin@FreeBSD.org, freebsd-bugs@FreeBSD.org, gavin@FreeBSD.org
Subject:   Re: bin/137869: cc --fast-math leads to nan% CPU consumption in ps and top
Message-ID:  <200908171137.n7HBbYPW005869@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: cc --fast-math leads to nan% CPU consumption in ps and top

State-Changed-From-To: open->feedback
State-Changed-By: gavin
State-Changed-When: Mon Aug 17 11:28:34 UTC 2009
State-Changed-Why: 
To submitter: Looking at the man page for gcc suggests that -ffast-math enables
-fno-math-errno, -funsafe-math-optimizations, -fno-trapping-math,
-ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx-limited-range.

Perhaps you could spend some time and figure out which of these options are
breaking top and ps?

Although, the man page also says about -ffast-math:
.  This option [...] can result in incorrect output for programs which depend on
.  an exact implementation of IEEE or ISO rules/specifications for math functions.
so it may well just because top and ps depend on the math functions being
accurate.

Lastly, compiling with unusual optimisation settings isn't supported, so it
may be that this bug isn't fixed unless there is a real underlying problem.


Responsible-Changed-From-To: freebsd-bugs->gavin
Responsible-Changed-By: gavin
Responsible-Changed-When: Mon Aug 17 11:28:34 UTC 2009
Responsible-Changed-Why: 
Track

http://www.freebsd.org/cgi/query-pr.cgi?pr=137869



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908171137.n7HBbYPW005869>