diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-12-06 21:58:45 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-12-06 21:58:45 +0000 |
commit | 77e70d34ce5c54ed93fc3212d6bff80a9a54cdbd (patch) | |
tree | 38cd594e263f4d6819b2e8fa25a8df275d35e577 /newlib/libc/sys/rtems/crt0.c | |
parent | 466fc394b8b9cfe04689de9fff53a8b49fb3444a (diff) | |
download | cygnal-77e70d34ce5c54ed93fc3212d6bff80a9a54cdbd.tar.gz cygnal-77e70d34ce5c54ed93fc3212d6bff80a9a54cdbd.tar.bz2 cygnal-77e70d34ce5c54ed93fc3212d6bff80a9a54cdbd.zip |
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/sys/rtems/crt0.c')
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 19 |
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; } |