public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 4.4] remove -frtl-abstract-sequences tests
@ 2009-10-20 12:23 Mikael Pettersson
  2009-10-23 17:45 ` Janis Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2009-10-20 12:23 UTC (permalink / raw)
  To: gcc-patches

The pr11832.c and pr33009.c -frtl-abstract-sequences tests in
4.4 cause ICE failures on most platforms, and test a feature
which never worked properly and which has been removed from 4.5.
So they are pointless and cause testsuite failures on platforms
like ARM where they have not yet been explicitly disabled.

This patch thus removes them from 4.4.

(This was pre-approved by Richard Guenther.  I don't have
write access, so can someone please commit it for me?)

gcc/testsuite/

2009-10-20  Mikael Pettersson  <mikpe@it.uu.se>

	* gcc.c-torture/compile/pr11832.c: Delete.
	* gcc.c-torture/compile/pr33009.c: Likewise.

diff -rupN gcc-4.4.2/gcc/testsuite/gcc.c-torture/compile/pr11832.c gcc-4.4.2-pr33642/gcc/testsuite/gcc.c-torture/compile/pr11832.c
--- gcc-4.4.2/gcc/testsuite/gcc.c-torture/compile/pr11832.c	2008-12-01 16:19:40.000000000 +0100
+++ gcc-4.4.2-pr33642/gcc/testsuite/gcc.c-torture/compile/pr11832.c	1970-01-01 01:00:00.000000000 +0100
@@ -1,35 +0,0 @@
-/* { dg-do compile } */
-/* Currently ICEs for Alpha, IA64, HPPA, MIPS, CRIS, Xtensa, PowerPC, SH and SPARC; see PR33642.  */
-/* { dg-xfail-if "PR33642" { alpha*-*-* hppa*-*-* mips*-*-* powerpc*-*-* cris-*-* crisv32-*-* ia64-*-* xtensa*-*-* sh*-*-* sparc*-*-* s390*-*-* } { "*" } { "" } } */
-/* Currently ICEs for (x86 && ilp32 && pic).  */
-/* { dg-xfail-if "PR33642/36240" { { i?86-*-* x86_64-*-* } && { ilp32 && { ! nonpic } } } { "*" } { "" } } */
-/* { dg-prune-output ".*internal compiler error.*" }
-/* { dg-options "-frtl-abstract-sequences" } */
-
-int a, b, e;
-unsigned char *c;
-void foo()
-{
-  int d = 13;
-  b = -1;   
-  switch (e) {
-    case 1:
-      b++; c[b] = (unsigned char)d;
-      break;
-    case 2:
-      b++; c[b] = (unsigned char)d;
-      b++; c[b] = (unsigned char)d;
-      break;
-    case 3:
-      b++; c[b] = (unsigned char)d;
-      b++; c[b] = (unsigned char)d;
-      b++; c[b] = (unsigned char)d;
-      break;
-    default:
-      a = 1;
-      b++; c[b] = (unsigned char)d;
-      b++; c[b] = (unsigned char)d;
-      b++; c[b] = (unsigned char)d;
-      b++; c[b] = (unsigned char)d;
-  }
-}
diff -rupN gcc-4.4.2/gcc/testsuite/gcc.c-torture/compile/pr33009.c gcc-4.4.2-pr33642/gcc/testsuite/gcc.c-torture/compile/pr33009.c
--- gcc-4.4.2/gcc/testsuite/gcc.c-torture/compile/pr33009.c	2008-12-01 16:19:40.000000000 +0100
+++ gcc-4.4.2-pr33642/gcc/testsuite/gcc.c-torture/compile/pr33009.c	1970-01-01 01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
-/* { dg-do compile } */
-/* Currently ICEs for Alpha, IA64, HPPA, MIPS, CRIS, Xtensa, PowerPC, SH and SPARC; see PR33642.  */
-/* { dg-xfail-if "PR33642" { alpha*-*-* hppa*-*-* mips*-*-* powerpc*-*-* cris-*-* crisv32-*-* ia64-*-* xtensa*-*-* sh*-*-* sparc*-*-* s390*-*-* } { "*" } { "" } } */
-/* Currently ICEs for (x86 && ilp32 && pic).  */
-/* { dg-xfail-if "PR33642/36240" { { i?86-*-* x86_64-*-* } && { ilp32 && { ! nonpic } } } { "*" } { "" } } */
-/* { dg-prune-output ".*internal compiler error.*" }
-/* { dg-options "-frtl-abstract-sequences" } */
-
-char *progName;
-int bar0 (char *, ...);
-void bar1 (char *);
-void exit (int);
-
-
-#define SAME \
- bar0 ("%s: Bad flag `%s'\n", argv[i], argv[i] );\
- bar1 ( progName ); \
- exit ( 1 );
-
-
-int foo ( int argc, char *argv[] )
-{
-    int i;
-    for (i = 0; i < argc; i++) {
-	switch (argv[i][0]) {
-	case 'c':
-	    break;
-	default: 
-	
-	    SAME
-	    
-	    break;
-	}
-    }
-    for (i = 0; i < argc; i++) {
-    
-	SAME
-	
-    }
-    return 0;
-}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 4.4] remove -frtl-abstract-sequences tests
  2009-10-20 12:23 [PATCH 4.4] remove -frtl-abstract-sequences tests Mikael Pettersson
@ 2009-10-23 17:45 ` Janis Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Janis Johnson @ 2009-10-23 17:45 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: gcc-patches

On Tue, 2009-10-20 at 14:07 +0200, Mikael Pettersson wrote:
> The pr11832.c and pr33009.c -frtl-abstract-sequences tests in
> 4.4 cause ICE failures on most platforms, and test a feature
> which never worked properly and which has been removed from 4.5.
> So they are pointless and cause testsuite failures on platforms
> like ARM where they have not yet been explicitly disabled.
> 
> This patch thus removes them from 4.4.
> 
> (This was pre-approved by Richard Guenther.  I don't have
> write access, so can someone please commit it for me?)
> 
> gcc/testsuite/
> 
> 2009-10-20  Mikael Pettersson  <mikpe@it.uu.se>
> 
> 	* gcc.c-torture/compile/pr11832.c: Delete.
> 	* gcc.c-torture/compile/pr33009.c: Likewise.

Done.

Janis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-23 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-20 12:23 [PATCH 4.4] remove -frtl-abstract-sequences tests Mikael Pettersson
2009-10-23 17:45 ` Janis Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).