From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3204 invoked by alias); 18 Jan 2004 21:14:16 -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 3197 invoked from network); 18 Jan 2004 21:14:15 -0000 Received: from unknown (HELO lon-mail-2.gradwell.net) (193.111.201.126) by sources.redhat.com with SMTP; 18 Jan 2004 21:14:15 -0000 Received: (qmail 528 invoked from network); 18 Jan 2004 21:14:14 -0000 Received: from digraph.polyomino.org.uk (postmaster%pop3.polyomino.org.uk@81.187.227.50) by lon-mail-2.gradwell.net with SMTP; 18 Jan 2004 21:14:14 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.30) id 1AiKFK-0002TG-In; Sun, 18 Jan 2004 21:14:14 +0000 Date: Sun, 18 Jan 2004 21:14:00 -0000 From: "Joseph S. Myers" X-X-Sender: jsm28@digraph.polyomino.org.uk To: "Kaveh R. Ghazi" cc: ian@wasabisystems.com, gcc@gcc.gnu.org Subject: Re: Can we speed up the gcc_target structure? In-Reply-To: <200401181357.i0IDvpWF004706@caip.rutgers.edu> Message-ID: References: <20040118083738.10772.qmail@gossamer.airs.com> <200401181357.i0IDvpWF004706@caip.rutgers.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-01/txt/msg01194.txt.bz2 On Sun, 18 Jan 2004, Kaveh R. Ghazi wrote: > Something I considered was const-ifying the targetm structure so that > GCC might optimize some of the call points better. This would work, > but for the unfortunate tendency of GCC to modify these values at > runtime. I can work around that by inserting an extra function layer, > except for targetm members that aren't functions already themselves. > Take a look at the targetm.asm_out.unaligned_op.di assignment in > sparc.c When --enable-intermodule is used, does (or should) the compiler manage to detect which parts of the target structure are in fact constant (even without constifying)? -- Joseph S. Myers jsm@polyomino.org.uk