diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-19 05:36:13 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-19 05:36:13 +0000 |
commit | f4513b3d417365f8e9d5f6e07b62a4cfe68e7462 (patch) | |
tree | b588729c610303cf3734b760c21d823ef33ad159 /gcc/crtstuff.c | |
parent | 3757a85a390a0395ea191e8f36a5a701a89695f0 (diff) | |
download | ppe42-gcc-f4513b3d417365f8e9d5f6e07b62a4cfe68e7462.tar.gz ppe42-gcc-f4513b3d417365f8e9d5f6e07b62a4cfe68e7462.zip |
* crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
in a main program.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31023 138bc75d-0d04-0410-961f-82ee72b054a4
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 53dae7cddc2..c0a6ae02ffd 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) { |