langhooks.h, [...]: introduce new langhook...
authorMatt Austern <austern@apple.com>
Tue, 18 Feb 2003 18:50:05 +0000 (18:50 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Tue, 18 Feb 2003 18:50:05 +0000 (18:50 +0000)
commit2b59501bf6ed69ff30931024cf346ba6592ba9be
treef2d1ae8da2b00770c1682fd0408e81e6c1fb7257
parent131efcd8e006ff180e498a50ad47261716539346
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
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-lang.c
gcc/cp/decl.c
gcc/langhooks-def.h
gcc/langhooks.h
gcc/toplev.c