From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Optimized gcc 4.3.0 build on Windows returns 0 secs for all time values of system-process-attributes Date: Sat, 3 Jan 2009 17:00:23 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230998442 3074 80.91.229.12 (3 Jan 2009 16:00:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 16:00:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 03 17:01:51 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LJ8wg-0006AD-H3 for ged-emacs-devel@m.gmane.org; Sat, 03 Jan 2009 17:01:50 +0100 Original-Received: from localhost ([127.0.0.1]:43030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ8vR-0002Vb-EY for ged-emacs-devel@m.gmane.org; Sat, 03 Jan 2009 11:00:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ8vM-0002VB-Pc for emacs-devel@gnu.org; Sat, 03 Jan 2009 11:00:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ8vK-0002Uz-DA for emacs-devel@gnu.org; Sat, 03 Jan 2009 11:00:27 -0500 Original-Received: from [199.232.76.173] (port=59095 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ8vK-0002Uv-7C for emacs-devel@gnu.org; Sat, 03 Jan 2009 11:00:26 -0500 Original-Received: from yw-out-1718.google.com ([74.125.46.157]:8194) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJ8vI-0005is-OW; Sat, 03 Jan 2009 11:00:24 -0500 Original-Received: by yw-out-1718.google.com with SMTP id 9so2217344ywk.66 for ; Sat, 03 Jan 2009 08:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Gm4YBebZdALkg609CUE6lDeFUiUJuMYn+ESq5d9TXIs=; b=hAVBqcx/0dGzcgJ79toV1C1a27R5C4z+A7Niw6MTInQHJ49qKxXjop0q5OSPkCoDNr VJ7yIS22LQNAyuyMJAFX2G4TFgIPzfT+iDiHhV5n1c0JgyYcxlWuA7uSP7VN2bXZ8yiI O+vROxaMZsQsxQ/w4w1qnN3OQ6Q7smn7qCR/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kgNMvvNNsZUucnRvnKfko7r7INAYo8oo80n9lXZJMQXJwHBr1Ab6xV1EvCwH75r1Uw Ks29qPWkDRC3Xj7M1EQx5qjETdi6Z88UDGKfvt1MEhTGBf2bErSZjPUEf9KR+zbpGQVx xMZ2g64ijU3jbbeGaBUvav0KHn48XSyhEp7xw= Original-Received: by 10.100.107.3 with SMTP id f3mr10302860anc.28.1230998423591; Sat, 03 Jan 2009 08:00:23 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Sat, 3 Jan 2009 08:00:23 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107549 Archived-At: On Sat, Jan 3, 2009 at 16:33, Eli Zaretskii wrote: > That's a bug in GCC, I'd say: all these variables are in registers, so > it probably reuses one of the FP registers incorrectly. Yes, definitely a compiler bug. > What happens if you transpose these two lines: > > stime_usec = fmodl (tem1, 1000000.0L); > stime_sec = tem1 * 0.000001L; > > (and similarly for other ?time_* qualities)? does the code work again > then? It works; at least, proced shows meaningful results: Juanma 1006 Ninguno 513 180 332 0 8 100.0 3.7 12 27356 38252 37052 13:36 00:01 00:02 00:16 14247-15:50:47 explorer.exe Juanma 1006 Ninguno 513 2600 3596 0 8 12.6 0.3 4 10328 3252 10855 12:11 00:01 00:04 00:08 14247-15:50:47 tcmd.exe Juanma 1006 Ninguno 513 1760 2600 1 4 55.6 1.2 3 9964 12512 13799 12:12 00:01 00:09 01:08 14247-15:50:47 tcc.exe Juanma 1006 Ninguno 513 2680 2600 1 4 100.0 1.1 3 9036 11512 23211 12:12 00:01 00:11 01:08 14247-15:50:47 tcc.exe Juanma 1006 Ninguno 513 4080 2600 1 4 52.0 1.1 3 9800 11888 6821 12:12 00:01 00:08 01:06 14247-15:50:46 tcc.exe Juanma 1006 Ninguno 513 2888 1716 0 8 100.0 1.9 3 17092 19996 8667 16:50 00:00 00:01 00:01 14247-15:50:47 emacs.exe > (Note that I reuse tem1 and tem2 twice in the code, so even if > transposition works, something else will need to be done to make all > of the function work correctly.) I suppose it can be made to work by adding additional temporary variables, but at this point, I'm not sure it wouldn't be just easier and cleaner to switch to 64-bit integer arithmetic. Juanma