Makefile.in (debug.o): Depend on debug.h.
* Makefile.in (debug.o): Depend on debug.h. * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify. * debug.c (do_nothing_debug_hooks): Likewise. * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks, sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks, dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise. * dwarf2out.c (dwarf2_debug_hooks): Likewise. * dwarfout.c (dwarf_debug_hooks): Likewise. * integrate.c (output_inline_function): Likewise. * objc/objc-act.c (synth_module_prologue): Likewise. * sdbout.c (sdb_debug_hooks): Likewise. * toplev.c (debug_hooks): Likewise. * vmsdbgout.c (vmsdbg_debug_hooks): Likewise. From-SVN: r50635
This commit is contained in:
parent
2465bf7657
commit
54b6670a15
12 changed files with 35 additions and 19 deletions
|
@ -1,3 +1,19 @@
|
|||
2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* Makefile.in (debug.o): Depend on debug.h.
|
||||
* dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
|
||||
* debug.c (do_nothing_debug_hooks): Likewise.
|
||||
* debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
|
||||
sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
|
||||
dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
|
||||
* dwarf2out.c (dwarf2_debug_hooks): Likewise.
|
||||
* dwarfout.c (dwarf_debug_hooks): Likewise.
|
||||
* integrate.c (output_inline_function): Likewise.
|
||||
* objc/objc-act.c (synth_module_prologue): Likewise.
|
||||
* sdbout.c (sdb_debug_hooks): Likewise.
|
||||
* toplev.c (debug_hooks): Likewise.
|
||||
* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
|
||||
|
||||
2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
|
||||
|
|
|
@ -1408,7 +1408,7 @@ optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
|
|||
dbxout.o : dbxout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
|
||||
$(REGS_H) debug.h $(TM_P_H) $(TARGET_H) function.h langhooks.h \
|
||||
insn-config.h reload.h gstab.h xcoffout.h output.h dbxout.h toplev.h
|
||||
debug.o : debug.c $(CONFIG_H) $(SYSTEM_H)
|
||||
debug.o : debug.c debug.h $(CONFIG_H) $(SYSTEM_H)
|
||||
sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
|
||||
function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) real.h \
|
||||
insn-config.h $(OBSTACK_H) xcoffout.h c-pragma.h ggc.h \
|
||||
|
|
|
@ -326,7 +326,7 @@ static void dbxout_begin_block PARAMS ((unsigned, unsigned));
|
|||
static void dbxout_end_block PARAMS ((unsigned, unsigned));
|
||||
static void dbxout_function_decl PARAMS ((tree));
|
||||
|
||||
struct gcc_debug_hooks dbx_debug_hooks =
|
||||
const struct gcc_debug_hooks dbx_debug_hooks =
|
||||
{
|
||||
dbxout_init,
|
||||
dbxout_finish,
|
||||
|
@ -356,7 +356,7 @@ struct gcc_debug_hooks dbx_debug_hooks =
|
|||
#endif /* DBX_DEBUGGING_INFO */
|
||||
|
||||
#if defined (XCOFF_DEBUGGING_INFO)
|
||||
struct gcc_debug_hooks xcoff_debug_hooks =
|
||||
const struct gcc_debug_hooks xcoff_debug_hooks =
|
||||
{
|
||||
dbxout_init,
|
||||
dbxout_finish,
|
||||
|
|
|
@ -20,7 +20,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
#include "debug.h"
|
||||
|
||||
/* The do-nothing debug hooks. */
|
||||
struct gcc_debug_hooks do_nothing_debug_hooks =
|
||||
const struct gcc_debug_hooks do_nothing_debug_hooks =
|
||||
{
|
||||
debug_nothing_charstar,
|
||||
debug_nothing_charstar,
|
||||
|
|
16
gcc/debug.h
16
gcc/debug.h
|
@ -103,7 +103,7 @@ struct gcc_debug_hooks
|
|||
void (* label) PARAMS ((rtx));
|
||||
};
|
||||
|
||||
extern struct gcc_debug_hooks *debug_hooks;
|
||||
extern const struct gcc_debug_hooks *debug_hooks;
|
||||
|
||||
/* The do-nothing hooks. */
|
||||
extern void debug_nothing_void
|
||||
|
@ -124,13 +124,13 @@ extern void debug_nothing_rtx
|
|||
PARAMS ((rtx));
|
||||
|
||||
/* Hooks for various debug formats. */
|
||||
extern struct gcc_debug_hooks do_nothing_debug_hooks;
|
||||
extern struct gcc_debug_hooks dbx_debug_hooks;
|
||||
extern struct gcc_debug_hooks sdb_debug_hooks;
|
||||
extern struct gcc_debug_hooks xcoff_debug_hooks;
|
||||
extern struct gcc_debug_hooks dwarf_debug_hooks;
|
||||
extern struct gcc_debug_hooks dwarf2_debug_hooks;
|
||||
extern struct gcc_debug_hooks vmsdbg_debug_hooks;
|
||||
extern const struct gcc_debug_hooks do_nothing_debug_hooks;
|
||||
extern const struct gcc_debug_hooks dbx_debug_hooks;
|
||||
extern const struct gcc_debug_hooks sdb_debug_hooks;
|
||||
extern const struct gcc_debug_hooks xcoff_debug_hooks;
|
||||
extern const struct gcc_debug_hooks dwarf_debug_hooks;
|
||||
extern const struct gcc_debug_hooks dwarf2_debug_hooks;
|
||||
extern const struct gcc_debug_hooks vmsdbg_debug_hooks;
|
||||
|
||||
/* Dwarf2 frame information. */
|
||||
|
||||
|
|
|
@ -3102,7 +3102,7 @@ static void dwarf2out_abstract_function PARAMS ((tree));
|
|||
|
||||
/* The debug hooks structure. */
|
||||
|
||||
struct gcc_debug_hooks dwarf2_debug_hooks =
|
||||
const struct gcc_debug_hooks dwarf2_debug_hooks =
|
||||
{
|
||||
dwarf2out_init,
|
||||
dwarf2out_finish,
|
||||
|
|
|
@ -1292,7 +1292,7 @@ static void retry_incomplete_types PARAMS ((void));
|
|||
|
||||
|
||||
/* The debug hooks structure. */
|
||||
struct gcc_debug_hooks dwarf_debug_hooks =
|
||||
const struct gcc_debug_hooks dwarf_debug_hooks =
|
||||
{
|
||||
dwarfout_init,
|
||||
dwarfout_finish,
|
||||
|
|
|
@ -2971,7 +2971,7 @@ output_inline_function (fndecl)
|
|||
{
|
||||
struct function *old_cfun = cfun;
|
||||
enum debug_info_type old_write_symbols = write_symbols;
|
||||
struct gcc_debug_hooks *old_debug_hooks = debug_hooks;
|
||||
const struct gcc_debug_hooks *const old_debug_hooks = debug_hooks;
|
||||
struct function *f = DECL_SAVED_INSNS (fndecl);
|
||||
|
||||
cfun = f;
|
||||
|
|
|
@ -1173,7 +1173,7 @@ synth_module_prologue ()
|
|||
/* Suppress outputting debug symbols, because
|
||||
dbxout_init hasn'r been called yet. */
|
||||
enum debug_info_type save_write_symbols = write_symbols;
|
||||
struct gcc_debug_hooks *save_hooks = debug_hooks;
|
||||
const struct gcc_debug_hooks *const save_hooks = debug_hooks;
|
||||
write_symbols = NO_DEBUG;
|
||||
debug_hooks = &do_nothing_debug_hooks;
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ static struct sdb_file *current_file;
|
|||
#endif /* MIPS_DEBUGGING_INFO */
|
||||
|
||||
/* The debug hooks structure. */
|
||||
struct gcc_debug_hooks sdb_debug_hooks =
|
||||
const struct gcc_debug_hooks sdb_debug_hooks =
|
||||
{
|
||||
sdbout_init, /* init */
|
||||
sdbout_finish, /* finish */
|
||||
|
|
|
@ -183,7 +183,7 @@ extern int target_flags;
|
|||
|
||||
/* Debug hooks - dependent upon command line options. */
|
||||
|
||||
struct gcc_debug_hooks *debug_hooks = &do_nothing_debug_hooks;
|
||||
const struct gcc_debug_hooks *debug_hooks = &do_nothing_debug_hooks;
|
||||
|
||||
/* Describes a dump file. */
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ static void vmsdbgout_abstract_function PARAMS ((tree));
|
|||
|
||||
/* The debug hooks structure. */
|
||||
|
||||
struct gcc_debug_hooks vmsdbg_debug_hooks
|
||||
const struct gcc_debug_hooks vmsdbg_debug_hooks
|
||||
= {vmsdbgout_init,
|
||||
vmsdbgout_finish,
|
||||
vmsdbgout_define,
|
||||
|
|
Loading…
Add table
Reference in a new issue