[gcc(refs/users/marxin/heads/stabs-removal)] Remove stabs from tests.

Martin Liska marxin@gcc.gnu.org
Thu Aug 25 06:54:36 GMT 2022


https://gcc.gnu.org/g:0ed1cc33ac318f159013219e57a079303623ee34

commit 0ed1cc33ac318f159013219e57a079303623ee34
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Aug 25 08:50:11 2022 +0200

    Remove stabs from tests.

Diff:
---
 gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C    | 12 --------
 gcc/testsuite/g++.dg/other/PR23205.C               | 17 -----------
 gcc/testsuite/g++.dg/other/pr23205-2.C             | 17 -----------
 gcc/testsuite/gcc.dg/20040813-1.c                  | 14 ---------
 gcc/testsuite/gcc.dg/darwin-20040809-2.c           | 15 ----------
 gcc/testsuite/gcc.dg/debug/pr35154.c               | 35 ----------------------
 gcc/testsuite/gcc.dg/pr69471-2.c                   |  8 -----
 .../gcc.target/powerpc/stabs-attrib-vect-darwin.c  | 12 --------
 gcc/testsuite/gcc.target/s390/20041216-1.c         | 23 --------------
 gcc/testsuite/gfortran.dg/debug/pr35154-stabs.f    | 35 ----------------------
 gcc/testsuite/lib/target-supports.exp              |  9 ------
 gcc/testsuite/objc.dg/stabs-1.m                    | 19 ------------
 12 files changed, 216 deletions(-)

diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
deleted file mode 100644
index 8464aa35a1a..00000000000
--- a/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Origin: PR c++/51032
-// { dg-do compile { target { c++11 && stabs } } }
-// { dg-options "-gstabs+" }
-
-template <class C>
-struct A {
-    template<class U> using B = U*;
-    int a;
-};
-
-A<int> a;
-
diff --git a/gcc/testsuite/g++.dg/other/PR23205.C b/gcc/testsuite/g++.dg/other/PR23205.C
deleted file mode 100644
index 65ba1f6f306..00000000000
--- a/gcc/testsuite/g++.dg/other/PR23205.C
+++ /dev/null
@@ -1,17 +0,0 @@
-/* { dg-do compile { target stabs } } */
-/* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types" } */
-
-const int foobar = 4;
-int foo ()
-{
-        return foobar + 1;
-}
-
-int main()
-{
-        int i;
-        i = foo();
-        return i;
-}
-
-/* { dg-final { scan-assembler ".stabs.*foobar:(c=i|S)" } } */
diff --git a/gcc/testsuite/g++.dg/other/pr23205-2.C b/gcc/testsuite/g++.dg/other/pr23205-2.C
deleted file mode 100644
index 7b25c071a67..00000000000
--- a/gcc/testsuite/g++.dg/other/pr23205-2.C
+++ /dev/null
@@ -1,17 +0,0 @@
-/* { dg-do compile { target stabs } } */
-/* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types -ftoplevel-reorder" } */
-
-const int foobar = 4;
-int foo ()
-{
-        return foobar + 1;
-}
-
-int main()
-{
-        int i;
-        i = foo();
-        return i;
-}
-
-/* { dg-final { scan-assembler ".stabs.*foobar:c=i" } } */
diff --git a/gcc/testsuite/gcc.dg/20040813-1.c b/gcc/testsuite/gcc.dg/20040813-1.c
deleted file mode 100644
index 9cf664dd769..00000000000
--- a/gcc/testsuite/gcc.dg/20040813-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Test lang in N_SO stab.  */
-/* Contributed by Devang Patel  <dpatel@apple.com>  */
-
-/* { dg-do compile { target stabs } } */
-/* { dg-options "-gstabs" } */
-
-int
-main ()
-{
-  return 0;
-}
-
-/* { dg-final { scan-assembler ".stabs.*100,0,2" } } */
-
diff --git a/gcc/testsuite/gcc.dg/darwin-20040809-2.c b/gcc/testsuite/gcc.dg/darwin-20040809-2.c
deleted file mode 100644
index 98d571276d0..00000000000
--- a/gcc/testsuite/gcc.dg/darwin-20040809-2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Test dead code strip support.  */
-/* Contributed by Devang Patel  <dpatel@apple.com>  */
-
-/* { dg-do compile { target { *-*-darwin* && stabs } } } */
-/* { dg-options "-gstabs+ -fno-eliminate-unused-debug-symbols" } */
-
-int
-main ()
-{
-  return 0;
-}
-
-/* { dg-final { scan-assembler ".stabd.46,0,0" } } */
-/* { dg-final { scan-assembler ".stabd.78,0,0" } } */
-
diff --git a/gcc/testsuite/gcc.dg/debug/pr35154.c b/gcc/testsuite/gcc.dg/debug/pr35154.c
deleted file mode 100644
index 08eefaf66f9..00000000000
--- a/gcc/testsuite/gcc.dg/debug/pr35154.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Test to make sure that stabs for C symbols that go into .comm have the
-   proper structure.  These should be lettered G for the struct that gives
-   the name to the .comm, and should be V or S for .lcomm symbols.  */
-
-__attribute__ ((used))
-static char i_outer;
-struct {
-   char f1;
-   char f2;
-} opta;
-struct {
-   char f1;
-   char f2;
-} optb;
-
-int
-main()
-{
-   static char i_inner[2] __attribute__ ((used));
-   i_inner[0] = 'a'; i_inner[1] = 'b';
-   opta.f1 = 'c';
-   opta.f2 = 'd';
-   optb.f1 = 'C';
-   optb.f2 = 'D';
-   i_outer = 'e';
-/* { dg-do compile } */
-/* { dg-skip-if "No stabs" { mmix-*-* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* } } */
-/* { dg-skip-if "stabs only" { *-*-* } { "*" } { "-gstabs" } } */
-   return 0;
-}
-
-/* { dg-final { scan-assembler ".stabs.*i_inner:V" } } */
-/* { dg-final { scan-assembler ".stabs.*i_outer:S" } } */
-/* { dg-final { scan-assembler ".stabs.*opta:G" } } */
-/* { dg-final { scan-assembler ".stabs.*optb:G" } } */
diff --git a/gcc/testsuite/gcc.dg/pr69471-2.c b/gcc/testsuite/gcc.dg/pr69471-2.c
deleted file mode 100644
index d5799604b36..00000000000
--- a/gcc/testsuite/gcc.dg/pr69471-2.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-gstabs2 -gdwarf-4 -gstabs3" } */
-/* { dg-error "conflicts with prior selectio" "" { target *-*-* } 0 } */
-
-void
-foo (void)
-{
-}
diff --git a/gcc/testsuite/gcc.target/powerpc/stabs-attrib-vect-darwin.c b/gcc/testsuite/gcc.target/powerpc/stabs-attrib-vect-darwin.c
deleted file mode 100644
index 5c7acf18a58..00000000000
--- a/gcc/testsuite/gcc.target/powerpc/stabs-attrib-vect-darwin.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Test Attribute Vector associated with vector type stabs.  */
-/* { dg-do compile { target powerpc*-*-darwin* } } */
-/* { dg-require-effective-target stabs } */
-/* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types -faltivec" } */
-
-int main ()
-{
-  vector int vi = { 6,7,8,9 };
-  return 0;
-}
-
-/* { dg-final { scan-assembler ".stabs.*vi\:\\(0,\[0-9\]+\\)=\@V" } } */
diff --git a/gcc/testsuite/gcc.target/s390/20041216-1.c b/gcc/testsuite/gcc.target/s390/20041216-1.c
deleted file mode 100644
index 492ee6c182b..00000000000
--- a/gcc/testsuite/gcc.target/s390/20041216-1.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This test case would get an unresolved symbol during link
-   because stabs referred to an optimized-away literal pool
-   entry.  */
-
-/* { dg-do run } */
-/* { dg-options "-O2 -fno-omit-frame-pointer -gstabs" } */
-
-int main (void)
-{
-  static char buf[4096];
-  char *p;
-
-  do
-    {
-      p = buf;
-      asm volatile ("" : : : "memory", "0", "1", "2", "3", "4", "5", "6",
-				       "7", "8", "9", "10", "12");
-    }
-  while (*p);
-
-  return 0;
-}
-
diff --git a/gcc/testsuite/gfortran.dg/debug/pr35154-stabs.f b/gcc/testsuite/gfortran.dg/debug/pr35154-stabs.f
deleted file mode 100644
index 5e5c42e9b8f..00000000000
--- a/gcc/testsuite/gfortran.dg/debug/pr35154-stabs.f
+++ /dev/null
@@ -1,35 +0,0 @@
-C     Test program for common block debugging.  G. Helffrich 11 July 2004.
-C { dg-do compile }
-C { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* } }
-C { dg-skip-if "No stabs" { *-*-* } { "*" } { "-gstabs" } }
-      common i,j
-      common /label/l,m
-      i = 1
-      j = 2
-      k = 3
-      l = 4
-      m = 5
-      call sub
-      end
-      subroutine sub
-      common /label/l,m
-      logical first
-      save n
-      data first /.true./
-      if (first) then
-         n = 0
-	 first = .false.
-      endif
-      n = n + 1
-      l = l + 1
-      return
-      end
-
-C { dg-final { scan-assembler ".stabs.*\"__BLNK__\",226" } }
-C { dg-final { scan-assembler ".stabs.*\"i:V.*\",.*,0" } }
-C { dg-final { scan-assembler ".stabs.*\"j:V.*\",.*,4" } }
-C { dg-final { scan-assembler ".stabs.*\"__BLNK__\",228" } }
-C { dg-final { scan-assembler ".stabs.*\"label_\",226" } }
-C { dg-final { scan-assembler ".stabs.*\"l:V.*\",.*,0" } }
-C { dg-final { scan-assembler ".stabs.*\"m:V.*\",.*,4" } }
-C { dg-final { scan-assembler ".stabs.*\"label_\",228" } }
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 0f1e1af31e9..4b99ef41d4b 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1125,15 +1125,6 @@ proc check_effective_target_pthread {} {
     } "-pthread"]
 }
 
