Mercurial > hg > CbC > CbC_gcc
diff gcc/c-decl.c @ 36:855418dad1a3
gcc-4.4-20091020
author | e075725 |
---|---|
date | Tue, 22 Dec 2009 21:19:31 +0900 |
parents | a06113de4d67 |
children | 27e6f95b2c21 3bfb6c00c1e0 |
line wrap: on
line diff
--- a/gcc/c-decl.c Thu Sep 24 13:21:57 2009 +0900 +++ b/gcc/c-decl.c Tue Dec 22 21:19:31 2009 +0900 @@ -3381,6 +3381,13 @@ if (asmspec_tree) asmspec = TREE_STRING_POINTER (asmspec_tree); + if (TREE_CODE (decl) == VAR_DECL + && TREE_STATIC (decl) + && global_bindings_p ()) + /* So decl is a global variable. Record the types it uses + so that we can decide later to emit debug info for them. */ + record_types_used_by_current_var_decl (decl); + /* If `start_decl' didn't like having an initialization, ignore it now. */ if (init != 0 && DECL_INITIAL (decl) == 0) init = 0;