From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22973 invoked by alias); 2 May 2003 21:22:12 -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 22951 invoked from network); 2 May 2003 21:22:12 -0000 Received: from unknown (HELO desire.geoffk.org) (12.235.88.42) by sources.redhat.com with SMTP; 2 May 2003 21:22:12 -0000 Received: (from geoffk@localhost) by desire.geoffk.org (8.11.6/8.11.6) id h42LL8e13471; Fri, 2 May 2003 14:21:08 -0700 Date: Fri, 02 May 2003 21:22:00 -0000 From: Geoff Keating Message-Id: <200305022121.h42LL8e13471@desire.geoffk.org> To: rth@redhat.com CC: gdr@integrable-solutions.net, fjh@cs.mu.OZ.AU, jbuck@synopsys.com, espie@quatramaran.ens.fr, gcc@gcc.gnu.org In-reply-to: <20030502201235.GB2442@redhat.com> (message from Richard Henderson on Fri, 2 May 2003 13:12:35 -0700) Subject: Re: GCC warnings for unused global variables References: <20030502024342.GM31208@redhat.com> <200305020347.h423l3F12721@desire.geoffk.org> <20030502041132.GU31208@redhat.com> <20030502090414.GA26392@ceres.cs.mu.oz.au> <20030502141459.GA5413@ceres.cs.mu.oz.au> <20030502201235.GB2442@redhat.com> X-SW-Source: 2003-05/txt/msg00233.txt.bz2 > Date: Fri, 2 May 2003 13:12:35 -0700 > From: Richard Henderson > On Fri, May 02, 2003 at 11:45:10AM -0400, Paul Jarc wrote: > > If volatile is used, then the compiler cannot know whether accesses > > and side effects are needed. (This is exactly what is expressed by > > volatile.) Do you agree or disagree? > > Agree. > > However, I do not agree that "existance" is either an access > or a side effect. It's implementation-defined what is an 'access'. It looks like it's useful to define initialization as an 'access', for exactly this case: rcsid, or in general magic code that looks at object files. So, let's do that. I will create a patch... -- - Geoffrey Keating