public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix assert in get_loop_body_in_bfs_order
@ 2015-06-09  8:17 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2015-06-09  8:17 UTC (permalink / raw)
  To: gcc-patches


Noticed when it crashed rather than asserted with broken
loop structure.

Bootstrapped / tested on x86_64-unknown-linux-gnu, applied.

Richard.

2015-06-09  Richard Biener  <rguenther@suse.de>

	* cfgloop.c (get_loop_body_in_bfs_order): Fix assert.

Index: gcc/cfgloop.c
===================================================================
--- gcc/cfgloop.c	(revision 224266)
+++ gcc/cfgloop.c	(working copy)
@@ -954,7 +954,7 @@ get_loop_body_in_bfs_order (const struct
 	    }
 	}
 
-      gcc_assert (i >= vc);
+      gcc_assert (i > vc);
 
       bb = blocks[vc++];
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-09  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09  8:17 [PATCH] Fix assert in get_loop_body_in_bfs_order Richard Biener

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).