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.
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>
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
}