STT_GNU_IFUNC is always defined (there is no conditional definition of it) so the ifdef test for STT_GNU_IFUNC in tccrun.c has no reason to be.
Unified · Split
| @@ -306,11 +306,7 @@ static uplong rt_printline(uplong wanted_pc) · 305 unmodified lines | |||
| 306 | sym < sym_end; | 306 | sym < sym_end; |
| 307 | sym++) { | 307 | sym++) { |
| 308 | type = ELFW(ST_TYPE)(sym->st_info); | 308 | type = ELFW(ST_TYPE)(sym->st_info); |
| 309 | if (type == STT_FUNC | 309 | if (type == STT_FUNC || type == STT_GNU_IFUNC) { |
| 310 | #ifdef STT_GNU_IFUNC | ||
| 311 | || type == STT_GNU_IFUNC | ||
| 312 | #endif | ||
| 313 | ) { | ||
| 314 | if (wanted_pc >= sym->st_value && | 310 | if (wanted_pc >= sym->st_value && |
| 315 | wanted_pc < sym->st_value + sym->st_size) { | 311 | wanted_pc < sym->st_value + sym->st_size) { |
| 316 | pstrcpy(last_func_name, sizeof(last_func_name), | 312 | pstrcpy(last_func_name, sizeof(last_func_name), |