mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 11:30:56 +08:00
libc/sys/rtems/crt0.c: Fix two warnings.
__assert_func() is marked as noreturn and stub should not. __tls_get_addr() needed to return a value..
This commit is contained in:
parent
ee0986cfe1
commit
59584ff16b
@ -195,13 +195,13 @@ RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t s), { return 0; })
|
||||
RTEMS_STUB(void, _free_r(struct _reent *r, void *p), { })
|
||||
|
||||
/* stubs for functions required by libc/stdlib */
|
||||
RTEMS_STUB(void, __assert_func(const char *file, int line, const char *func, const char *failedexpr), { })
|
||||
RTEMS_STUB(void, __assert_func(const char *file, int line, const char *func, const char *failedexpr), { while (1) ;})
|
||||
|
||||
#if defined(__arm__)
|
||||
RTEMS_STUB(void, __aeabi_read_tp(void), { })
|
||||
#endif
|
||||
|
||||
RTEMS_STUB(void *, __tls_get_addr(const void *ti), { })
|
||||
RTEMS_STUB(void *, __tls_get_addr(const void *ti), { return NULL; })
|
||||
|
||||
/* The PowerPC expects certain symbols to be defined in the linker script. */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user