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]

[tuples] Fix fold-alloca-1.c


Hi!

The useless pass no longer removes if (0) blocks, as GIMPLE_COND operands
are labels, not sequences.  But the *.cfg dump removes unreachable blocks,
even at -O0, so this doesn't affect assembly.  The following patch
just changes fold-alloca-1.c to use cleanup_cfg1 pass (the unreachable bb
still shows up in the *.cfg dump).
Committed to tuples.

2008-07-27  Jakub Jelinek  <jakub@redhat.com>

	* gcc.dg/fold-alloca-1.c: Look into cleanup_cfg1 dump instead of
	useless dump.

--- gcc/testsuite/gcc.dg/fold-alloca-1.c.jj	2008-06-13 14:29:15.000000000 +0200
+++ gcc/testsuite/gcc.dg/fold-alloca-1.c	2008-07-27 21:00:45.000000000 +0200
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-fdump-tree-useless" } */
+/* { dg-options "-fdump-tree-cleanup_cfg1" } */
 
 void *alloca (__SIZE_TYPE__);
 void link_error ();
@@ -10,5 +10,5 @@ int main (int argc, char *argv[]) {
 	  link_error ();
 	return 0;
 }
-/* { dg-final { scan-tree-dump-times "link_error" 0 "useless" } } */
-/* { dg-final { cleanup-tree-dump "useless" } } */
+/* { dg-final { scan-tree-dump-times "link_error" 0 "cleanup_cfg1" } } */
+/* { dg-final { cleanup-tree-dump "cleanup_cfg1" } } */

	Jakub


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