aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2010-10-10 16:23:25 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2010-10-10 16:25:41 +0200
commit036d94112d4f0db6eb82b79bbfd0c9ef2328df34 (patch)
tree1e77e60db28a6d370be6d54c844b4da1479808c5
parentc1c4040d752190c45850b19c165d20619cd1de5a (diff)
downloadtinycc-036d94112d4f0db6eb82b79bbfd0c9ef2328df34.tar.gz
tinycc-036d94112d4f0db6eb82b79bbfd0c9ef2328df34.tar.bz2
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.
-rw-r--r--tccrun.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tccrun.c b/tccrun.c
index c45aeb6..24e1f95 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -306,11 +306,7 @@ static uplong rt_printline(uplong wanted_pc)
sym < sym_end;
sym++) {
type = ELFW(ST_TYPE)(sym->st_info);
- if (type == STT_FUNC
-#ifdef STT_GNU_IFUNC
- || type == STT_GNU_IFUNC
-#endif
- ) {
+ if (type == STT_FUNC || type == STT_GNU_IFUNC) {
if (wanted_pc >= sym->st_value &&
wanted_pc < sym->st_value + sym->st_size) {
pstrcpy(last_func_name, sizeof(last_func_name),