aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2004-07-15 17:33:01 +0000
committerFrank Ch. Eigler <fche@gcc.gnu.org>2004-07-15 17:33:01 +0000
commit35b6fdcfc2ea1cc14b04038dadae2a52792ea5eb (patch)
tree678afa505aa61ebca61ca94c5b86847a30a9aae6 /gcc/cgraphunit.c
parent3e4035f83334aa30c12825dc3c3a1fa1b5b2f9f9 (diff)
downloadgcc-35b6fdcfc2ea1cc14b04038dadae2a52792ea5eb.zip
gcc-35b6fdcfc2ea1cc14b04038dadae2a52792ea5eb.tar.gz
gcc-35b6fdcfc2ea1cc14b04038dadae2a52792ea5eb.tar.bz2
* Fix for g++/15861
2004-07-15 Frank Ch. Eigler <fche@redhat.com> g++/15861 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument. * cgraph.h: Update declaration. * c-decl.c (build_cdtor): Update call with default priority. * coverage.c (create_coverage): Ditto. * tree-mudflap.c (mf_init_fndecl): New tree. (mudflap_init): Set it. (mudflap_register_call): Arrange to call __mf_init before the first __mf_register call. (mudflap_finish_file): Mark the mudflap static initializer as extra high priority, to beat all C++ static constructors. 2004-07-15 Frank Ch. Eigler <fche@redhat.com> g++/15861 * jcf-parse.c (java_emit_static_constructor): Specify default priority. From-SVN: r84760
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 39a4e32..79d5553 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1792,7 +1792,7 @@ cgraph_optimize (void)
GENERIC statements. */
void
-cgraph_build_static_cdtor (char which, tree body)
+cgraph_build_static_cdtor (char which, tree body, int priority)
{
static int counter = 0;
char which_buf[16];
@@ -1846,6 +1846,6 @@ cgraph_build_static_cdtor (char which, tree body)
fn = targetm.asm_out.constructor;
else
fn = targetm.asm_out.destructor;
- fn (XEXP (DECL_RTL (decl), 0), DEFAULT_INIT_PRIORITY);
+ fn (XEXP (DECL_RTL (decl), 0), priority);
}
}