Remove --save-temps from some compile tests
Checks
Commit Message
--save-temps is needed to scan assembly outputs for assemble, link and
run tests. Not all compile tests need --save-temps unless they used to
trigger GCC bugs. Run --save-temps from compile tests if not needed.
PR testsuite/113369
* g++.dg/abi/ref-temp1.C: Remove --save-temps.
* g++.target/i386/bfloat_cpp_typecheck.C: Likewise.
* gcc.dg/debug/dwarf2/pr111080.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-1.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-2.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-3.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-4.c: Likewise.
---
gcc/testsuite/g++.dg/abi/ref-temp1.C | 1 -
gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C | 2 +-
gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c | 2 +-
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c | 2 +-
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c | 2 +-
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c | 2 +-
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c | 2 +-
7 files changed, 6 insertions(+), 7 deletions(-)
@@ -1,7 +1,6 @@
// From ABI document
// { dg-do compile { target c++14 } }
// { dg-skip-if "No .weak" { { hppa*-*-hpux* } && { ! lp64 } } }
-// { dg-additional-options --save-temps }
struct A { const int (&x)[3]; };
struct B { const A (&x)[2]; };
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-msse2 -O3 --save-temps" } */
+/* { dg-options "-msse2 -O3" } */
void foo (void)
{
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-save-temps -gdwarf-3 -dA" } */
+/* { dg-options "-gdwarf-3 -dA" } */
struct foo {
int field_number_1;
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-save-temps -gdwarf -dA" } */
+/* { dg-options "-gdwarf -dA" } */
typedef struct _Harry { int dummy; } Harry_t;
Harry_t harry;
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-save-temps -gdwarf -dA" } */
+/* { dg-options "-gdwarf -dA" } */
typedef const struct _Harry { int dummy; } Harry_t;
Harry_t harry;
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-save-temps -gdwarf -dA" } */
+/* { dg-options "-gdwarf -dA" } */
typedef struct _Harry { int dummy; } Harry_t;
const Harry_t harry[5];
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-save-temps -gdwarf -dA" } */
+/* { dg-options "-gdwarf -dA" } */
typedef const struct _Harry { int dummy; } Harry_t;
Harry_t harry[10];