aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-02-12 10:59:22 -0700
committerTom Tromey <tromey@adacore.com>2025-03-04 07:42:53 -0700
commite933812402b2e3869d41d50b3518fb80cb57350f (patch)
treebf0e551b33892215f4624beaff7a62287928f2b7 /gdb/testsuite/lib
parent95a95ec4d401390421e2f2a7839583940445acd7 (diff)
downloadbinutils-e933812402b2e3869d41d50b3518fb80cb57350f.zip
binutils-e933812402b2e3869d41d50b3518fb80cb57350f.tar.gz
binutils-e933812402b2e3869d41d50b3518fb80cb57350f.tar.bz2
Check whether gnatmake supports -Og
gnat-llvm does not support the -Og flag. This arranges to check for this flag before using it.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/ada.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp
index 0e856f7..00ea570 100644
--- a/gdb/testsuite/lib/ada.exp
+++ b/gdb/testsuite/lib/ada.exp
@@ -284,3 +284,8 @@ gdb_caching_proc ada_minimal_encodings {} {
return [ada_simple_compile minimal_encodings \
additional_flags=-fgnat-encodings=minimal]
}
+
+# Return 1 if GNAT supports -Og.
+gdb_caching_proc ada_og {} {
+ return [ada_simple_compile gnat_og additional_flags=-Og]
+}