mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
Fixes previous fixes
This commit is contained in:
parent
ea7b17f641
commit
fdf9fba578
10
tccgen.c
10
tccgen.c
@ -3909,9 +3909,9 @@ ST_FUNC void unary(void)
|
||||
if (vtop->r & VT_SYM) {
|
||||
vtop->sym = s;
|
||||
#ifdef TCC_TARGET_X86_64
|
||||
s1->vtop->c.ull = 0;
|
||||
vtop->c.ull = 0;
|
||||
#else
|
||||
s1->vtop->c.ul = 0;
|
||||
vtop->c.ul = 0;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
@ -5127,10 +5127,10 @@ static void init_putv(CType *type, Section *sec, unsigned long c,
|
||||
*(long long *)ptr |= (vtop->c.ll & bit_mask) << bit_pos;
|
||||
break;
|
||||
case VT_PTR:
|
||||
if (s1->vtop->r & VT_SYM) {
|
||||
greloc(s1, sec, s1->vtop->sym, c, R_DATA_PTR);
|
||||
if (vtop->r & VT_SYM) {
|
||||
greloc(sec, vtop->sym, c, R_DATA_PTR);
|
||||
}
|
||||
*(addr_t *)ptr |= (s1->vtop->c.ull & bit_mask) << bit_pos;
|
||||
*(addr_t *)ptr |= (vtop->c.ull & bit_mask) << bit_pos;
|
||||
break;
|
||||
default:
|
||||
if (vtop->r & VT_SYM) {
|
||||
|
Loading…
Reference in New Issue
Block a user