From owner-cvs-src-old@FreeBSD.ORG Wed Jun 30 01:40:44 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A07C6106566B for ; Wed, 30 Jun 2010 01:40:44 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8DDAA8FC19 for ; Wed, 30 Jun 2010 01:40:44 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o5U1eiVD021681 for ; Wed, 30 Jun 2010 01:40:44 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o5U1ei4u021680 for cvs-src-old@freebsd.org; Wed, 30 Jun 2010 01:40:44 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <201006300140.o5U1ei4u021680@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Wed, 30 Jun 2010 01:40:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gmon gmon.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 01:40:44 -0000 marcel 2010-06-30 01:40:25 UTC FreeBSD src repository Modified files: lib/libc/gmon gmon.c Log: SVN rev 209604 on 2010-06-30 01:40:25Z by marcel On powerpc, calculate s_scale using the non-FP version previously specific to hp300. Since FreeBSD does not support hp300, hp300 has been removed from the condition altogether. The FP version broke profiling on powerpc due to invalid results. Casting to double instead of float resolved the issue, but with Book-E not having a FP unit, the non-FP version looked preferrable. Note that even on AIM hardware the FP version yielded an invalid value for s_scale, so the problem is most likely with the compiler or with the expression itself. Revision Changes Path 1.24 +1 -1 src/lib/libc/gmon/gmon.c