diff options
author | Mark Mitchell <mark@codesourcery.com> | 2007-11-06 00:30:52 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2007-11-06 00:30:52 +0000 |
commit | 873c716480f5aedc692af4d4ddf15e72682c5f27 (patch) | |
tree | 9f613ed6139732d5c70a2af1d163031b7b40cb0f /libgomp | |
parent | 7ef52af45236848a5fdbbf645e1883001bf97899 (diff) | |
download | gcc-873c716480f5aedc692af4d4ddf15e72682c5f27.zip gcc-873c716480f5aedc692af4d4ddf15e72682c5f27.tar.gz gcc-873c716480f5aedc692af4d4ddf15e72682c5f27.tar.bz2 |
re PR target/33579 (INIT_PRIORITY is broken)
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.
From-SVN: r129918
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions