tree.h: De-conditionalize init_priority code.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 13 Aug 1998 17:29:30 +0000 (17:29 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 13 Aug 1998 17:29:30 +0000 (13:29 -0400)
commit2ce3c6c615fa735693e1de39e9777919ba4fd106
tree5151de01751b24d690444de42bb0d59e3a3d0764
parentdb04386fd134ed6619ea9acf279ee245afd440a3
tree.h: De-conditionalize init_priority code.

* tree.h: De-conditionalize init_priority code.
* mips.h (NM_FLAGS): Change from -Bp to -Bn.
* collect2.c (NM_FLAGS): Change from -p to -n.
* configure.in: Turn on collect2 for mipstx39-elf.
Handle use_collect2=no properly.
* c-common.c: De-conditionalize init_priority code.
* collect2.c (extract_init_priority, sort_ids): New fns.
(main): Call sort_ids.
Move sequence_number to file scope.
* configure.in: Handle --enable-init-priority.
* c-common.c (attrs): Add A_INIT_PRIORITY.
(init_attributes, decl_attributes): Likewise.
* tree.h (DEFAULT_INIT_PRIORITY, MAX_INIT_PRIORITY): New macros.
* tree.c (get_file_function_name_long): Split out...
(get_file_function_name): ...from here.
cp/:
* lang-options.h: Add -finit-priority.
* decl2.c: Likewise.  Check flag_init_priority instead of
USE_INIT_PRIORITY.
* decl2.c (setup_initp): New fn.
(start_objects, finish_objects, do_ctors): Handle init_priority.
(do_dtors, finish_file): Likewise.

From-SVN: r21701
12 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/collect2.c
gcc/config/mips/mips.h
gcc/configure
gcc/configure.in
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/lang-options.h
gcc/invoke.texi
gcc/tree.c
gcc/tree.h