[testsuite/guality] Run guality tests with Og
authorTom de Vries <tdevries@suse.de>
Sun, 15 Jul 2018 16:26:08 +0000 (16:26 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sun, 15 Jul 2018 16:26:08 +0000 (16:26 +0000)
commit5155feb3f80fdb3c4fcce8349707f14595037da2
tree7909c19f130916953f847c196e07361579d43a08
parent14fa87d6685d8aa00d07ea262bbebfd36c8546c3
[testsuite/guality] Run guality tests with Og

We advertise Og as the optimization level of choice for the standard
edit-compile-debug cycle, but do not run the guality tests for Og with the
default torture options.

This patch ensures that we test -Og in the guality tests.

F.i., for gcc.dg/guality there are 45 fails for Og (while there are none for
O1), in these test-cases:
...
gcc.dg/guality/pr54200.c
gcc.dg/guality/pr54970.c
gcc.dg/guality/pr56154-1.c
gcc.dg/guality/pr59776.c
gcc.dg/guality/sra-1.c
...

2018-07-15  Tom de Vries  <tdevries@suse.de>

* lib/gcc-gdb-test.exp (guality_minimal_options): New proc.
* lib/gfortran-dg.exp (gfortran-dg-runtest): Don't call torture-init if
already called.
* g++.dg/guality/guality.exp: Ensure Og is part of torture options.
* gcc.dg/guality/guality.exp: Same.
* gfortran.dg/guality/guality.exp: Same.

From-SVN: r262668
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/guality/guality.exp
gcc/testsuite/gcc.dg/guality/guality.exp
gcc/testsuite/gfortran.dg/guality/guality.exp
gcc/testsuite/lib/gcc-gdb-test.exp
gcc/testsuite/lib/gfortran-dg.exp