From 4a050cc23faad32967ab9b813e1e4ae55fe3511e Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sun, 24 Jan 1999 07:24:00 +0000 Subject: stmt.c (stmt_loop_nest_empty): New function. * stmt.c (stmt_loop_nest_empty): New function. * tree.h (stmt_loop_nest_empty): Declare it. From-SVN: r24844 --- gcc/stmt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index 00d8d88..cc0419d 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2345,6 +2345,14 @@ expand_exit_loop_if_false (whichloop, cond) return 1; } +/* Return nonzero if the loop nest is empty. Else return zero. */ + +int +stmt_loop_nest_empty () +{ + return (loop_stack == NULL); +} + /* Return non-zero if we should preserve sub-expressions as separate pseudos. We never do so if we aren't optimizing. We always do so if -fexpensive-optimizations. -- cgit v1.1