summaryrefslogtreecommitdiff
path: root/gcc/gbl-ctors.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gbl-ctors.h')
-rw-r--r--gcc/gbl-ctors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gbl-ctors.h b/gcc/gbl-ctors.h
index 5a37661a27f..2a9ea1f88e4 100644
--- a/gcc/gbl-ctors.h
+++ b/gcc/gbl-ctors.h
@@ -73,9 +73,9 @@ extern void __do_global_dtors ();
#define DO_GLOBAL_CTORS_BODY \
do { \
func_ptr *p; \
- ON_EXIT (__do_global_dtors, 0); \
for (p = __CTOR_LIST__ + 1; *p; ) \
(*p++) (); \
+ ON_EXIT (__do_global_dtors, 0); \
} while (0)
#endif