OSDN Git Service

* tree.h: De-conditionalize init_priority code.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Aug 1998 17:29:30 +0000 (17:29 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Aug 1998 17:29:30 +0000 (17:29 +0000)
commit9bc65db1ccf92991a4cd1aa19559c501fadba963
tree5151de01751b24d690444de42bb0d59e3a3d0764
parent3acec327002ee8f76d9e705cd483ee42879b879c
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21701 138bc75d-0d04-0410-961f-82ee72b054a4
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