This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Missing debug information for decls in empty blocks
- From: Nicolas Setton <setton at act-europe dot fr>
- To: gcc at gcc dot gnu dot org
- Cc: Olivier Hainque <Hainque at act-europe dot fr>
- Date: Thu, 05 Aug 2004 17:08:35 +0200
- Subject: Missing debug information for decls in empty blocks
Hello,
In the context of examining the state of debug information generation with GCC
3.4 and GCC 3.5, we found that nothing is generated for "foo" and "my_struct"
in a construct like:
int main (void)
{
{
typedef struct {int x;} my_struct;
my_struct foo;
}
}
Is this expected and/or intended ? This is new compared to e.g. GCC 3.2.
I can see how this happens, and so would be happy to open a PR and post a more
detailed analysis as well as a tentative patch if this is considered a bug.
Many thanks in advance for your help,
Nico