decl2.c (finish_file): Set at_eof to 2 after expanding ctors.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 23 Mar 1999 02:33:34 +0000 (02:33 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Mar 1999 02:33:34 +0000 (21:33 -0500)
commitea735e02ae57dfb05059317011ceb9935f1a44a6
tree5e8c37b11ac24bc5b4a9bdb9ac3cf09d13bfca11
parentfb835c4d70ddef4c7b22ffc03f20710ab2189437
decl2.c (finish_file): Set at_eof to 2 after expanding ctors.

* decl2.c (finish_file): Set at_eof to 2 after expanding ctors.
* decl.c (expand_static_init): Make sure we don't add any after
then.
* decl.c (cp_finish_decl): Move intelligence about handling
DECL_COMDAT for variables from here...
* decl2.c (comdat_linkage): ...to here.
(maybe_make_one_only): Tweak.
(import_export_decl): Call comdat_linkage for variables, too.
(finish_file): Handle template statics properly.

From-SVN: r25920
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c