From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8601 invoked by alias); 20 Oct 2002 22:49:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 8592 invoked from network); 20 Oct 2002 22:49:03 -0000 Received: from unknown (HELO uni-sb.de) (134.96.252.33) by sources.redhat.com with SMTP; 20 Oct 2002 22:49:03 -0000 Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.12.6/2002101000) with ESMTP id g9KMn2L7025698 for ; Mon, 21 Oct 2002 00:49:02 +0200 (CEST) Received: from mail.cs.uni-sb.de (IDENT:3Vk5BBFAQ+xqffFZsx7Ajoyl1OLk/0eI@mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.12.1/2002101000) with ESMTP id g9KMn1f27281 for ; Mon, 21 Oct 2002 00:49:01 +0200 (CEST) Received: from ps.uni-sb.de (grizzly.ps.uni-sb.de [134.96.186.68]) by mail.cs.uni-sb.de (8.12.6/2002101500) with ESMTP id g9KMn0oW000385 for ; Mon, 21 Oct 2002 00:49:00 +0200 (CEST) X-Authentication-Warning: email: Host grizzly.ps.uni-sb.de [134.96.186.68] claimed to be ps.uni-sb.de Received: from elk.ps.uni-sb.de.ps.uni-sb.de (elk.ps.uni-sb.de [134.96.186.151]) by ps.uni-sb.de (8.11.6/8.11.0) with ESMTP id g9KMmxO25605 for ; Mon, 21 Oct 2002 00:48:59 +0200 To: gcc@gcc.gnu.org Subject: Re: abysmal code generated by gcc-3.2 References: <200210202209.g9KM9tU16011@banach.math.purdue.edu> From: Denys Duchier Date: Mon, 21 Oct 2002 04:41:00 -0000 In-Reply-To: <200210202209.g9KM9tU16011@banach.math.purdue.edu> (Brad Lucier's message of "Sun, 20 Oct 2002 17:09:55 -0500 (EST)") Message-ID: User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-10/txt/msg01231.txt.bz2 Brad Lucier writes: > so perhaps you can try adding -fno-gcse. unfortunately (as I indicated in my previous email) I tried it and it turned out to produce worse results. The best I managed was by selectively preventing inlining and declaring one variable volatile. -fno.gcse is too coarse. What I really need is a way to prevent the compiler from trying so hard to keep these useless values in registers (er.. the values are not useless, but the "keeping them in registers" is). Cheers, -- Dr. Denys Duchier Denys.Duchier@ps.uni-sb.de Forschungsbereich Programmiersysteme (Programming Systems Lab) Universitaet des Saarlandes, Geb. 45 http://www.ps.uni-sb.de/~duchier Postfach 15 11 50 Phone: +49 681 302 5618 66041 Saarbruecken, Germany Fax: +49 681 302 5615