summaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-24 23:17:25 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-24 23:17:25 +0000
commita5229641c16dd6537a1288b29bedc080aa76785c (patch)
tree530781daded082d8114ede86e34efc36d805016f /gcc/cfgloopmanip.c
parenta89e6c154fc526331e81d4bd50bd1f7a02204659 (diff)
downloadgcc-a5229641c16dd6537a1288b29bedc080aa76785c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloopmanip.c')
-rw-r--r--gcc/cfgloopmanip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c
index afbe85d4add..83a0d517f00 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