scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 9f205208845d91f9d66bb2e697259490cb5bab3f
parent 1ae4f9227899be75c7902cd82a5dc50c7d73a84a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Sep 2018 06:44:07 +0100

Merge remote-tracking branch 'simple-cc/master'

Diffstat:
Mlib/c/atoi.c | 1-
Mlib/c/atoll.c | 1-
Mlib/c/memcmp.c | 2+-
Mlib/crt/amd64-sysv-netbsd/crt.s | 2+-
4 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/c/atoi.c b/lib/c/atoi.c @@ -23,4 +23,3 @@ atoi(const char *s) return sign * n; } - diff --git a/lib/c/atoll.c b/lib/c/atoll.c @@ -24,4 +24,3 @@ atoll(const char *s) return sign * n; } - diff --git a/lib/c/memcmp.c b/lib/c/memcmp.c @@ -9,6 +9,6 @@ memcmp(const void *s1, const void *s2, size_t n) for ( ; n > 0 && *s == *t; --n) ++s, ++t; - + return (n > 0) ? *(unsigned char *) s - *(unsigned char *) t : 0; } diff --git a/lib/crt/amd64-sysv-netbsd/crt.s b/lib/crt/amd64-sysv-netbsd/crt.s @@ -17,8 +17,8 @@ _environ: .align 8 .global _start _start: - movq %rsp,%rbp andq $-16,%rsp + movq %rsp,%rbp movq (%rbp),%rdi # rdi = argc leaq 8(%rbp),%rsi # rsi = argv