From 6d1356391152de352c319149c406e2b8850679d1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 21 Sep 2001 17:51:10 +0000 Subject: 2001-09-14 Eric Norum * libc/gxx_wrappers.c: Modifications to make gcc 3.x happy. --- cpukit/libcsupport/src/gxx_wrappers.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'cpukit/libcsupport/src') diff --git a/cpukit/libcsupport/src/gxx_wrappers.c b/cpukit/libcsupport/src/gxx_wrappers.c index f5c6f2c92b..f003a85917 100644 --- a/cpukit/libcsupport/src/gxx_wrappers.c +++ b/cpukit/libcsupport/src/gxx_wrappers.c @@ -46,11 +46,6 @@ typedef void *__gthread_mutex_t; #define DEBUG_GXX_WRAPPERS 1 */ - -/* prototype for the terminate() */ -extern void __terminate( void ); - - #ifdef DEBUG_GXX_WRAPPERS /* local function to return the ID of the calling thread */ static rtems_id get_tid( void ) @@ -145,7 +140,7 @@ void *rtems_gxx_getspecific(__gthread_key_t key) */ if( rtems_task_variable_add( RTEMS_SELF, (void **)key, NULL ) != RTEMS_SUCCESSFUL ) { - __terminate (); + rtems_panic ("rtems_gxx_getspecific"); } *( void ** )key = (void *)0; } @@ -188,7 +183,7 @@ void rtems_gxx_mutex_init (__gthread_mutex_t *mutex) 0, (rtems_id *)mutex ) != RTEMS_SUCCESSFUL ) { - __terminate (); + rtems_panic ("rtems_gxx_mutex_init"); } #ifdef DEBUG_GXX_WRAPPERS printk( "gxx_wrappers: mutex init complete =%X\n", *mutex ); -- cgit v1.2.3