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 | 306 | sym < sym_end; |
| 307 | 307 | sym++) { |
| 308 | 308 | type = ELFW(ST_TYPE)(sym->st_info); |
| 309 | − if (type == STT_FUNC | |
| 310 | −#ifdef STT_GNU_IFUNC | |
| 311 | − || type == STT_GNU_IFUNC | |
| 312 | −#endif | |
| 313 | − ) { | |
| 309 | + if (type == STT_FUNC || type == STT_GNU_IFUNC) { | |
| 314 | 310 | if (wanted_pc >= sym->st_value && |
| 315 | 311 | wanted_pc < sym->st_value + sym->st_size) { |
| 316 | 312 | pstrcpy(last_func_name, sizeof(last_func_name), |