+2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ * defaults.h: New definition of SDB_DEBUGGING_INFO.
+ * doc/tm.texi: Regenerate.
+ * doc/tm.texi.in: Adjust.
+ * final.c (rest_of_clean_state): Remove check if
+ SDB_DEBUGGING_INFO is defined.
+ * function.c (number_blocks): Likewise.
+ * output.h: Likewise.
+ * sdbout.c: Likewise.
+ * toplev.c (process_options): Likewise.
+
2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* gsyms.h (enum sdb_type): Remove code for
#define DEFAULT_GDB_EXTENSIONS 1
#endif
+#ifndef SDB_DEBUGGING_INFO
+#define SDB_DEBUGGING_INFO 0
+#endif
+
/* If more than one debugging type is supported, you must define
PREFERRED_DEBUGGING_TYPE to choose the default. */
-#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) \
+#if 1 < (defined (DBX_DEBUGGING_INFO) + (SDB_DEBUGGING_INFO) \
+ defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) \
+ defined (VMS_DEBUGGING_INFO))
#ifndef PREFERRED_DEBUGGING_TYPE
#elif defined DBX_DEBUGGING_INFO
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-#elif defined SDB_DEBUGGING_INFO
+#elif SDB_DEBUGGING_INFO
#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
#elif defined DWARF2_DEBUGGING_INFO || defined DWARF2_LINENO_DEBUGGING_INFO
Here are macros for SDB and DWARF output.
@defmac SDB_DEBUGGING_INFO
-Define this macro if GCC should produce COFF-style debugging output
+Define this macro to 1 if GCC should produce COFF-style debugging output
for SDB in response to the @option{-g} option.
@end defmac
Here are macros for SDB and DWARF output.
@defmac SDB_DEBUGGING_INFO
-Define this macro if GCC should produce COFF-style debugging output
+Define this macro to 1 if GCC should produce COFF-style debugging output
for SDB in response to the @option{-g} option.
@end defmac
#include "dbxout.h"
#endif
-#ifdef SDB_DEBUGGING_INFO
#include "sdbout.h"
-#endif
/* Most ports that aren't using cc0 don't need to define CC_STATUS_INIT.
So define a null default for it to save conditionalization later. */
/* In case the function was not output,
don't leave any temporary anonymous types
queued up for sdb output. */
-#ifdef SDB_DEBUGGING_INFO
- if (write_symbols == SDB_DEBUG)
+ if (SDB_DEBUGGING_INFO && write_symbols == SDB_DEBUG)
sdbout_types (NULL_TREE);
-#endif
flag_rerun_cse_after_global_opts = 0;
reload_completed = 0;
/* For SDB and XCOFF debugging output, we start numbering the blocks
from 1 within each function, rather than keeping a running
count. */
-#if defined (SDB_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
+#if SDB_DEBUGGING_INFO || defined (XCOFF_DEBUGGING_INFO)
if (write_symbols == SDB_DEBUG || write_symbols == XCOFF_DEBUG)
next_block_index = 1;
#endif
/* The line number of the beginning of the current function. Various
md code needs this so that it can output relative linenumbers. */
-#ifdef SDB_DEBUGGING_INFO /* Avoid undef sym in certain broken linkers. */
extern int sdb_begin_function_line;
-#endif
/* File in which assembler code is being written. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
+#include "gsyms.h"
#include "tm.h"
#include "debug.h"
#include "tree.h"
static GTY(()) tree preinit_symbols;
static GTY(()) bool sdbout_initialized;
-#ifdef SDB_DEBUGGING_INFO
-
#include "rtl.h"
#include "regs.h"
#include "flags.h"
#include "output.h"
#include "diagnostic-core.h"
#include "tm_p.h"
-#include "gsyms.h"
#include "langhooks.h"
#include "target.h"
preinit_symbols = 0;
}
-#endif /* SDB_DEBUGGING_INFO */
-
#include "gt-sdbout.h"
#include "dbxout.h"
#endif
-#ifdef SDB_DEBUGGING_INFO
#include "sdbout.h"
-#endif
#ifdef XCOFF_DEBUGGING_INFO
#include "xcoffout.h" /* Needed for external data declarations. */
else if (write_symbols == XCOFF_DEBUG)
debug_hooks = &xcoff_debug_hooks;
#endif
-#ifdef SDB_DEBUGGING_INFO
- else if (write_symbols == SDB_DEBUG)
+ else if (SDB_DEBUGGING_INFO && write_symbols == SDB_DEBUG)
debug_hooks = &sdb_debug_hooks;
-#endif
#ifdef DWARF2_DEBUGGING_INFO
else if (write_symbols == DWARF2_DEBUG)
debug_hooks = &dwarf2_debug_hooks;