mes/lib/mes
Danny Milosavljevic 55d38162be
Introduce libmescc.a; Put division by integer in there; split syscalls' errno off.
* build-aux/configure-lib.sh (libmescc_SOURCES): Add lib/mes/div.c,
lib/linux/*/syscall-internal.c.
* build-aux/build-lib.sh: Add libmescc.a.
* build-aux/build-mes.sh: On gcc, add "-lmescc".
* build-aux/test-c.sh: Add "-lmescc".
* build-aux/check.sh.in: Add mescc to LIBS.
* module/mescc/mescc.scm (mescc:link): Add "mescc".
* module/mescc.scm (mescc:main): Update documentation of "-nodefaultlibs"
and "-nostdlib".
* lib/mes/div.c (ldiv): Rename to...
(__mesabi_ldiv): ...this.  Avoid assert.
(__mesabi_div0): Avoid assert.
(__aeabi_idivmod): New procedure.
(__aeabi_idiv): New procedure.
(__aeabi_uidivmod): New procedure.
(__aeabi_uidiv): New procedure.
* lib/linux/x86-mes-gcc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-gcc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/x86-mes-mescc/syscall.c (__sys_call, __sys_call1, __sys_call2,
__sys_call3, __sys_call4): Move to...
* lib/linux/x86-mes-mescc/syscall-internal.c: ...here.
(__raise): New procedure.
* lib/linux/arm-mes-gcc/syscall.c: New file.
* lib/linux/arm-mes-gcc/syscall-internal.c: New file.
* lib/linux/arm-mes-mescc/syscall.c: New file.
* lib/linux/arm-mes-mescc/syscall-internal.c: New file.
* lib/gnu/syscall.c (__syscall, __syscall2, __syscall_get, __syscall_put):
Move to...
* lib/gnu/syscall-internal.c: ...here.
2020-06-02 15:04:13 +02:00
..
__assert_fail.c build: Simplify. 2019-06-08 15:36:22 +02:00
__buffered_read.c mescc: Mes C Library: lseek: Be careful clearing read buffer. 2020-01-20 22:47:52 +01:00
__mes_debug.c build: Simplify. 2019-06-08 15:36:22 +02:00
abtod.c mescc: Mes C Library: Support GNU Awk: Add abtod, implementing strtod. 2019-06-25 12:51:44 +02:00
abtol.c mescc: Mes C Library: Support GNU Awk: Add abtod, implementing strtod. 2019-06-25 12:51:44 +02:00
div.c Introduce libmescc.a; Put division by integer in there; split syscalls' errno off. 2020-06-02 15:04:13 +02:00
dtoab.c Fix dtoab. 2019-08-27 00:43:37 +02:00
eputc.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
eputs.c build: Simplify. 2019-06-08 15:36:22 +02:00
fdgetc.c mescc: Mes C Library: Add buffered read. 2019-07-27 22:58:49 +02:00
fdgets.c build: Simplify. 2019-06-08 15:36:22 +02:00
fdputc.c mes: Run build-aux/indent.sh. 2019-05-18 13:27:42 +02:00
fdputs.c build: Simplify. 2019-06-08 15:36:22 +02:00
fdungetc.c build: Simplify. 2019-06-08 15:36:22 +02:00
itoa.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
ltoa.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
ltoab.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
mes_open.c build: Simplify. 2019-06-08 15:36:22 +02:00
mini-write.c bootstrap: Build files only once. 2019-12-07 23:29:34 +01:00
ntoab.c ntoab: Use __mesabi_uldiv only for arm. 2019-09-09 16:04:13 +02:00
oputc.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
oputs.c build: Simplify. 2019-06-08 15:36:22 +02:00
search-path.c build: Simplify. 2019-06-08 15:36:22 +02:00
ultoa.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
utoa.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00