mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 15:40:55 +08:00
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
This commit is contained in:
parent
e35b951f52
commit
d1e5132060
@ -1,3 +1,18 @@
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user