From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7097 invoked by alias); 11 Jun 2004 19:45:01 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 7089 invoked from network); 11 Jun 2004 19:45:00 -0000 Received: from unknown (HELO mta09-svc.ntlworld.com) (62.253.162.49) by sourceware.org with SMTP; 11 Jun 2004 19:45:00 -0000 Received: from cuddles.cambridge.redhat.com ([81.96.64.123]) by mta09-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040611194535.CGGB20971.mta09-svc.ntlworld.com@cuddles.cambridge.redhat.com> for ; Fri, 11 Jun 2004 20:45:35 +0100 Received: from redhat.com (localhost.localdomain [127.0.0.1]) by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id i5BJiNVL030134; Fri, 11 Jun 2004 20:44:33 +0100 Received: (from aph@localhost) by redhat.com (8.12.8/8.12.8/Submit) id i5BJiNig030130; Fri, 11 Jun 2004 20:44:23 +0100 From: Andrew Haley MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16586.2966.954676.584336@cuddles.cambridge.redhat.com> Date: Fri, 11 Jun 2004 20:44:00 -0000 To: Richard Henderson Cc: gcc-patches@gcc.gnu.org Subject: Re: New flag: TREE_THIS_NOTRAP In-Reply-To: <20040611193748.GA26068@redhat.com> References: <16583.1557.289552.644295@cuddles.cambridge.redhat.com> <20040609201201.GC13131@redhat.com> <16584.10321.968782.357069@cuddles.cambridge.redhat.com> <20040610164824.GB18122@redhat.com> <16585.57531.436288.548134@cuddles.cambridge.redhat.com> <20040611193748.GA26068@redhat.com> X-SW-Source: 2004-06/txt/msg00795.txt.bz2 Richard Henderson writes: > On Fri, Jun 11, 2004 at 05:41:31PM +0100, Andrew Haley wrote: > > case INDIRECT_REF: > > + { > > + tree t = TREE_OPERAND (expr, 0); > > + return (TREE_THIS_NOTRAP (t) == false); > > So the NOTRAP bit is on the pointer and not the INDIRECT_REF? It has to be doesn't it? The trapping in *exp is a property of exp, not a property of *. If someone attaches another INDIRECT_REF to exp, it will not be marked as NOTRAP. I could mark *both* exp and its INDIRECT_REF as notrap, I guess. > This seems likely to get lost during gimplification, unless > you're taking extra special care... Andrew.