From d1b9c52c2f9ac1fd43e44a42c179ad503d281cce Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 22 Oct 1996 15:31:18 -0700 Subject: [PATCH] (unroll_loop): Always reject loops with unbalanced blocks. From-SVN: r12999 --- gcc/unroll.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/unroll.c b/gcc/unroll.c index b720074b604..f5e3675f747 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -268,8 +268,12 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, of block_beg and block_end notes, because that would unbalance the block structure of the function. This can happen as a result of the "if (foo) bar; else break;" optimization in jump.c. */ + /* ??? Gcc has a general policy that -g is never supposed to change the code + that the compiler emits, so we must disable this optimization always, + even if debug info is not being output. This is rare, so this should + not be a significant performance problem. */ - if (write_symbols != NO_DEBUG) + if (1 /* write_symbols != NO_DEBUG */) { int block_begins = 0; int block_ends = 0;