summaryrefslogtreecommitdiffstats
path: root/src/ld.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ld.h')
-rw-r--r--src/ld.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ld.h b/src/ld.h
index 29f4031b..8695c31b 100644
--- a/src/ld.h
+++ b/src/ld.h
@@ -1114,6 +1114,7 @@ extern bool dynamically_linked_p (void);
/* Checked whether the symbol is undefined and referenced from a DSO. */
extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
+#if defined __OPTIMIZE__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)
#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif
@@ -1131,5 +1132,6 @@ linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
return sym->defined && sym->in_dso;
}
+#endif /* Optimizing and not GCC 4.2. */
#endif /* ld.h */