From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5078 invoked by alias); 12 May 2003 01:15:55 -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 5008 invoked from network); 12 May 2003 01:15:54 -0000 Received: from unknown (HELO mx2.redhat.com) (66.187.237.31) by sources.redhat.com with SMTP; 12 May 2003 01:15:54 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id h4C15CZ05777; Sun, 11 May 2003 21:05:12 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4C1FrT19768; Sun, 11 May 2003 21:15:53 -0400 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [172.16.24.7]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h4C1FrM08369; Sun, 11 May 2003 18:15:53 -0700 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id h4C1DOD15797; Sun, 11 May 2003 18:13:24 -0700 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Mon, 12 May 2003 01:15:00 -0000 From: Richard Henderson To: Stephen Biggs Cc: GCC list Subject: Re: Local binding DECLs Message-ID: <20030512011324.GA15787@redhat.com> Mail-Followup-To: Richard Henderson , Stephen Biggs , GCC list References: <1052394173.13089.7.camel@steve.softier.local> <20030508220157.GE6901@redhat.com> <1052636662.18831.1.camel@steve.softier.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1052636662.18831.1.camel@steve.softier.local> User-Agent: Mutt/1.4i X-SW-Source: 2003-05/txt/msg01068.txt.bz2 On Sun, May 11, 2003 at 10:04:20AM +0300, Stephen Biggs wrote: > Ok... is there ANY way to find out if the FUNCTION_DECL I am handed at > any time (preferably in ENCODE_SECTION) is declared in a function block > as opposed to globally? *Declared*? I.e. to distinguish extern void foo(); void bar() { foo(); } from void bar() { extern void foo(); foo(); } Absolutely not. That question doesn't even make sense. r~