langhooks.h, [...]: introduce new langhook...
* langhooks.h, langhooks-def.h: introduce new langhook, final_write_globals, with write_global_declarations as default. * toplev.c: Move invocation of wrapup_global_declarations from compile_file to new function, write_global_declarations. Change compile_file to use final_write_globals hook. Change wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is conditional. * cp/cp-lang.c: Change lang hooks so that final_write_globals does nothing for C++. * cp/decl.c (wrapup_globals_for_namespace): Remove special handling of global namespace. From-SVN: r63051
Showing
- gcc/ChangeLog 10 additions, 0 deletionsgcc/ChangeLog
- gcc/cp/ChangeLog 7 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/cp-lang.c 3 additions, 0 deletionsgcc/cp/cp-lang.c
- gcc/cp/decl.c 0 additions, 4 deletionsgcc/cp/decl.c
- gcc/langhooks-def.h 6 additions, 1 deletiongcc/langhooks-def.h
- gcc/langhooks.h 4 additions, 0 deletionsgcc/langhooks.h
- gcc/toplev.c 35 additions, 29 deletionsgcc/toplev.c
Loading
Please register or sign in to comment