Commit d1e51320 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent e35b951f
2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* 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 <jh@suse.cz>
* i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
......
......@@ -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;
......
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment