diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 49c8904..9c2e829 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -7548,6 +7548,7 @@ static void c_write_global_declarations_1 (tree globals) { tree decl; + bool reconsider; /* Process the decls in the order they were written. */ for (decl = globals; decl; decl = TREE_CHAIN (decl)) @@ -7566,9 +7567,18 @@ c_write_global_declarations_1 (tree globals) } wrapup_global_declaration_1 (decl); - wrapup_global_declaration_2 (decl); - check_global_declaration_1 (decl); } + + do + { + reconsider = false; + for (decl = globals; decl; decl = TREE_CHAIN (decl)) + reconsider |= wrapup_global_declaration_2 (decl); + } + while (reconsider); + + for (decl = globals; decl; decl = TREE_CHAIN (decl)) + check_global_declaration_1 (decl); } /* A subroutine of c_write_global_declarations Emit debug information for each |