]> gcc.gnu.org Git - gcc.git/commitdiff
stmt.c (stmt_loop_nest_empty): New function.
authorJeffrey A Law <law@cygnus.com>
Sun, 24 Jan 1999 07:24:00 +0000 (07:24 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 24 Jan 1999 07:24:00 +0000 (00:24 -0700)
        * stmt.c (stmt_loop_nest_empty): New function.
        * tree.h (stmt_loop_nest_empty): Declare it.

From-SVN: r24844

gcc/ChangeLog
gcc/stmt.c
gcc/tree.h

index f06b6c2baed0b6a489d616b4dc5c9a0445cd424a..155102046e8f860a924a168783e8f501161bc061 100644 (file)
@@ -1,5 +1,7 @@
 Sun Jan 24 08:07:59 1999  Jeffrey A Law  (law@cygnus.com)
 
+        * stmt.c (stmt_loop_nest_empty): New function.
+        * tree.h (stmt_loop_nest_empty): Declare it.
        * rtl.def (CALL_PLACEHOLDER): New rtx code.
 
 Sun Jan 24 21:24:43 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
index 00d8d8828d32df515947fc395514b71358f75bbf..cc0419d2a9717fac5391880f61f9633eb47ea462 100644 (file)
@@ -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.
index 1e8ed4d35e725b65ed1eaccba5ea2283a4374f47..e94968b73aeabddfbbf998b96d6821e73477228b 100644 (file)
@@ -1952,6 +1952,7 @@ extern int pushcase_range                 PROTO((tree, tree,
                                                       tree (*) (tree, tree),
                                                       tree, tree *));
 extern void using_eh_for_cleanups              PROTO((void));
+extern int stmt_loop_nest_empty                        PROTO((void));
 
 /* In fold-const.c */
 
This page took 0.078414 seconds and 5 git commands to generate.