aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 625f726..f321063 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -487,7 +487,11 @@ genrtl_do_stmt (t)
avoids cluttering the rtl with dummy loop notes, which can affect
alignment of adjacent labels. */
if (integer_zerop (cond))
- expand_stmt (DO_BODY (t));
+ {
+ expand_start_null_loop ();
+ expand_stmt (DO_BODY (t));
+ expand_end_null_loop ();
+ }
else
{
emit_nop ();