On Fri, Jan 29, 2016 at 11:35:07AM +0100, Jakub Jelinek wrote: > I can try to stick there an assert whether for FUNCTION_DECL > (DECL_INITIAL (decl) == 0) == DECL_EXTERNAL (decl).
Tried that, but cancelled that quickly, I see lots of cases where DECL_INITIAL is non-NULL, but DECL_EXTERNAL is set, and some where DECL_INITIAL is NULL, and DECL_EXTERNAL is not set, at least in the other two spots (check_global_declaration in cgraphunit.c and c-decl.c). Haven't waited long enough to find out if the C++ FE is some exception. Jakub