diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-08-13 17:29:30 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-08-13 13:29:30 -0400 |
commit | 2ce3c6c615fa735693e1de39e9777919ba4fd106 (patch) | |
tree | 5151de01751b24d690444de42bb0d59e3a3d0764 /gcc/tree.h | |
parent | db04386fd134ed6619ea9acf279ee245afd440a3 (diff) | |
download | gcc-2ce3c6c615fa735693e1de39e9777919ba4fd106.zip gcc-2ce3c6c615fa735693e1de39e9777919ba4fd106.tar.gz gcc-2ce3c6c615fa735693e1de39e9777919ba4fd106.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1124,6 +1124,11 @@ struct tree_type do not allocate storage, and refer to a definition elsewhere. */ #define DECL_EXTERNAL(NODE) (DECL_CHECK (NODE)->decl.external_flag) +/* In a VAR_DECL for a RECORD_TYPE, sets number for non-init_priority + initializatons. */ +#define DEFAULT_INIT_PRIORITY 65535 +#define MAX_INIT_PRIORITY 65535 + /* In a TYPE_DECL nonzero means the detail info about this type is not dumped into stabs. Instead it will generate cross reference ('x') of names. @@ -1843,6 +1848,7 @@ extern void (*incomplete_decl_finalize_hook) PROTO((tree)); /* In tree.c */ extern char *perm_calloc PROTO((int, long)); extern tree get_file_function_name PROTO((int)); +extern tree get_file_function_name_long PROTO((char *)); extern tree get_set_constructor_bits PROTO((tree, char *, int)); extern tree get_set_constructor_bytes PROTO((tree, unsigned char *, int)); |