https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448
--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> --- FWIW, I boostrapped r224366 with the dwarf2out.c changes + this: diff --git a/gcc/passes.c b/gcc/passes.c index d3ffe33..1bc8a36 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -332,7 +332,7 @@ rest_of_decl_compilation (tree decl, */ && !decl_function_context (decl) && !current_function_decl - + && DECL_SOURCE_LOCATION (decl) != BUILTINS_LOCATION && !decl_type_context (decl)) (*debug_hooks->early_global_decl) (decl); } the bootstrap succeeds and the obj-c++ testsuite is not regressed; doing the rest now. If there's no objection to this approach (which seems to be just preserving the status quo) then I'd prefer it.