RISC-V: Fix alignment issue in sigjmp_buf

This commit is contained in:
Kito Cheng 2017-11-17 14:50:52 +08:00 committed by Corinna Vinschen
parent 4cd1905add
commit cba678ba02
1 changed files with 3 additions and 1 deletions

View File

@ -359,7 +359,9 @@ _BEGIN_STD_C
#endif
#ifdef __riscv
#define _JBTYPE long
/* _JBTYPE using long long to make sure the alignment is align to 8 byte,
otherwise in rv32imafd, store/restore FPR may mis-align. */
#define _JBTYPE long long
#ifdef __riscv_32e
#define _JBLEN ((4*sizeof(long))/sizeof(long))
#else