From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20633 invoked by alias); 23 Nov 2004 21:21:15 -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 20608 invoked from network); 23 Nov 2004 21:21:11 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 23 Nov 2004 21:21:11 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iANLLBrk016286 for ; Tue, 23 Nov 2004 16:21:11 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iANLLAr17228; Tue, 23 Nov 2004 16:21:10 -0500 Received: from frothingslosh.sfbay.redhat.com (frothingslosh.sfbay.redhat.com [172.16.24.27]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id iANLL9so004402; Tue, 23 Nov 2004 16:21:09 -0500 Received: from frothingslosh.sfbay.redhat.com (localhost.localdomain [127.0.0.1]) by frothingslosh.sfbay.redhat.com (8.13.1/8.13.1) with ESMTP id iANLL8m8028224; Tue, 23 Nov 2004 13:21:08 -0800 Received: (from rth@localhost) by frothingslosh.sfbay.redhat.com (8.13.1/8.13.1/Submit) id iANLL8R2028223; Tue, 23 Nov 2004 13:21:08 -0800 X-Authentication-Warning: frothingslosh.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Tue, 23 Nov 2004 21:45:00 -0000 From: Richard Henderson To: Aldy Hernandez Cc: gcc@gcc.gnu.org, aoliva@redhat.com Subject: Re: RFC: generate TLS address arithmetic for back-end Message-ID: <20041123212108.GA28151@redhat.com> Mail-Followup-To: Richard Henderson , Aldy Hernandez , gcc@gcc.gnu.org, aoliva@redhat.com References: <20041123191139.GA9565@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041123191139.GA9565@redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-11/txt/msg00847.txt.bz2 On Tue, Nov 23, 2004 at 03:11:39PM -0400, Aldy Hernandez wrote: > * expr.c (expand_expr): case PLUS_EXPR: Treat TLS address > arithmetic as a constant. > (tree_tls_address_p): New. A better place to attack this is to arrange for the address of such variables to be TREE_INVARIANT (if they're not already), and to change the test there from TREE_CONSTANT. r~