diff options
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r-- | gcc/sdbout.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 08d8abe455c..0ec5abb5631 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -42,11 +42,15 @@ AT&T C compiler. From the example below I would conclude the following: */ #include "config.h" +#include "system.h" +#include "debug.h" +#include "tree.h" +#include "ggc.h" + +static GTY(()) tree anonymous_types; #ifdef SDB_DEBUGGING_INFO -#include "system.h" -#include "tree.h" #include "rtl.h" #include "regs.h" #include "flags.h" @@ -54,10 +58,8 @@ AT&T C compiler. From the example below I would conclude the following: #include "reload.h" #include "output.h" #include "toplev.h" -#include "ggc.h" #include "tm_p.h" #include "gsyms.h" -#include "debug.h" #include "langhooks.h" /* 1 if PARM is passed to this function in memory. */ @@ -989,8 +991,6 @@ sdbout_toplevel_data (decl) /* Machinery to record and output anonymous types. */ -static tree anonymous_types; - static void sdbout_queue_anonymous_type (type) tree type; @@ -1759,11 +1759,14 @@ sdbout_init (input_file_name) if (DECL_NAME (t) && IDENTIFIER_POINTER (DECL_NAME (t)) != 0 && !strcmp (IDENTIFIER_POINTER (DECL_NAME (t)), "__vtbl_ptr_type")) sdbout_symbol (t, 0); -#endif - -#ifdef SDB_ALLOW_FORWARD_REFERENCES - ggc_add_tree_root (&anonymous_types, 1); -#endif +#endif } +#else /* SDB_DEBUGGING_INFO */ + +/* This should never be used, but its address is needed for comparisons. */ +const struct gcc_debug_hooks sdb_debug_hooks; + #endif /* SDB_DEBUGGING_INFO */ + +#include "gt-sdbout.h" |