This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Clean XFAILs


This removes some XFAILs that have been XPASSing for a long time
everywhere.

Richard.

2010-01-03  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/Warray-bounds.c: Remove XFAILs.
	* gcc.dg/uninit-6.c: Likewise.
	* gcc.dg/struct/wo_prof_array_through_pointer.c: Likewise.

Index: gcc/testsuite/gcc.dg/Warray-bounds.c
===================================================================
*** gcc/testsuite/gcc.dg/Warray-bounds.c	(revision 155591)
--- gcc/testsuite/gcc.dg/Warray-bounds.c	(working copy)
*************** int* f(void) {
*** 56,68 ****
      g(&a[8]);
      g(&a[9]);
      g(&a[10]);
!     g(&a[11]);             /* { dg-warning "array subscript" "" { xfail *-*-* } } */
      g(&a[-30]+10);             /* { dg-warning "array subscript" } */
      g(&a[-30]+30);
  
      g(&b[10]);
      g(&c.c[10]);
!     g(&b[11]);             /* { dg-warning "array subscript" "" { xfail *-*-* } } */
      g(&c.c[11]);           /* { dg-warning "array subscript" } */
  
      g(&a[0]);
--- 56,68 ----
      g(&a[8]);
      g(&a[9]);
      g(&a[10]);
!     g(&a[11]);             /* { dg-warning "array subscript" } */
      g(&a[-30]+10);             /* { dg-warning "array subscript" } */
      g(&a[-30]+30);
  
      g(&b[10]);
      g(&c.c[10]);
!     g(&b[11]);             /* { dg-warning "array subscript" } */
      g(&c.c[11]);           /* { dg-warning "array subscript" } */
  
      g(&a[0]);
Index: gcc/testsuite/gcc.dg/uninit-6.c
===================================================================
*** gcc/testsuite/gcc.dg/uninit-6.c	(revision 155591)
--- gcc/testsuite/gcc.dg/uninit-6.c	(working copy)
*************** make_something(int a, int b, int c)
*** 39,45 ****
      rv = malloc (sizeof (struct tree));
      rv->car = 0;
  
!     APPEND(rv, field, INTEGER_T, a);  /* { dg-bogus "field" "uninitialized variable warning" { xfail *-*-* } } */
      APPEND(rv, field, PTR_T, b);
      APPEND(rv, field, INTEGER_T, c);
  
--- 39,45 ----
      rv = malloc (sizeof (struct tree));
      rv->car = 0;
  
!     APPEND(rv, field, INTEGER_T, a);  /* { dg-bogus "field" "uninitialized variable warning" } */
      APPEND(rv, field, PTR_T, b);
      APPEND(rv, field, INTEGER_T, c);
  
Index: gcc/testsuite/gcc.dg/struct/wo_prof_array_through_pointer.c
===================================================================
*** gcc/testsuite/gcc.dg/struct/wo_prof_array_through_pointer.c	(revision 155591)
--- gcc/testsuite/gcc.dg/struct/wo_prof_array_through_pointer.c	(working copy)
*************** main ()
*** 35,41 ****
    return 0;
  }
  
! /*--------------------------------------------------------------------------*/
! /* Currently str_t escapes due to incorrect ipa-type-escape analysis.  */
! /* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail *-*-* } } } */
  /* { dg-final { cleanup-ipa-dump "*" } } */
--- 35,39 ----
    return 0;
  }
  
! /* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" } } */
  /* { dg-final { cleanup-ipa-dump "*" } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]