]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove --save-temps from some compile tests
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 15 Jan 2024 19:18:41 +0000 (11:18 -0800)
committerH.J. Lu <(no_default)>
Mon, 15 Jan 2024 19:24:22 +0000 (11:24 -0800)
--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
gcc/testsuite/g++.target/i386/bfloat_cpp_typecheck.C
gcc/testsuite/gcc.dg/debug/dwarf2/pr111080.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-1.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-2.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-3.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr47939-4.c

index c9963ca62f9946d3bbf9749f5796c3c929d34b5b..70c9a7a431c253ec59627b1a7fe6261dbd8789df 100644 (file)
@@ -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]; };
index 256712937d439a363137da68f0ec884577bba721..3a725f59a6d07d9990b4adddff9bfecb925f9a53 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-msse2 -O3 --save-temps" } */
+/* { dg-options "-msse2 -O3" } */
 
 void foo (void)
 {
index 3949d7e7c6434b7f24a818b39fd1120063a7f966..617e5e45f9b0580edfe2662d1f930267ab24537d 100644 (file)
@@ -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;
index 3dc8e6719bbb9f16c86949548984c597a2f74073..0777c1f3ad81ca79b2d1616b829d26fca4d3461c 100644 (file)
@@ -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;
index abc1dc1e6c1f8fcc2c87b92744378fffc9777f6e..932c070f162f722942693c266c14cfcdafd2afc1 100644 (file)
@@ -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;
index 78234e93d6542dd90d8647ab651979e639f07d5e..858432aab7915a181030695f50188c77ed95743c 100644 (file)
@@ -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];
index 89a048df4a350883d32f2286291ec2c0a97a8283..57b4c5c3a1334e436ef3d2601d5a5276cbca6dc7 100644 (file)
@@ -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];