summaryrefslogtreecommitdiffstats
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-19 05:36:13 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-19 05:36:13 +0000
commitf4513b3d417365f8e9d5f6e07b62a4cfe68e7462 (patch)
treeb588729c610303cf3734b760c21d823ef33ad159 /gcc/crtstuff.c
parent3757a85a390a0395ea191e8f36a5a701a89695f0 (diff)
downloadppe42-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.c4
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)
{
OpenPOWER on IntegriCloud