From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8967 invoked by alias); 6 Jul 2005 13:40: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 8950 invoked by uid 22791); 6 Jul 2005 13:40:11 -0000 Received: from louie.udel.edu (HELO mail.eecis.udel.edu) (128.4.40.12) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 06 Jul 2005 13:40:11 +0000 Received: by mail.eecis.udel.edu (Postfix, from userid 62) id 0B6883296B; Wed, 6 Jul 2005 09:40:10 -0400 (EDT) Received: from stimpy.eecis.udel.edu (stimpy.eecis.udel.edu [128.4.40.17]) by mail.eecis.udel.edu (Postfix) with ESMTP id 6C514328AC; Wed, 6 Jul 2005 09:40:08 -0400 (EDT) Date: Wed, 06 Jul 2005 13:40:00 -0000 From: Michael Tegtmeyer X-X-Sender: tegtmeye@stimpy.eecis.udel.edu To: Daniel Berlin Cc: gcc@gcc.gnu.org Subject: Re: Existing tree functionality? In-Reply-To: <1120655196.8189.55.camel@linux.site> Message-ID: References: <1120653984.8189.52.camel@linux.site> <1120655196.8189.55.camel@linux.site> X-Sanitizer: This message has been sanitized! X-Sanitizer-URL: http://mailtools.anomy.net/ X-Sanitizer-Rev: UDEL-ECECIS: Sanitizer.pm,v 1.64 2002/10/22 MIME-Version: 1.0 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed" X-SW-Source: 2005-07/txt/msg00225.txt.bz2 Thanks-intraprocedural is all I need. Sorry, bit new to gcc internals (coming from SUIF), is anything missing from referenced_vars list or is it complete? docs in tree-dfa.c state that it doesn't look in statement operands. Does it just collect this from the symbol tables? Mike On Wed, 6 Jul 2005, Daniel Berlin wrote: > On Wed, 2005-07-06 at 08:46 -0400, Daniel Berlin wrote: >> Most of this can be found in the cgraph nodes. The rest requires >> scanning the IL. > >> Ken Zadeck should have code to do this. >> > > Oh, i assumed you were trying to work at an interprocedural level. > If you only ever care to see a single function at a time, you can just > look at the referenced_vars list. > > >> >> On Wed, 2005-07-06 at 08:32 -0400, Michael Tegtmeyer wrote: >>> Hello, >>> >>> Is there existing functionality somewhere to sweep a function and collect >>> all externally visible variables at the tree level or do I need to roll my >>> own? I've looked in tree.h and grepped around as much as I could but I >>> haven't found anything obvious. >>> >>> Thanks in advance, >>> Mike Tegtmeyer >> > >