Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-12-07 00:58:45 +0300
committerJeff Johnston <jjohnstn@redhat.com>2005-12-07 00:58:45 +0300
commit77e70d34ce5c54ed93fc3212d6bff80a9a54cdbd (patch)
tree38cd594e263f4d6819b2e8fa25a8df275d35e577 /newlib/libc
parent466fc394b8b9cfe04689de9fff53a8b49fb3444a (diff)
2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/sys/rtems/crt0.c: Add rtems_gxx_key_create, rtems_gxx_key_delete, rtems_gxx_getspecific, rtems_gxx_setspecific, rtems_gxx_mutex_trylock, rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/rtems/crt0.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index e40a8fc03..47332b752 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -21,10 +21,27 @@ void *realloc() { return 0; }
void free() { ; }
void abort() { ; }
int raise() { return -1; }
+
+#if defined(__GNUC__)
+/*
+ * stubs for libstdc++ rtems-threads support functions from gcc/gthr-rtems.h
+ */
+int rtems_gxx_once() { return -1; }
+int rtems_gxx_key_create() { return -1; }
+int rtems_gxx_key_delete() { return -1; }
+void *rtems_gxx_getspecific() { return 0; }
+int rtems_gxx_setspecific() { return -1; }
+
void rtems_gxx_mutex_init() { }
int rtems_gxx_mutex_lock() { return -1; }
+int rtems_gxx_mutex_trylock() { return -1; }
int rtems_gxx_mutex_unlock() { return -1; }
-int rtems_gxx_once() { return -1; }
+
+void rtems_gxx_recursive_mutex_init() { }
+int rtems_gxx_recursive_mutex_lock() { return -1; }
+int rtems_gxx_recursive_mutex_trylock() { return -1; }
+int rtems_gxx_recursive_mutex_unlock() { return -1; }
+#endif
/* stubs for functions from reent.h */
int _close_r (struct _reent *r, int fd) { return -1; }