summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-12 19:19:01 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-12 19:19:01 +0000
commit205b5771ac9338ca79b9191c4e57de74e05ef028 (patch)
treebb69efaa2a8d376889e6ca501bfc5aafd4d9c33a /gcc
parent45ba0d623ad80a0698f3693f2bac8edb8ed1dbbd (diff)
downloadgcc-205b5771ac9338ca79b9191c4e57de74e05ef028.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog15
-rw-r--r--gcc/crtstuff.c9
-rw-r--r--gcc/gthr-dce.h6
-rw-r--r--gcc/gthr-posix.h6
-rw-r--r--gcc/gthr-solaris.h6
-rw-r--r--gcc/gthr-vxworks.h2
-rw-r--r--gcc/gthr-win32.h4
7 files changed, 31 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e7698d57f14..42df9cdc0db 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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 ...
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index c2d4fac605a..ebfb340f51b 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 3cba8a0e4b8..7c12b00b8b5 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 5f197aa521c..f420e5f8be5 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 b76338af864..0c240608135 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 eb00a4346cc..fc6c9dc932d 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 10e65815ac3..9c822179592 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;