This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: `pending_bincls' defined but not used
David Edelsohn <dje@watson.ibm.com> writes:
|> Your patch just covered up the problem and created more errors:
|> dbxout.c is use for more than just DBX_DEBUGGING_INFO. I have committed
|> the following patch.
Unfortunately, this is still not good enough. DBX_USE_BINCLS may be
defined even if neither DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO are
defined.
2003-07-03 Andreas Schwab <schwab@suse.de>
* dbxout.c (pending_bincls): Move decl down inside
DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
--- gcc/dbxout.c.~1.151.~ 2003-07-03 11:33:54.000000000 +0200
+++ gcc/dbxout.c 2003-07-03 11:37:43.000000000 +0200
@@ -195,11 +195,6 @@ struct dbx_file GTY(())
struct dbx_file *prev; /* Chain to traverse all pending bincls. */
};
-#ifdef DBX_USE_BINCL
-/* If zero then there is no pending BINCL. */
-static int pending_bincls = 0;
-#endif
-
/* This is the top of the stack. */
static GTY(()) struct dbx_file *current_file;
@@ -241,6 +236,11 @@ static GTY(()) int lastfile_is_base;
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
+#ifdef DBX_USE_BINCL
+/* If zero then there is no pending BINCL. */
+static int pending_bincls = 0;
+#endif
+
/* The original input file name. */
static const char *base_input_file;
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."