mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-12-05 15:15:47 +00:00
Fix riscv64 test 90 after struct init commit
This commit is contained in:
@@ -183,6 +183,7 @@ static int load_symofs(int r, SValue *sv, int forstore)
|
|||||||
doload = 1;
|
doload = 1;
|
||||||
}
|
}
|
||||||
label.type.t = VT_VOID | VT_STATIC;
|
label.type.t = VT_VOID | VT_STATIC;
|
||||||
|
if (!nocode_wanted)
|
||||||
put_extern_sym(&label, cur_text_section, ind, 0);
|
put_extern_sym(&label, cur_text_section, ind, 0);
|
||||||
rr = is_ireg(r) ? ireg(r) : 5;
|
rr = is_ireg(r) ? ireg(r) : 5;
|
||||||
o(0x17 | (rr << 7)); // auipc RR, 0 %pcrel_hi(sym)+addend
|
o(0x17 | (rr << 7)); // auipc RR, 0 %pcrel_hi(sym)+addend
|
||||||
|
|||||||
Reference in New Issue
Block a user