From: Jakub Jelinek Date: Fri, 24 Jan 2014 23:17:25 +0000 (+0100) Subject: re PR middle-end/59561 (warning: iteration 4 invokes undefined behavior) X-Git-Tag: releases/gcc-4.9.0~1371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2105be5a857e9008fc5db6e07966d90348b38e6f;p=thirdparty%2Fgcc.git re PR middle-end/59561 (warning: iteration 4 invokes undefined behavior) PR middle-end/59561 * cfgloopmanip.c (copy_loop_info): If loop->warned_aggressive_loop_optimizations, make sure the flag is set in target loop too. From-SVN: r207065 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ad876eb36a3..a50893cc2c91 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-01-25 Jakub Jelinek + + PR middle-end/59561 + * cfgloopmanip.c (copy_loop_info): If + loop->warned_aggressive_loop_optimizations, make sure + the flag is set in target loop too. + 2014-01-24 Balaji V. Iyer * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index afbe85d4addc..83a0d517f00d 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -1022,6 +1022,8 @@ copy_loop_info (struct loop *loop, struct loop *target) target->any_estimate = loop->any_estimate; target->nb_iterations_estimate = loop->nb_iterations_estimate; target->estimate_state = loop->estimate_state; + target->warned_aggressive_loop_optimizations + |= loop->warned_aggressive_loop_optimizations; } /* Copies copy of LOOP as subloop of TARGET loop, placing newly