summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-31 07:22:28 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-31 07:22:28 +0000
commita1d829f8614a65a4e6e810d7266a11393fa7a14f (patch)
treebdf1124058238b3986201f1fb352c184bcbd4400 /gcc/dbxout.c
parentcaf9fa9f34ee310c4f0fbb72b87badd0f542e246 (diff)
downloadgcc-a1d829f8614a65a4e6e810d7266a11393fa7a14f.tar.gz
* dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
Initialize variables properly for DBX_LBRAC_FIRST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38569 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 268a6c6a0ab..c3838dfe956 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -2641,7 +2641,6 @@ dbxout_block (block, depth, args)
tree args;
{
int blocknum = -1;
- int ignored;
#if DBX_BLOCKS_FUNCTION_RELATIVE
const char *begin_label;
@@ -2656,12 +2655,16 @@ dbxout_block (block, depth, args)
/* Ignore blocks never expanded or otherwise marked as real. */
if (TREE_USED (block) && TREE_ASM_WRITTEN (block))
{
-#ifndef DBX_LBRAC_FIRST
+ int did_output;
+
+#ifdef DBX_LBRAC_FIRST
+ did_output = 1;
+#else
/* In dbx format, the syms of a block come before the N_LBRAC.
If nothing is output, we don't need the N_LBRAC, either. */
- ignored = 1;
+ did_output = 0;
if (debug_info_level != DINFO_LEVEL_TERSE || depth == 0)
- ignored = dbxout_syms (BLOCK_VARS (block));
+ did_output = dbxout_syms (BLOCK_VARS (block));
if (args)
dbxout_reg_parms (args);
#endif
@@ -2670,7 +2673,7 @@ dbxout_block (block, depth, args)
the block. Use the block's tree-walk order to generate
the assembler symbols LBBn and LBEn
that final will define around the code in this block. */
- if (depth > 0 && !ignored)
+ if (depth > 0 && did_output)
{
char buf[20];
blocknum = BLOCK_NUMBER (block);
@@ -2720,7 +2723,7 @@ dbxout_block (block, depth, args)
dbxout_block (BLOCK_SUBBLOCKS (block), depth + 1, NULL_TREE);
/* Refer to the marker for the end of the block. */
- if (depth > 0 && !ignored)
+ if (depth > 0 && did_output)
{
char buf[20];
ASM_GENERATE_INTERNAL_LABEL (buf, "LBE", blocknum);