History

Remove ifdef STT_GNU_IFUNC test in tccrun.c

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.

Thomas Preud'homme committed 16 years ago

Commit 036d9411 parent c1c40401 file · +1 −5Browse files

Unified · Split

tccrun.c+1−5
@@ -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_FUNC309 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),

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