This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PUSHED/OBV][PATCH] Testsuite: vla-optimized-out.exp is too pessimistic
- From: Alan Hayward <alan dot hayward at arm dot com>
- To: gdb-patches at sourceware dot org
- Cc: nd at arm dot com, Alan Hayward <alan dot hayward at arm dot com>
- Date: Fri, 19 Oct 2018 11:18:41 +0100
- Subject: [PUSHED/OBV][PATCH] Testsuite: vla-optimized-out.exp is too pessimistic
On aarch64 (and possibly other ports), for O3 the sizeof "a" can still be shown.
2018-10-19 Alan Hayward <alan.hayward@arm.com>
* gdb.base/vla-optimized-out.exp: Allow either optimized out or 6.
---
gdb/testsuite/gdb.base/vla-optimized-out.exp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.base/vla-optimized-out.exp b/gdb/testsuite/gdb.base/vla-optimized-out.exp
index 88c6fac9b9..dd04a006e0 100644
--- a/gdb/testsuite/gdb.base/vla-optimized-out.exp
+++ b/gdb/testsuite/gdb.base/vla-optimized-out.exp
@@ -70,10 +70,10 @@ proc vla_optimized_out {exe_suffix options} {
foreach {test_prefix options} \
{ "o1" {{debug optimize=-O1 additional_flags=-DNOCLONE} "6"} \
- "o3" {{debug optimize=-O3} "<optimized out>"} \
+ "o3" {{debug optimize=-O3} "<optimized out>|6"} \
"o3_strict" {{debug optimize=-O3 \
additional_flags=-gstrict-dwarf} \
- "<optimized out>"}} {
+ "<optimized out>|6"}} {
with_test_prefix $test_prefix {
vla_optimized_out $test_prefix $options
}
--
2.17.1 (Apple Git-112)