FAIL: gcc.dg/guality/vla-1.c -O0 line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O0 line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -O1 line 17 i == 5 FAIL: gcc.dg/guality/vla-1.c -O1 line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O1 line 24 i == 5 FAIL: gcc.dg/guality/vla-1.c -O1 line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -O2 line 17 i == 5 FAIL: gcc.dg/guality/vla-1.c -O2 line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O2 line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -O3 -fomit-frame-pointer line 17 i == 5 FAIL: gcc.dg/guality/vla-1.c -O3 -fomit-frame-pointer line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O3 -fomit-frame-pointer line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -O3 -g line 17 i == 5 FAIL: gcc.dg/guality/vla-1.c -O3 -g line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O3 -g line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -Os line 17 i == 5 FAIL: gcc.dg/guality/vla-1.c -Os line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -Os line 24 i == 5 FAIL: gcc.dg/guality/vla-1.c -Os line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -O2 -flto line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O2 -flto line 24 sizeof (a) == 17 * sizeof (short) FAIL: gcc.dg/guality/vla-1.c -O2 -fwhopr line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O2 -fwhopr line 24 sizeof (a) == 17 * sizeof (short) Spawning: gdb -nx -nw -quiet -x vla-1.gdb ./vla-1.exe Reading symbols from /home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/vla-1.exe.. .done. Breakpoint 1 at 0x105ec: file /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/gualit y/vla-1.c, line 17. Breakpoint 1, f1 (i=5) at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/vla-1.c:17 17 return a[0]; /* { dg-final { gdb-test 17 "sizeof (a)" "6" } } */ $1 = 0 $2 = 6 A debugging session is active. Inferior 1 [process 2522] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal] 0 != 6 FAIL: gcc.dg/guality/vla-1.c -O0 line 17 sizeof (a) == 6 Spawning: gdb -nx -nw -quiet -x vla-1.gdb ./vla-1.exe Reading symbols from /home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/vla-1.exe.. .done. Breakpoint 1 at 0x106b8: file /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/gualit y/vla-1.c, line 24. Breakpoint 1, f2 (i=5) at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/vla-1.c:24 24 bar (a); /* { dg-final { gdb-test 24 "sizeof (a)" "17 * s izeof (short)" } } */ $1 = 0 $2 = 34 A debugging session is active. Inferior 1 [process 2544] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal] 0 != 34 FAIL: gcc.dg/guality/vla-1.c -O0 line 24 sizeof (a) == 17 * sizeof (short) Spawning: gdb -nx -nw -quiet -x vla-1.gdb ./vla-1.exe Reading symbols from /home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/vla-1.exe.. .done. Breakpoint 1 at 0x10540: file /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/gualit y/vla-1.c, line 17. Breakpoint 1, f1 (i=<value optimized out>) at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/vla-1.c:18 18 } $1 = <value optimized out> $2 = 5 A debugging session is active. Inferior 1 [process 2567] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal] <value optimized out> != 5 FAIL: gcc.dg/guality/vla-1.c -O1 line 17 i == 5 Spawning: gdb -nx -nw -quiet -x vla-1.gdb ./vla-1.exe Reading symbols from /home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/vla-1.exe...done. Breakpoint 1 at 0x10580: file /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/vla-1.c, line 24. Breakpoint 1, f2 (i=<value optimized out>) at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/vla-1.c:24 24 bar (a); /* { dg-final { gdb-test 24 "sizeof (a)" "17 * sizeof (short)" } } */ $1 = <value optimized out> $2 = 5 A debugging session is active. Inferior 1 [process 2587] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal] <value optimized out> != 5 FAIL: gcc.dg/guality/vla-1.c -O1 line 24 i == 5
Goes away with gdb head as of 2010-06-19.
This gdb version is broken and test changed to UNSUPPORTED.