summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-12 05:40:36 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-12 05:40:36 +0000
commite42f642381c6ba7bd12a81bfc23dccbb39797bc6 (patch)
tree8b89a9c07b772220e972a5f28b1241f974c8b4ee /gcc
parent3cf24182deed8d13874d624903c52ba0a44b07f8 (diff)
downloadgcc-e42f642381c6ba7bd12a81bfc23dccbb39797bc6.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog16
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/dbxout.c4
-rw-r--r--gcc/debug.c2
-rw-r--r--gcc/debug.h16
-rw-r--r--gcc/dwarf2out.c2
-rw-r--r--gcc/dwarfout.c2
-rw-r--r--gcc/integrate.c2
-rw-r--r--gcc/objc/objc-act.c2
-rw-r--r--gcc/sdbout.c2
-rw-r--r--gcc/toplev.c2
-rw-r--r--gcc/vmsdbgout.c2
12 files changed, 35 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cb3e3ee73ec..583285c9382 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,21 @@
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,
dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index c498474964e..0985f073217 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -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 \
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 2db1f3a9fe2..b74aa1269a4 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -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,
diff --git a/gcc/debug.c b/gcc/debug.c
index 75d13bada50..685602e16c6 100644
--- a/gcc/debug.c
+++ b/gcc/debug.c
@@ -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,
diff --git a/gcc/debug.h b/gcc/debug.h
index 1f4349da7af..a8b1954f850 100644
--- a/gcc/debug.h
+++ b/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. */
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 9c0be46acd7..19b3c4647c2 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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,
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index ad715cda2dc..599db3a0649 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -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,
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 59c1550bd37..8646859e4f6 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -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;
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 73e7c80bf6a..814e675ac72 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -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;
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 8405c0a8f29..473d9b98969 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -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 */
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 74a46ee0f70..656747ca027 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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. */
diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c
index 245875ce4dd..7d0de2f2de1 100644
--- a/gcc/vmsdbgout.c
+++ b/gcc/vmsdbgout.c
@@ -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,