libc: update to upstream master.

This commit is contained in:
Our Air Quality 2017-09-21 21:46:20 +10:00
parent 1e76ce25d5
commit 6080bb6ef2
19 changed files with 281 additions and 24 deletions

View file

@ -385,6 +385,15 @@ _BEGIN_STD_C
#define _JBLEN 12
#endif
#ifdef __riscv
#define _JBTYPE long
#ifdef __riscv_32e
#define _JBLEN ((4*sizeof(long))/sizeof(long))
#else
#define _JBLEN ((14*sizeof(long) + 12*sizeof(double))/sizeof(long))
#endif
#endif
#ifdef _JBLEN
#ifdef _JBTYPE
typedef _JBTYPE jmp_buf[_JBLEN];
@ -395,7 +404,7 @@ typedef int jmp_buf[_JBLEN];
_END_STD_C
#if defined(__CYGWIN__) || defined(__rtems__)
#if (defined(__CYGWIN__) || defined(__rtems__)) && __POSIX_VISIBLE
#include <signal.h>
#ifdef __cplusplus
@ -477,4 +486,4 @@ extern int _setjmp (jmp_buf);
#ifdef __cplusplus
}
#endif
#endif /* __CYGWIN__ or __rtems__ */
#endif /* (__CYGWIN__ or __rtems__) and __POSIX_VISIBLE */