diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-08 18:12:54 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-08 18:12:54 +0000 |
| commit | 634b7df03b1f75ab17a64fcea640ff1915ece080 (patch) | |
| tree | 187e90ea880d88157f9c24c0a1081dd53bfa131c /gcc/stmt.c | |
| parent | 32a2ab94e45309dc91c2e4595558239fda71c154 (diff) | |
| download | ppe42-gcc-634b7df03b1f75ab17a64fcea640ff1915ece080.tar.gz ppe42-gcc-634b7df03b1f75ab17a64fcea640ff1915ece080.zip | |
* 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
Diffstat (limited to 'gcc/stmt.c')
| -rw-r--r-- | gcc/stmt.c | 9 |
1 files changed, 9 insertions, 0 deletions
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. */ |

