From 2c6ac8d7ce6e018168c17b11d978b25dba721554 Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Thu, 18 Oct 2018 11:43:40 +0100 Subject: [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 * gdb.base/vla-optimized-out.exp: Allow either optimized out or 6. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/vla-optimized-out.exp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0cc9e445ead..d33e7f2a672 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-10-19 Alan Hayward + + * gdb.base/vla-optimized-out.exp: Allow either optimized out or 6. + 2018-10-19 Alan Hayward * gdb.cp/ovldbreak.exp: Fix regexps. diff --git a/gdb/testsuite/gdb.base/vla-optimized-out.exp b/gdb/testsuite/gdb.base/vla-optimized-out.exp index 88c6fac9b98..dd04a006e0f 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} ""} \ + "o3" {{debug optimize=-O3} "|6"} \ "o3_strict" {{debug optimize=-O3 \ additional_flags=-gstrict-dwarf} \ - ""}} { + "|6"}} { with_test_prefix $test_prefix { vla_optimized_out $test_prefix $options } -- 2.30.2