diff options
| author | bellard <bellard> | 2002-03-03 22:45:55 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2002-03-03 22:45:55 +0000 |
| commit | 4226681d366b8bf44f9c2986e620ecd010923a82 (patch) | |
| tree | 09c843ed35e8682759223c35155d003509942103 /i386-gen.c | |
| parent | 6933ac641f46c8bbe1f4c9f44382a04f1b956ba2 (diff) | |
| download | tinycc-4226681d366b8bf44f9c2986e620ecd010923a82.tar.gz tinycc-4226681d366b8bf44f9c2986e620ecd010923a82.tar.bz2 | |
added optionnal bound check compile - fixed error reporting
Diffstat (limited to 'i386-gen.c')
| -rw-r--r-- | i386-gen.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -412,6 +412,7 @@ void gfunc_prolog(int t) /* generate function epilog */ void gfunc_epilog(void) { +#ifdef CONFIG_TCC_BCHECK if (do_bounds_check && func_bound_ptr != lbounds_section->data_ptr) { int saved_ind; int *bounds_ptr; @@ -431,6 +432,7 @@ void gfunc_epilog(void) oad(0xe8, (int)__bound_local_delete - ind - 5); o(0x585a); /* restore returned value, if any */ } +#endif o(0xc9); /* leave */ if (func_ret_sub == 0) { o(0xc3); /* ret */ @@ -818,7 +820,7 @@ void gen_cvt_ftof(int t) } /* bound check support functions */ - +#ifdef CONFIG_TCC_BCHECK /* generate first part of bounded pointer addition */ void gen_bounded_ptr_add1(void) { @@ -859,6 +861,7 @@ void gen_bounded_ptr_add2(int deref) /* return pointer is there */ vtop->r = REG_EAX; } +#endif /* end of X86 code generator */ /*************************************************************/ |
