This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]