gthr-gnat.c: Remove #undef UNUSED.

* gthr-gnat.c: Remove #undef UNUSED.
	(__gnat_default_lock, __gnat_default_unlock): Prototype.
	(__gnat_task_lock, __gnat_task_unlock): Make declarations
	prototypes.
	(__gnat_install_locks): Convert declaration to ISO C90, make
	parameter declarations prototypes, and remove blank line.
	* gthr-gnat.h (__gnat_install_locks): Make parameter
	declarations prototypes.

From-SVN: r67238
This commit is contained in:
Matt Kraai 2003-05-30 00:43:08 +00:00
parent f0ae2326c0
commit 8fdf766886
3 changed files with 19 additions and 10 deletions

View File

@ -1,3 +1,14 @@
2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
* gthr-gnat.c: Remove #undef UNUSED.
(__gnat_default_lock, __gnat_default_unlock): Prototype.
(__gnat_task_lock, __gnat_task_unlock): Make declarations
prototypes.
(__gnat_install_locks): Convert declaration to ISO C90, make
parameter declarations prototypes, and remove blank line.
* gthr-gnat.h (__gnat_install_locks): Make parameter
declarations prototypes.
2003-05-29 Jason Merrill <jason@redhat.com>
* Makefile.in (unstrap): Remove stage_last after make unstage1.
@ -40,6 +51,7 @@
(expand_unreachable_stmt): Expand unreachable while statements
using genrtl_do_stmt_1.
>>>>>>> 1.17950
2003-05-29 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips-protos.h (mips_output_load_label): Declare.

View File

@ -35,6 +35,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define UNUSED(x) x __attribute__((unused))
#endif
void __gnat_default_lock (void);
void __gnat_default_unlock (void);
void
__gnat_default_lock (void)
{
@ -47,17 +50,14 @@ __gnat_default_unlock (void)
return;
}
static void (*__gnat_task_lock) () = *__gnat_default_lock;
static void (*__gnat_task_unlock) () = *__gnat_default_unlock;
static void (*__gnat_task_lock) (void) = *__gnat_default_lock;
static void (*__gnat_task_unlock) (void) = *__gnat_default_unlock;
void
__gnat_install_locks (lock, unlock)
void (*lock) ();
void (*unlock) ();
__gnat_install_locks (void (*lock) (void), void (*unlock) (void))
{
__gnat_task_lock = lock;
__gnat_task_unlock = unlock;
}
int
@ -79,6 +79,3 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex))
__gnat_task_unlock ();
return 0;
}
#undef UNUSED

View File

@ -34,7 +34,7 @@ typedef int __gthread_mutex_t;
#define __GTHREAD_MUTEX_INIT 0
extern void __gnat_install_locks (void (*lock) (), void (*unlock) ());
extern void __gnat_install_locks (void (*lock) (void), void (*unlock) (void));
extern int __gthread_active_p (void);
extern int __gthread_mutex_lock (__gthread_mutex_t *);
extern int __gthread_mutex_unlock (__gthread_mutex_t *);