History

Fixes previous fixes

Archidemon committed 12 years ago

Commit fdf9fba1 parent ea7b17f1 file · +5 −5Browse files

Unified · Split

tccgen.c+5−5
@@ -3909,9 +3909,9 @@ ST_FUNC void unary(void) · 3908 unmodified lines
39093909 if (vtop->r & VT_SYM) {
39103910 vtop->sym = s;
39113911 #ifdef TCC_TARGET_X86_64
3912− s1->vtop->c.ull = 0;
3912+ vtop->c.ull = 0;
39133913 #else
3914− s1->vtop->c.ul = 0;
3914+ vtop->c.ul = 0;
39153915 #endif
39163916 }
39173917 break;
@@ -5127,10 +5127,10 @@ static void init_putv(CType *type, Section *sec, unsigned long c, · 1209 unmodified lines
51275127 *(long long *)ptr |= (vtop->c.ll & bit_mask) << bit_pos;
51285128 break;
51295129 case VT_PTR:
5130− if (s1->vtop->r & VT_SYM) {
5131− greloc(s1, sec, s1->vtop->sym, c, R_DATA_PTR);
5130+ if (vtop->r & VT_SYM) {
5131+ greloc(sec, vtop->sym, c, R_DATA_PTR);
51325132 }
5133− *(addr_t *)ptr |= (s1->vtop->c.ull & bit_mask) << bit_pos;
5133+ *(addr_t *)ptr |= (vtop->c.ull & bit_mask) << bit_pos;
51345134 break;
51355135 default:
51365136 if (vtop->r & VT_SYM) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t