From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31447 invoked by alias); 19 Jan 2004 19:33:17 -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 31439 invoked from network); 19 Jan 2004 19:33:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 19 Jan 2004 19:33:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id i0JJXGl10092; Mon, 19 Jan 2004 14:33:16 -0500 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i0JJXGa14328; Mon, 19 Jan 2004 14:33:16 -0500 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i0JJXEv06448; Mon, 19 Jan 2004 14:33:14 -0500 Received: from greed.delorie.com (localhost [127.0.0.1]) by greed.delorie.com (8.12.10/8.12.10) with ESMTP id i0JJWKpI001773; Mon, 19 Jan 2004 14:32:20 -0500 Received: (from dj@localhost) by greed.delorie.com (8.12.10/8.12.10/Submit) id i0JJWJjc001769; Mon, 19 Jan 2004 14:32:19 -0500 Date: Mon, 19 Jan 2004 19:33:00 -0000 Message-Id: <200401191932.i0JJWJjc001769@greed.delorie.com> From: DJ Delorie To: rth@redhat.com CC: ian@wasabisystems.com, gcc@gcc.gnu.org In-reply-to: <20040118223751.GB14927@redhat.com> (message from Richard Henderson on Sun, 18 Jan 2004 14:37:51 -0800) Subject: Re: Can we speed up the gcc_target structure? References: <20040118083738.10772.qmail@gossamer.airs.com> <200401181357.i0IDvpWF004706@caip.rutgers.edu> <20040118220522.GA14767@redhat.com> <20040118222201.GD11268@atrey.karlin.mff.cuni.cz> <20040118223751.GB14927@redhat.com> X-SW-Source: 2004-01/txt/msg01355.txt.bz2 > > What is preventing us from declaring the structure as constant so we > > should get propagation even with current design? > > Targets that modify the structure at startup. Maybe I'm misremembering, but wasn't one of the goals of using the target structure to be able to switch them at runtime? If so, a command line argument could change the pointer to point to a different structure, which completely invalidates all such optimizations.