Maybe this is responsible for part of PR21828?
I'd say this *is* PR21828: note that the variables whose
type is unknown are global variables in C code compiled
with -O2 ...
Oh, of course.  I was confusing with the first part:

 Run till exit from #0 mangle_macro_name ([snip]) at 
../../gcc/gengtype-lex.l:429
 yylex () at ../../gcc/gengtype-lex.l:263
 263       t = find_structure (ptr, 0);
 Value returned is $1 = 0x11ccb0 "VEC_tree"
 (gdb) p ptr
 No symbol "ptr" in current context.

where ptr is not global. But -fno-tree-lrs or whatever the option is called should help with that.

I've updated PR21828 so that it does not refer to stabs.

Paolo

Reply via email to