diff options
| author | Pavlas, Zdenek <zden3k@gmail.com> | 2016-11-09 00:22:28 -0800 |
|---|---|---|
| committer | Pavlas, Zdenek <zden3k@gmail.com> | 2016-11-09 01:04:45 -0800 |
| commit | cdf715a0b5bf26f6e19dfd75fdbf23deffcc6d1c (patch) | |
| tree | ecd3e75d051da8f5ba9b625ee24148fab4c22ba5 /x86_64-gen.c | |
| parent | 3054a76249d1f0690984027db73a94995300cac2 (diff) | |
| download | tinycc-cdf715a0b5bf26f6e19dfd75fdbf23deffcc6d1c.tar.gz tinycc-cdf715a0b5bf26f6e19dfd75fdbf23deffcc6d1c.tar.bz2 | |
i386 + bcheck: fix __bound_local_new
With -b, this produces garbage. Code to call __bound_local_new
is put at wrong place, overwriting the regparam setup code.
Fix copied from x86_64-gen.c.
void __attribute__((regparm(3)))
fun(int unused)
{
char local[1];
}
Diffstat (limited to 'x86_64-gen.c')
| -rw-r--r-- | x86_64-gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c index dd52e4a..a33bb48 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -1658,7 +1658,7 @@ void gfunc_epilog(void) o(0x5250); /* save returned value, if any */ greloc(cur_text_section, sym_data, ind + 1, R_386_32); oad(0xb8, 0); /* mov xxx, %rax */ - o(0xc78948); /* mov %rax,%rdi ## first arg in %rdi, this must be ptr */ + o(0xc78948); /* mov %rax,%rdi # first arg in %rdi, this must be ptr */ gen_static_call(TOK___bound_local_delete); o(0x585a); /* restore returned value, if any */ } |
