diff options
author | Tom Tromey <tromey@adacore.com> | 2025-02-12 08:49:30 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-02-12 10:03:28 -0700 |
commit | 03667c68a6e52e859895c236c9ac2a19b0dae915 (patch) | |
tree | 47eb2fe8adea37ebb625dab28b264afea3adb61a | |
parent | 5cd3922ae0de5aa3212827559ba586bb08f3fddd (diff) | |
download | binutils-03667c68a6e52e859895c236c9ac2a19b0dae915.zip binutils-03667c68a6e52e859895c236c9ac2a19b0dae915.tar.gz binutils-03667c68a6e52e859895c236c9ac2a19b0dae915.tar.bz2 |
Reorder gnatmake arguments in inline-section-gc.exp, again
Tom de Vries pointed out that commit 8cfa1fc4 ("Reorder gnatmake
arguments in inline-section-gc.exp") caused a regression with an older
version of dejagnu.
This patch works around that problem by further reordering the
arguments to gnatmake and also arranging to leave gnatmake in "-margs"
mode.
-rw-r--r-- | gdb/testsuite/gdb.ada/inline-section-gc.exp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.ada/inline-section-gc.exp b/gdb/testsuite/gdb.ada/inline-section-gc.exp index 55cd156..78539aa 100644 --- a/gdb/testsuite/gdb.ada/inline-section-gc.exp +++ b/gdb/testsuite/gdb.ada/inline-section-gc.exp @@ -19,14 +19,20 @@ require allow_ada_tests standard_ada_testfile caller +# The ordering here works around a bug in older versions of dejagnu. +# In particular we use "additional_flags" and not "ldflags" to ensure +# the ordering (this is ok because the distinction doesn't really +# matter for gnatmake anyway) and furthermore we take care to end with +# "-margs" so that any flags appended by dejagnu are applied in the +# correct mode. set options { debug optimize=-O2 additional_flags=-ffunction-sections - ldflags=-margs additional_flags=-gnatn - ldflags=-largs - ldflags=-Wl,--gc-sections + additional_flags=-largs + additional_flags=-Wl,--gc-sections + additional_flags=-margs } if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $options] != ""} { return -1 |