Call fill_got_entry unconditionally from fill_got so as to avoid warnings on !x86-64 architectures. This can be done since this code path is only followed by x86-64 architecture anyway.
Unified · Split
| @@ -1541,13 +1541,11 @@ ST_FUNC void fill_got(TCCState *s1) · 1540 unmodified lines | ||
| 1541 | 1541 | continue; |
| 1542 | 1542 | for_each_elem(s, 0, rel, ElfW_Rel) { |
| 1543 | 1543 | switch (ELFW(R_TYPE) (rel->r_info)) { |
| 1544 | −#ifdef TCC_TARGET_X86_64 | |
| 1545 | 1544 | case R_X86_64_GOT32: |
| 1546 | 1545 | case R_X86_64_GOTPCREL: |
| 1547 | 1546 | case R_X86_64_PLT32: |
| 1548 | 1547 | fill_got_entry(s1, rel); |
| 1549 | 1548 | break; |
| 1550 | −#endif | |
| 1551 | 1549 | } |
| 1552 | 1550 | } |
| 1553 | 1551 | } |