From d6b64e2574bb4bc3c19e472b83073ff4d8786df2 Mon Sep 17 00:00:00 2001 From: gus knight Date: Mon, 27 Jul 2015 14:14:41 -0400 Subject: Clean up lots of rogue tabs. Still some more tabs to be taken care of. arm-gen.c and tcccoff.c have so many style issues that I'm just going to throw clang-format at them. --- tccrun.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index 55db310..cb98392 100644 --- a/tccrun.c +++ b/tccrun.c @@ -127,7 +127,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv) for (i=0; iEbp; #endif if (level > 0) { - for(i=1;i= 0xc0000000) - return -1; - fp = ((addr_t*)fp)[0]; - } + for(i = 1; i < level; i++) { + /* XXX: check address validity with program info */ + if (fp <= 0x1000 || fp >= 0xc0000000) + return -1; + fp = ((addr_t*)fp)[0]; + } pc = ((addr_t*)fp)[1]; } *paddr = pc; -- cgit v1.3.1