From a4a20360e9df90bb8a0ed23d113ed5564882de8a Mon Sep 17 00:00:00 2001 From: grischka Date: Mon, 13 Feb 2017 18:23:43 +0100 Subject: fixes & cleanups - tccgen.c/tcc.h: allow function declaration after use: int f() { return g(); } int g() { return 1; } may be a warning but not an error see also 76cb1144ef91924c53c57ea71e6f67ce73ce1cc6 - tccgen.c: redundant code related to inline functions removed (functions used anywhere have sym->c set automatically) - tccgen.c: make 32bit llop non-equal test portable (probably not on C67) - dynarray_add: change prototype to possibly avoid aliasing problems or at least warnings - lib/alloca*.S: ".section .note.GNU-stack,"",%progbits" removed (has no effect) - tccpe: set SizeOfCode field (for correct upx decompression) - libtcc.c: fixed alternative -run invocation tcc "-run -lxxx ..." file.c (meant to load the library after file). Also supported now: tcc files ... options ... -run @ arguments ... --- arm-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arm-gen.c') diff --git a/arm-gen.c b/arm-gen.c index 8fec432..5b923fa 100644 --- a/arm-gen.c +++ b/arm-gen.c @@ -341,7 +341,7 @@ void stuff_const_harder(uint32_t op, uint32_t v) { } } -ST_FUNC uint32_t encbranch(int pos, int addr, int fail) +uint32_t encbranch(int pos, int addr, int fail) { addr-=pos+8; addr/=4; -- cgit v1.3.1