mlibc: GNU Gcc support: setjmp, longjmp.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 26 Nov 2017 12:10:46 +0000 (13:10 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 26 Nov 2017 12:10:46 +0000 (13:10 +0100)
commite8884d83e1d38f5de7d53dc7bf614621db092b9e
tree3ccabd23e68c92f18254f4a0af0fc872877a4bfb
parent83f2a55c2cbe8b27c3cad6e3b99a8256988cca9e
mlibc: GNU Gcc support: setjmp, longjmp.

* stage0/x86.M1 (jmp____*%ebx): New macro.
  (mov____0x8(%ebp),%ebp): New macro.
  (mov____0x8(%ebp),%esp): New macro.
* include/setjmp.h (jmp_buf): Redefine as struct.
* lib/libc-mes+tcc.c (longjmp, setjmp): Implement.
* scaffold/tests/80-setjmp.c: Test it.
* make.scm ("80-setjmp"): Build it.
* .gitignore: Ignore *.tcc-guile.
.gitignore
include/setjmp.h
lib/libc-mes+tcc.c
make.scm
scaffold/tests/80-setjmp.c [new file with mode: 0644]
stage0/x86.M1