aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-10-18 11:43:40 +0100
committerAlan Hayward <alan.hayward@arm.com>2018-10-19 11:21:12 +0100
commit2c6ac8d7ce6e018168c17b11d978b25dba721554 (patch)
tree96f5e4d3773ba6557943675b05dc90f61f2c30b4 /gdb
parent2bc69f2588c0beef39a56f057f61f6a063ed4405 (diff)
downloadgdb-2c6ac8d7ce6e018168c17b11d978b25dba721554.zip
gdb-2c6ac8d7ce6e018168c17b11d978b25dba721554.tar.gz
gdb-2c6ac8d7ce6e018168c17b11d978b25dba721554.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/vla-optimized-out.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0cc9e44..d33e7f2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2018-10-19 Alan Hayward <alan.hayward@arm.com>
+ * gdb.base/vla-optimized-out.exp: Allow either optimized out or 6.
+
+2018-10-19 Alan Hayward <alan.hayward@arm.com>
+
* gdb.cp/ovldbreak.exp: Fix regexps.
2018-10-19 Alan Hayward <alan.hayward@arm.com>
diff --git a/gdb/testsuite/gdb.base/vla-optimized-out.exp b/gdb/testsuite/gdb.base/vla-optimized-out.exp
index 88c6fac..dd04a00 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
}