From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Brook To: gcc@gcc.gnu.org Subject: Re: Symbol debug information Date: Mon, 19 Aug 2002 14:01:00 -0000 Message-id: <200208181832.58063.paul@nowt.org> References: X-SW-Source: 2002-08/msg01143.html > Function level variables are output when we output debug info for the > function_decl. > > This, in turn, is called from rest_of_decl_compilation, which is called > from various places in c-decl.c, ada/utils.c, etc. > > > Make sure it's getting called. > If it is, then make sure the VAR_DECL's have TREE_USED set. > In particular, make sure the ones you want output aren't > "DECL_EXTERNAL (decl) && !TREE_USED (decl))". It turns out I was forgetting to set the SCOPE_STMT_BLOCK for the outermost block. Thanks anyway. Paul Brook