From 87ff9c8e4bb514b8298fcd6431339197de456c0a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 4 Sep 1999 19:41:35 -0700 Subject: Makefile.in (tree.o): Depend on ggc.h. * Makefile.in (tree.o): Depend on ggc.h. (varasm.o): Likewise. (function.o): Likewise. (stmt.o): Likewise. (except.o): Likewise. (optabs.o): Likewise. (emit-rtl.o): Likewise. * emit-rtl.c: Include ggc.h. (sequence_element_free_list): Remove, and all references. (mark_sequence): New functions. (mark_emit_state): New function. * except.c: Include ggc.h. (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions. (mark_tree_label_node): New functions. (mark_eh_state): New function. * function.c: Include ggc.h. (mark_temp_slot, mark_function_chain): New functions. (mark_function_state): New function. (init_function_once): New function. * function.h (init_function_once): New function. * ggc-callbacks.c (lang_mark_false_label_stack): New function. * ggc.h (label_node): Declare. (eh_status, emit_status, stmt_status, varasm_status): Likewise. (lang_mark_false_label_stack): New function. (mark_temp_slot): Remove declaration. (mark_function_chain): Likewise. (mark_eh_state): Adjust prototype. (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab): Likewise. * optabs.c: Include ggc.h. (mark_optab): New function. (init_optabs): Add gc roots. * stmt.c: Include ggc.h. (mark_cond_nesting, mark_loop_nesting): New functions. (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise. (mark_stmt_state): New function. * toplev.c (compile_file): Call init_function_once. * tree.c: Include ggc.h. (type_hash): Move declaration earlier in file. (TYPE_HASH_SIZE, type_hash_table): Likewise. (init_obstacks): Add gc roots. (mark_type_hash): New function. * varasm.c: Include ggc.h. (mark_pool_constant): New function. (mark_varasm_state): New function. Co-Authored-By: Bernd Schmidt Co-Authored-By: Mark Mitchell From-SVN: r29119 --- gcc/ggc.h | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'gcc/ggc.h') diff --git a/gcc/ggc.h b/gcc/ggc.h index bb0be13..6967900 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -23,6 +23,16 @@ /* Symbols are marked with `ggc' for `gcc gc' so as not to interfere with an external gc library that might be linked in. */ +/* These structures are defined in various headers throughout the + compiler. However, rather than force everyone who includes this + header to include all the headers in which they are declared, we + just forward-declare them here. */ +struct label_node; +struct eh_status; +struct emit_status; +struct stmt_status; +struct varasm_status; + /* Startup */ extern void init_ggc PROTO ((void)); @@ -61,12 +71,15 @@ void lang_mark_tree PROTO ((union tree_node *)); /* And similarly to free that data when the tree node is released. */ void lang_cleanup_tree PROTO ((union tree_node *)); +/* The FALSE_LABEL_STACK, declared in except.h, has + language-dependent semantics. Each front-end should define this + function appropriately. */ +void lang_mark_false_label_stack PROTO ((struct label_node *)); + /* Mark functions for various structs scattered about. */ -void mark_temp_slot PROTO ((void *)); -void mark_function_chain PROTO ((void *)); -void mark_eh_state PROTO ((void *)); -void mark_stmt_state PROTO ((void *)); -void mark_emit_state PROTO ((void *)); -void mark_varasm_state PROTO ((void *)); +void mark_eh_state PROTO ((struct eh_status *)); +void mark_stmt_state PROTO ((struct stmt_status *)); +void mark_emit_state PROTO ((struct emit_status *)); +void mark_varasm_state PROTO ((struct varasm_status *)); void mark_optab PROTO ((void *)); -- cgit v1.1