Makefile.in (debug.o): Depend on debug.h.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 12 Mar 2002 05:40:36 +0000 (05:40 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 12 Mar 2002 05:40:36 +0000 (05:40 +0000)
* 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

12 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/dbxout.c
gcc/debug.c
gcc/debug.h
gcc/dwarf2out.c
gcc/dwarfout.c
gcc/integrate.c
gcc/objc/objc-act.c
gcc/sdbout.c
gcc/toplev.c
gcc/vmsdbgout.c

index cb3e3ee73ec55083ad87cdf57ba63777836aba5b..583285c9382cbc486dbf4317aaf222cdd38bc739 100644 (file)
@@ -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,
index c498474964e02d6a489795d05c3f5b9f736cf924..0985f0732178ad95ad5dec838bed100583127fff 100644 (file)
@@ -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 \
index 2db1f3a9fe2c89855d5919f29df4a84c88a9150f..b74aa1269a4f1a09300440f195817effa4e7f7a3 100644 (file)
@@ -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,
index 75d13bada509d165b8a21e5a0cdb087f561fa6d4..685602e16c629d3f82458f1baf473b4dcddb824e 100644 (file)
@@ -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,
index 1f4349da7afbdc97aa50dc24210a4bfecf1baa6c..a8b1954f85045de81a1b08a957295aff2f58a31b 100644 (file)
@@ -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.  */
 
index 9c0be46acd70a59a7f1dd1089c869ec17c95b634..19b3c4647c2d360f9ca60cd2642c94682b20c892 100644 (file)
@@ -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,
index ad715cda2dc9d062cfd2f2abc9e2f9deaf159da6..599db3a0649402bda433e9726cbc42a7a3fcff6c 100644 (file)
@@ -1292,7 +1292,7 @@ static void retry_incomplete_types        PARAMS ((void));
 
 \f
 /* The debug hooks structure.  */
-struct gcc_debug_hooks dwarf_debug_hooks =
+const struct gcc_debug_hooks dwarf_debug_hooks =
 {
   dwarfout_init,
   dwarfout_finish,
index 59c1550bd3784ff7438d01e8de79e2de0ada9e79..8646859e4f6f1aedd2d4267e8018e05e499532f3 100644 (file)
@@ -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;
index 73e7c80bf6afb4b2bf2262134a0577bb7ce69639..814e675ac72b02f102001e7366f87ae08b33c017 100644 (file)
@@ -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;
 
index 8405c0a8f29d1422fc90e73ec6aed864b1f5af7f..473d9b98969e3d5733e33fe84b971593cd4167ad 100644 (file)
@@ -299,7 +299,7 @@ static struct sdb_file *current_file;
 #endif /* MIPS_DEBUGGING_INFO */
 \f
 /* 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 */
index 74a46ee0f702c9f1ba9aacc2ed7ec48a9160a92f..656747ca027e7de1308aacd7b4872386e7156a5c 100644 (file)
@@ -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.  */
 
index 245875ce4ddd00a93980bd6f2109c8ad48417536..7d0de2f2de1f815148d12195ff64ae5dd8819a48 100644 (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,