aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-02-21 11:46:51 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-02-21 13:30:17 -0500
commitaca8a74923c4a0c222a2f8f5f3e23de84ab19e77 (patch)
tree18394829590d2ecde9cf1209178a6d5a19b7c611 /gdbsupport
parent99eeecc8d276e5af745e48825d66efff693a7678 (diff)
downloadgdb-aca8a74923c4a0c222a2f8f5f3e23de84ab19e77.zip
gdb-aca8a74923c4a0c222a2f8f5f3e23de84ab19e77.tar.gz
gdb-aca8a74923c4a0c222a2f8f5f3e23de84ab19e77.tar.bz2
gdb: remove some GCC version checks
Since we now require C++17, and therefore gcc >= 9, it's no longer useful to have gcc version checks for older gcc version. Change-Id: I3a87baa03c475f2b847b422b16b69c5ff7215b54 Reviewed-by: Kevin Buettner <kevinb@redhat.com> Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/common-defs.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h
index 8ec559e..6120719 100644
--- a/gdbsupport/common-defs.h
+++ b/gdbsupport/common-defs.h
@@ -187,17 +187,8 @@
#undef ATTRIBUTE_NONNULL
#define ATTRIBUTE_NONNULL(m)
-#if GCC_VERSION >= 3004
#define ATTRIBUTE_UNUSED_RESULT __attribute__ ((__warn_unused_result__))
-#else
-#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"