summaryrefslogtreecommitdiff
path: root/gcc/loop-init.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-09-08 12:01:50 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-09-08 12:01:50 +0000
commite45fcf805f672888582a67ae5b5e99dce292c581 (patch)
treeae558fb3673982563bad8ffee2ad384c8e98e649 /gcc/loop-init.c
parent0877451899153787932c99177a4933922cef620d (diff)
re PR bootstrap/63204 (gtype-desc.c:887:40: error: 'struct loop' has no member named 'former_header' breaks bootstrap)
2014-09-08 Richard Biener <rguenther@suse.de> PR bootstrap/63204 * cfgloop.c (mark_loop_for_removal): Track former header unconditionally. * cfgloop.h (struct loop): Add former_header member unconditionally. * loop-init.c (fix_loop_structure): Enable bogus loop removal diagnostic unconditionally. From-SVN: r215012
Diffstat (limited to 'gcc/loop-init.c')
-rw-r--r--gcc/loop-init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/loop-init.c b/gcc/loop-init.c
index e3734abadce..b530120fdf8 100644
--- a/gcc/loop-init.c
+++ b/gcc/loop-init.c
@@ -245,12 +245,10 @@ fix_loop_structure (bitmap changed_bbs)
}
/* Remove the loop. */
-#ifdef ENABLE_CHECKING
if (loop->header)
loop->former_header = loop->header;
else
gcc_assert (loop->former_header != NULL);
-#endif
loop->header = NULL;
flow_loop_tree_node_remove (loop);
}
@@ -278,7 +276,6 @@ fix_loop_structure (bitmap changed_bbs)
FOR_EACH_VEC_ELT (*get_loops (cfun), i, loop)
if (loop && loop->header == NULL)
{
-#ifdef ENABLE_CHECKING
if (dump_file
&& ((unsigned) loop->former_header->index
< basic_block_info_for_fn (cfun)->length ()))
@@ -306,7 +303,6 @@ fix_loop_structure (bitmap changed_bbs)
former_header->loop_father->header->index);
}
}
-#endif
(*get_loops (cfun))[i] = NULL;
flow_loop_free (loop);
}