[PATCH] Fix failure of loop-15.c

Richard Guenther rguenther@suse.de
Sat Jan 7 18:17:00 GMT 2006


Committed as obvious.

Richard.


Index: ChangeLog
===================================================================
*** ChangeLog	(revision 109453)
--- ChangeLog	(working copy)
***************
*** 1,3 ****
--- 1,7 ----
+ 2005-01-07  Richard Guenther  <rguenther@suse.de>
+ 
+ 	* gcc.dg/tree-ssa/loop-15.c: Use optimized dump.
+ 
  2005-01-07  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
  
  	* gfortran.dg/func_decl_1.f90: New.
Index: gcc.dg/tree-ssa/loop-15.c
===================================================================
*** gcc.dg/tree-ssa/loop-15.c	(revision 109453)
--- gcc.dg/tree-ssa/loop-15.c	(working copy)
***************
*** 1,7 ****
  /* A test for # of iterations analysis (signed counter cannot wrap) and final
     value replacement.  */
  
! /* { dg-options "-O2 -fdump-tree-vars" } */
  
  int foo(void);
  
--- 1,7 ----
  /* A test for # of iterations analysis (signed counter cannot wrap) and final
     value replacement.  */
  
! /* { dg-options "-O2 -fdump-tree-optimized" } */
  
  int foo(void);
  
*************** int bla(void)
*** 19,27 ****
  }
  
  /* Since the loop is removed, there should be no addition.  */
! /* { dg-final { scan-tree-dump-times "\\+" 0 "vars" } } */
! /* { dg-final { scan-tree-dump-times "n \\* n" 1 "vars" } } */
  
  /* The if from the loop header copying remains in the code.  */
! /* { dg-final { scan-tree-dump-times "if " 1 "vars" } } */
! /* { dg-final { cleanup-tree-dump "vars" } } */
--- 19,27 ----
  }
  
  /* Since the loop is removed, there should be no addition.  */
! /* { dg-final { scan-tree-dump-times "\\+" 0 "optimized" } } */
! /* { dg-final { scan-tree-dump-times "n \\* n" 1 "optimized" } } */
  
  /* The if from the loop header copying remains in the code.  */
! /* { dg-final { scan-tree-dump-times "if " 1 "optimized" } } */
! /* { dg-final { cleanup-tree-dump "optimized" } } */



More information about the Gcc-patches mailing list