This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r129918 - in /trunk/gcc: ChangeLog cgraphunit.c...
- From: mmitchel at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 06 Nov 2007 00:30:53 -0000
- Subject: r129918 - in /trunk/gcc: ChangeLog cgraphunit.c...
Author: mmitchel
Date: Tue Nov 6 00:30:52 2007
New Revision: 129918
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129918
Log:
PR target/33579
* tree.h (DECL_INIT_PRIORITY): Do not require
DECL_HAS_INIT_PRIORITY_P.
(DECL_FINI_PRIORITY): Likewise.
* tree.c (decl_init_priority_lookup): Remove assert.
(decl_fini_priority_insert): Likewise.
* cgraphunit.c (static_ctors): Make it a VEC.
(static_dtors): Likewise.
(record_cdtor_fn): Adjust accordingly.
(build_cdtor): Generate multiple functions for each initialization
priority.
(compare_ctor): New function.
(compare_dtor): Likewise.
(cgraph_build_cdtor_fns): Sort the functions by priority before
calling build_cdtor.
(cgraph_build_static_cdtor): Put the priority in the function's
name.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/tree.c
trunk/gcc/tree.h