diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-12-19 05:36:13 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-12-19 05:36:13 +0000 |
commit | 2a14e2147b3b022eb0bb5581b77c49f658b42927 (patch) | |
tree | b588729c610303cf3734b760c21d823ef33ad159 /gcc/crtstuff.c | |
parent | e05eb7616897fce02c5e04ccfb66bd6db102a1df (diff) | |
download | gcc-2a14e2147b3b022eb0bb5581b77c49f658b42927.zip gcc-2a14e2147b3b022eb0bb5581b77c49f658b42927.tar.gz gcc-2a14e2147b3b022eb0bb5581b77c49f658b42927.tar.bz2 |
crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize in a main program.
* crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
in a main program.
From-SVN: r31023
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r-- | gcc/crtstuff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 53dae7c..c0a6ae0 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -172,8 +172,10 @@ __do_global_dtors_aux (void) if (completed) return; - if (__dso_handle && __cxa_finalize) +#ifdef CRTSTUFFS_O + if (__cxa_finalize) __cxa_finalize (__dso_handle); +#endif while (*p) { |