dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 2 Jul 2003 17:50:37 +0000 (17:50 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 2 Jul 2003 17:50:37 +0000 (13:50 -0400)
        * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
        (emit_bincl_stab): Same.
        (emit_pending_bincls): Same.

From-SVN: r68848

gcc/ChangeLog
gcc/dbxout.c

index 89afad458a7d02f6cac85efeb0da1f0a1c346f2e..435a0c2a4f8f9738a72ecb6e60e6284ec1d296ce 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-02  David Edelsohn  <edelsohn@gnu.org>
+
+       * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
+       (emit_bincl_stab): Same.
+       (emit_pending_bincls): Same.
+
 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR c++/11072
index f648bfe378500d818f80f57d6d3669c563b1ccd7..b39f627d1cef58b4325f4dd14eb7dba0f9b60e9f 100644 (file)
@@ -195,7 +195,7 @@ struct dbx_file GTY(())
   struct dbx_file *prev;              /* Chain to traverse all pending bincls.  */
 };
 
-#ifdef DBX_DEBUGGING_INFO
+#ifdef DBX_USE_BINCLS
 /* If zero then there is no pending BINCL.  */
 static int pending_bincls = 0;
 #endif
@@ -317,8 +317,10 @@ static int current_sym_nchars;
 #define CONTIN do { } while (0)
 #endif
 
+#ifdef DBX_USE_BINCLS
 static void emit_bincl_stab             (const char *c);
 static void emit_pending_bincls         (void);
+#endif
 static inline void emit_pending_bincls_if_required (void);
 
 static void dbxout_init (const char *);
@@ -559,6 +561,7 @@ dbxout_typedefs (tree syms)
     }
 }
 
+#ifdef DBX_USE_BINCL
 /* Emit BINCL stab using given name.   */
 static void
 emit_bincl_stab (const char *name)
@@ -573,10 +576,8 @@ emit_bincl_stab (const char *name)
 static inline void
 emit_pending_bincls_if_required ()
 {
-#ifdef DBX_USE_BINCL
   if (pending_bincls)
     emit_pending_bincls ();
-#endif
 }
 
 /* Emit all pending bincls.  */
@@ -612,6 +613,12 @@ emit_pending_bincls ()
   pending_bincls = 0;
 }
 
+#else
+
+static inline void
+emit_pending_bincls_if_required () {}
+#endif
+
 /* Change to reading from a new source file.  Generate a N_BINCL stab.  */
 
 static void