-# Return 1 if compilation with -gstabs is error-free for trivial
-# code, 0 otherwise.
-
-proc check_effective_target_stabs {} {
-    return [check_no_compiler_messages stabs object {
-	void foo (void) { }
-    } "-gstabs"]
-}
-
 # Return 1 if compilation with -mpe-aligned-commons is error-free
 # for trivial code, 0 otherwise.
 
diff --git a/gcc/testsuite/objc.dg/stabs-1.m b/gcc/testsuite/objc.dg/stabs-1.m
deleted file mode 100644
index b97e4d6a762..00000000000
--- a/gcc/testsuite/objc.dg/stabs-1.m
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Check if the final SO STABS record goes into the .text section.  */
-/* Contributed by Ziemowit Laski <zlaski@apple.com> */
-
-/* { dg-do compile { target stabs } } */
-/* { dg-options "-gstabs" } */
-/* { dg-additional-options "-Wno-objc-root-class" } */
-
-@interface MyClass
-+ newWithArg: arg;
-@end
-
-@implementation MyClass
-+ newWithArg: arg
-{
-}
-@end
-
-/* See PR target/52152 for the xfail.  */
-/* { dg-final { scan-assembler "(.SUBSPA.*\[\$\]CODE\[\$\]|.text\"?)\n\t.stabs.*100,0,0,(\[\.\$\])?L?L\[\$\]?etext\[0-9\]*\n(\[\.\$\])?L?L\[\$\]?etext" { xfail mips*-*-elf* } } } */


More information about the Gcc-cvs mailing list