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
This commit is contained in:
Mark Mitchell 1999-12-19 05:36:13 +00:00 committed by Mark Mitchell
parent e05eb76168
commit 2a14e2147b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-12-18 Mark Mitchell <mark@codesourcery.com>
* crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
in a main program.
Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com> Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
* cccp.c (main): Define __STDC_VERSION__ as necessary. * cccp.c (main): Define __STDC_VERSION__ as necessary.

View File

@ -172,8 +172,10 @@ __do_global_dtors_aux (void)
if (completed) if (completed)
return; return;
if (__dso_handle && __cxa_finalize) #ifdef CRTSTUFFS_O
if (__cxa_finalize)
__cxa_finalize (__dso_handle); __cxa_finalize (__dso_handle);
#endif
while (*p) while (*p)
{ {