diff options
Diffstat (limited to 'gcc/c/c-decl.c')
-rw-r--r-- | gcc/c/c-decl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index b4995a6..1e09404 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -10308,7 +10308,10 @@ c_write_global_declarations_1 (tree globals) while (reconsider); for (decl = globals; decl; decl = DECL_CHAIN (decl)) - check_global_declaration_1 (decl); + { + check_global_declaration_1 (decl); + debug_hooks->global_decl (decl, /*early=*/true); + } } /* A subroutine of c_write_global_declarations Emit debug information for each @@ -10320,7 +10323,7 @@ c_write_global_declarations_2 (tree globals) tree decl; for (decl = globals; decl ; decl = DECL_CHAIN (decl)) - debug_hooks->global_decl (decl); + debug_hooks->global_decl (decl, /*early=*/false); } /* Callback to collect a source_ref from a DECL. */ |