summaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/compiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib/compiler.cc')
-rw-r--r--gdb/testsuite/lib/compiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc
index aa35c7510ff..5cb00f6685a 100644
--- a/gdb/testsuite/lib/compiler.cc
+++ b/gdb/testsuite/lib/compiler.cc
@@ -13,7 +13,7 @@
definition made with 'set" to see if one already exists, and if so
warn about conflicts if it is being set to something else. */
-#if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 6
+#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
set supports_template_debugging 1
#else
set supports_template_debugging 0