I think I missed one important detail in my patch. Here is an improved version: 2007-04-10 Maxim Grigoriev * buildsym.c (start_subfile): Add handling missing case while building symbol table for a compilation unit.