diff options
author | Richard Henderson <rth@redhat.com> | 2000-12-30 23:22:28 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-12-30 23:22:28 -0800 |
commit | 711d4bb3ced48e6a0eec3a26e70e0f02f0370522 (patch) | |
tree | bdf1124058238b3986201f1fb352c184bcbd4400 | |
parent | 27fb3e162eabe30c0dcf6e09c958f864201f2c3e (diff) | |
download | gcc-711d4bb3ced48e6a0eec3a26e70e0f02f0370522.zip gcc-711d4bb3ced48e6a0eec3a26e70e0f02f0370522.tar.gz gcc-711d4bb3ced48e6a0eec3a26e70e0f02f0370522.tar.bz2 |
dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
* dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
Initialize variables properly for DBX_LBRAC_FIRST.
From-SVN: r38569
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dbxout.c | 15 |
2 files changed, 14 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a0f2ee..605431d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-12-30 Richard Henderson <rth@redhat.com> + + * dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC. + Initialize variables properly for DBX_LBRAC_FIRST. + 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * expr.c (expand_expr, case COMPONENT_REF): Fix typo in last change. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 268a6c6..c3838df 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); |