Re: [PATCH] Introduce -Waggressive-loop-optimizations (PR tree-optimization/53265)

2013-03-14 Thread Richard Biener
On Wed, 13 Mar 2013, Jakub Jelinek wrote: > Hi! > > This patch is an attempt to warn about undefined behavior in simple loops > with known constant number of latch executions, which probably is the most > common case where gcc 4.8 started to turn finite loops involving undefined > behavior before

[PATCH] Introduce -Waggressive-loop-optimizations (PR tree-optimization/53265)

2013-03-13 Thread Jakub Jelinek
Hi! This patch is an attempt to warn about undefined behavior in simple loops with known constant number of latch executions, which probably is the most common case where gcc 4.8 started to turn finite loops involving undefined behavior before reaching last iteration into endless loops. Of course