Remove --save-temps from some compile tests

Message ID 20240115191841.1208268-1-hjl.tools@gmail.com
State Unresolved
Headers
Series Remove --save-temps from some compile tests |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

H.J. Lu Jan. 15, 2024, 7:18 p.m. UTC
  --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(-)
  

Patch

diff --git a/gcc/testsuite/g++.dg/abi/ref-temp1.C b/gcc/testsuite/g++.dg/abi/ref-temp1.C
index c9963ca62f9..70c9a7a431c 100644
--- a/gcc/testsuite/g++.dg/abi/ref-temp1.C
+++ b/gcc/testsuite/g++.dg/abi/ref-temp1.C
@@ -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]; };
diff --git a/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C b/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C
index 256712937d4..3a725f59a6d 100644
--- a/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C
+++ b/gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-msse2 -O3 --save-temps" } */
+/* { dg-options "-msse2 -O3" } */
 
 void foo (void)
 {
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c
index 3949d7e7c64..617e5e45f9b 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c
@@ -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;
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c
index 3dc8e6719bb..0777c1f3ad8 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c
@@ -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;
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c
index abc1dc1e6c1..932c070f162 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c
@@ -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;
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c
index 78234e93d65..858432aab79 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c
@@ -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];
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c
index 89a048df4a3..57b4c5c3a13 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c
@@ -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];