summaryrefslogtreecommitdiff
path: root/gdbsupport/common-defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/common-defs.h')
-rw-r--r--gdbsupport/common-defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h
index eed364a48ce..e4985332e3f 100644
--- a/gdbsupport/common-defs.h
+++ b/gdbsupport/common-defs.h
@@ -191,6 +191,12 @@
#define ATTRIBUTE_UNUSED_RESULT
#endif
+#if (GCC_VERSION > 4000)
+#define ATTRIBUTE_USED __attribute__ ((__used__))
+#else
+#define ATTRIBUTE_USED
+#endif
+
#include "libiberty.h"
#include "pathmax.h"
#include "gdb/signals.h"