diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-04-04 21:39:19 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-04-04 21:39:19 +0000 |
commit | e7a5a9f6b4bc852e4c2af486ee9fdacb7b17be80 (patch) | |
tree | 162cab469c277eb4573cb46088636cc2884e8ddc /gcc/sdbout.c | |
parent | cd7c2dad795ef7abc47d815824e252d508bfbf1b (diff) | |
download | gcc-e7a5a9f6b4bc852e4c2af486ee9fdacb7b17be80.tar.gz |
(sdbout_begin_block): Don't output block for function
level scope unless MIPS_DEBUGGING_INFO is defined.
(sdbout_end_block): Likewise. Add new parameter n for the block
number.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r-- | gcc/sdbout.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c index e1a8bdc7e96..5dafb3f9077 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -1397,7 +1397,15 @@ sdbout_begin_block (file, line, n) { tree decl = current_function_decl; MAKE_LINE_SAFE (line); - PUT_SDB_BLOCK_START (line - sdb_begin_function_line); + + /* The SCO compiler does not emit a separate block for the function level + scope, so we avoid it here also. However, mips ECOFF compilers do emit + a separate block, so we retain it when MIPS_DEBUGGING_INFO is defined. */ +#ifndef MIPS_DEBUGGING_INFO + if (n != 1) +#endif + PUT_SDB_BLOCK_START (line - sdb_begin_function_line); + if (n == 1) { /* Include the outermost BLOCK's variables in block 1. */ @@ -1422,11 +1430,19 @@ sdbout_begin_block (file, line, n) /* Describe the end line-number of an internal block within a function. */ void -sdbout_end_block (file, line) +sdbout_end_block (file, line, n) FILE *file; int line; + int n; { MAKE_LINE_SAFE (line); + + /* The SCO compiler does not emit a separate block for the function level + scope, so we avoid it here also. However, mips ECOFF compilers do emit + a separate block, so we retain it when MIPS_DEBUGGING_INFO is defined. */ +#ifndef MIPS_DEBUGGING_INFO + if (n != 1) +#endif PUT_SDB_BLOCK_END (line - sdb_begin_function_line); } |