From d1e51320605493252494f43a62e6048b5b9c6b26 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 12 Feb 2000 19:19:01 +0000 Subject: [PATCH] crtstuff.c (__do_global_ctors_aux, [...]): Add prototype argument. * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor, __dereg_frame_dtor): Add prototype argument. * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise. * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise. * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise. * gthr-vxworks.h (__gthread_once): Likewise. * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise. From-SVN: r31945 --- gcc/ChangeLog | 15 +++++++++++++++ gcc/crtstuff.c | 9 ++++----- gcc/gthr-dce.h | 6 +++--- gcc/gthr-posix.h | 6 +++--- gcc/gthr-solaris.h | 6 +++--- gcc/gthr-vxworks.h | 2 +- gcc/gthr-win32.h | 4 ++-- 7 files changed, 31 insertions(+), 17 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7698d5..42df9cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,18 @@ +2000-02-12 Kaveh R. Ghazi + + * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor, + __dereg_frame_dtor): Add prototype argument. + + * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise. + + * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise. + + * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise. + + * gthr-vxworks.h (__gthread_once): Likewise. + + * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise. + Sat Feb 12 01:44:26 MET 2000 Jan Hubicka * i386.c (ix86_emit_restore_regs_using_mov): Break out from ... diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index c2d4fac..ebfb340 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -239,7 +239,7 @@ init_dummy (void) INVOKE__main is defined. This has the additional effect of forcing cc1 to switch to the .text section. */ -static void __do_global_ctors_aux (); +static void __do_global_ctors_aux (void); void __do_global_ctors (void) { @@ -532,7 +532,7 @@ extern const struct section * #ifdef CRT_BEGIN -static void __reg_frame_ctor () __attribute__ ((constructor)); +static void __reg_frame_ctor (void) __attribute__ ((constructor)); static void __reg_frame_ctor (void) @@ -549,10 +549,9 @@ __reg_frame_ctor (void) #ifdef CRT_END -static void __dereg_frame_dtor () __attribute__ ((destructor)); +static void __dereg_frame_dtor (void) __attribute__ ((destructor)); -static -void +static void __dereg_frame_dtor (void) { const struct section *eh_frame; diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h index 3cba8a0..7c12b00 100644 --- a/gcc/gthr-dce.h +++ b/gcc/gthr-dce.h @@ -61,7 +61,7 @@ typedef pthread_mutex_t __gthread_mutex_t; static void *__gthread_active_ptr = &pthread_create; static inline int -__gthread_active_p () +__gthread_active_p (void) { return __gthread_active_ptr != 0; } @@ -69,7 +69,7 @@ __gthread_active_p () #else /* not SUPPORTS_WEAK */ static inline int -__gthread_active_p () +__gthread_active_p (void) { return 1; } @@ -77,7 +77,7 @@ __gthread_active_p () #endif /* SUPPORTS_WEAK */ static inline int -__gthread_once (__gthread_once_t *once, void (*func) ()) +__gthread_once (__gthread_once_t *once, void (*func) (void)) { if (__gthread_active_p ()) return pthread_once (once, func); diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 5f197aa..f420e5f 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -59,7 +59,7 @@ typedef pthread_mutex_t __gthread_mutex_t; static void *__gthread_active_ptr = &pthread_create; static inline int -__gthread_active_p () +__gthread_active_p (void) { return __gthread_active_ptr != 0; } @@ -67,7 +67,7 @@ __gthread_active_p () #else /* not SUPPORTS_WEAK */ static inline int -__gthread_active_p () +__gthread_active_p (void) { return 1; } @@ -75,7 +75,7 @@ __gthread_active_p () #endif /* SUPPORTS_WEAK */ static inline int -__gthread_once (__gthread_once_t *once, void (*func) ()) +__gthread_once (__gthread_once_t *once, void (*func) (void)) { if (__gthread_active_p ()) return pthread_once (once, func); diff --git a/gcc/gthr-solaris.h b/gcc/gthr-solaris.h index b76338a..0c24060 100644 --- a/gcc/gthr-solaris.h +++ b/gcc/gthr-solaris.h @@ -66,7 +66,7 @@ typedef mutex_t __gthread_mutex_t; static void *__gthread_active_ptr = &thr_create; static inline int -__gthread_active_p () +__gthread_active_p (void) { return __gthread_active_ptr != 0; } @@ -74,7 +74,7 @@ __gthread_active_p () #else /* not SUPPORTS_WEAK */ static inline int -__gthread_active_p () +__gthread_active_p (void) { return 1; } @@ -82,7 +82,7 @@ __gthread_active_p () #endif /* SUPPORTS_WEAK */ static inline int -__gthread_once (__gthread_once_t *once, void (*func) ()) +__gthread_once (__gthread_once_t *once, void (*func) (void)) { if (! __gthread_active_p ()) return -1; diff --git a/gcc/gthr-vxworks.h b/gcc/gthr-vxworks.h index eb00a43..fc6c9dc 100644 --- a/gcc/gthr-vxworks.h +++ b/gcc/gthr-vxworks.h @@ -48,7 +48,7 @@ typedef SEM_ID __gthread_mutex_t; #ifndef REG_SAVED_REG static inline int -__gthread_once (__gthread_once_t *once, void (*func) ()) +__gthread_once (__gthread_once_t *once, void (*func) (void)) { (*func)(); return 0; diff --git a/gcc/gthr-win32.h b/gcc/gthr-win32.h index 10e6581..9c82217 100644 --- a/gcc/gthr-win32.h +++ b/gcc/gthr-win32.h @@ -93,7 +93,7 @@ extern int _CRT_MT; #endif static inline int -__gthread_active_p () +__gthread_active_p (void) { #ifdef MINGW32_SUPPORTS_MT_EH return _CRT_MT; @@ -103,7 +103,7 @@ __gthread_active_p () } static inline int -__gthread_once (__gthread_once_t *once, void (*func) ()) +__gthread_once (__gthread_once_t *once, void (*func) (void)) { if (! __gthread_active_p ()) return -1; -- 2.7.4