dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
authorRichard Henderson <rth@redhat.com>
Sun, 31 Dec 2000 07:22:28 +0000 (23:22 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 31 Dec 2000 07:22:28 +0000 (23:22 -0800)
        * dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
        Initialize variables properly for DBX_LBRAC_FIRST.

From-SVN: r38569

gcc/ChangeLog
gcc/dbxout.c

index 2a0f2ee67e8279b5c9ad0b14d40652732c6538e6..605431d50a365a57783553c8d291b9707bae6a38 100644 (file)
@@ -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.
index 268a6c6a0ab567f1a17e97c62bebec32a859cc72..c3838dfe9566855fdec954b6a234d6d3c3e47a9b 100644 (file)
@@ -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);