public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR libgcc/92988
@ 2019-12-30 20:26 John David Anglin
  2020-01-01 17:23 ` John David Anglin
  2020-01-15 21:40 ` Jeff Law
  0 siblings, 2 replies; 5+ messages in thread
From: John David Anglin @ 2019-12-30 20:26 UTC (permalink / raw)
  To: GCC Patches

Tested on hppa64-hp-hpux11.11.

Okay?

Dave

2019-12-30  John David Anglin  <danglin@gcc.gnu.org>

	PR libgcc/92988
	* crtstuff.c (__do_global_dtors_aux): Only call __cxa_finalize if
	DEFAULT_USE_CXA_ATEXIT is true.

Index: crtstuff.c
===================================================================
--- crtstuff.c	(revision 279736)
+++ crtstuff.c	(working copy)
@@ -382,10 +382,12 @@
   if (__builtin_expect (completed, 0))
     return;

+#if DEFAULT_USE_CXA_ATEXIT
 #ifdef CRTSTUFFS_O
   if (__cxa_finalize)
     __cxa_finalize (__dso_handle);
 #endif
+#endif

 #ifdef FINI_ARRAY_SECTION_ASM_OP
   /* If we are using .fini_array then destructors will be run via that

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-15 22:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30 20:26 [PATCH] Fix PR libgcc/92988 John David Anglin
2020-01-01 17:23 ` John David Anglin
2020-01-15 21:40 ` Jeff Law
2020-01-15 23:17   ` John David Anglin
2020-01-15 23:51     ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).