From 634b7df03b1f75ab17a64fcea640ff1915ece080 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 8 Jun 2001 18:12:54 +0000 Subject: * stmt.c (current_nesting_level): New fn. * tree.h: Declare it. * c-semantics.c (genrtl_compound_stmt): Use it. * dbxout.c (dbxout_symbol): Use DECL_RTL_SET_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43037 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/stmt.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index c20a99e6ad2..3cefc7ce3ee 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -3395,6 +3395,15 @@ conditional_context () return block_stack && block_stack->data.block.conditional_code; } +/* Return an opaque pointer to the current nesting level, so frontend code + can check its own sanity. */ + +struct nesting * +current_nesting_level () +{ + return cfun ? block_stack : 0; +} + /* Emit a handler label for a nonlocal goto handler. Also emit code to store the handler label in SLOT before BEFORE_INSN. */ -- cgit v1.2.3