summaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-01 10:28:32 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-01 10:28:32 +0000
commit7a9d5933d4823f13435ba4769d450e8cf09cf6aa (patch)
treed2b3df2dede1479fa71732f0f3a0c2144a986dfb /gcc/c-semantics.c
parent77e7bfd3749aa758efa2c4faf1f6425f0b094e0c (diff)
downloadgcc-7a9d5933d4823f13435ba4769d450e8cf09cf6aa.tar.gz
* stmt.c (expand_start_null_loop): New.
(expand_end_null_loop): New. * c-semantics.c (genrtl_do_stmt): Use them. * tree.h: Declare them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37186 138bc75d-0d04-0410-961f-82ee72b054a4
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 625f7261a92..f3210633ad9 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 ();