+void set_exception_lang_code PARAMS ((int));
+void set_exception_version_code PARAMS ((int));
+
+/* A list of handlers asocciated with an exception region. HANDLER_LABEL
+ is the the label that control should be transfered to if the data
+ in TYPE_INFO matches an exception. a value of NULL_TREE for TYPE_INFO
+ means This is a cleanup, and must always be called. A value of
+ CATCH_ALL_TYPE works like a cleanup, but a call to the runtime matcher
+ is still performed to avoid being caught by a different language
+ exception. NEXT is a pointer to the next handler for this region.
+ NULL means there are no more. */
+
+typedef struct handler_info
+{
+ rtx handler_label;
+ int handler_number;
+ void *type_info;
+ struct handler_info *next;
+} handler_info;
+
+
+/* Add new handler information to an exception range. The first parameter
+ specifies the range number (returned from new_eh_entry()). The second
+ parameter specifies the handler. By default the handler is inserted at
+ the end of the list. A handler list may contain only ONE NULL_TREE
+ typeinfo entry. Regardless where it is positioned, a NULL_TREE entry
+ is always output as the LAST handler in the exception table for a region. */
+
+void add_new_handler PARAMS ((int, struct handler_info *));
+
+/* Remove a handler label. The handler label is being deleted, so all
+ regions which reference this handler should have it removed from their
+ list of possible handlers. Any region which has the final handler
+ removed can be deleted. */
+
+void remove_handler PARAMS ((rtx));
+
+/* Create a new handler structure initialized with the handler label and
+ typeinfo fields passed in. */
+
+struct handler_info *get_new_handler PARAMS ((rtx, void *));
+
+/* Make a duplicate of an exception region by copying all the handlers
+ for an exception region. Return the new handler index. */
+
+int duplicate_eh_handlers PARAMS ((int, int, rtx (*)(rtx)));
+
+/* map symbol refs for rethrow */
+
+rtx rethrow_symbol_map PARAMS ((rtx, rtx (*)(rtx)));
+
+/* Is the rethrow label for a region used? */
+
+int rethrow_used PARAMS ((int));
+
+/* Update the rethrow references to reflect rethrows which have been
+ optimized away. */
+
+void update_rethrow_references PARAMS ((void));
+
+/* Get a pointer to the first handler in an exception region's list. */
+
+struct handler_info *get_first_handler PARAMS ((int));
+
+/* Find all the runtime handlers type matches currently referenced */
+
+int find_all_handler_type_matches PARAMS ((void ***));
+
+/* The eh_nesting_info structure is used to find a list of valid handlers
+ for any arbitrary exception region. When init_eh_nesting_info is called,
+ the information is all pre-calculated and entered in this structure.
+ REGION_INDEX is a vector over all possible region numbers. Since the
+ number of regions is typically much smaller than the range of block
+ numbers, this is a sparse vector and the other data structures are
+ represented as dense vectors. Indexed with an exception region number, this
+ returns the index to use in the other data structures to retreive the
+ correct information.
+ HANDLERS is an array of vectors which point to handler_info structures.
+ when indexed, it gives the list of all possible handlers which can
+ be reached by a throw from this exception region.
+ NUM_HANDLERS is the equivilent array indicating how many handler
+ pointers there are in the HANDLERS vector.
+ OUTER_INDEX indicates which index represents the information for the
+ outer block. 0 indicates there is no outer context.
+ REGION_COUNT is the number of regions. */
+
+typedef struct eh_nesting
+{
+ int *region_index;
+ handler_info ***handlers;
+ int *num_handlers;
+ int *outer_index;
+ int region_count;
+} eh_nesting_info;
+
+/* Initialize the eh_nesting_info structure. */
+
+eh_nesting_info *init_eh_nesting_info PARAMS ((void));
+
+/* Get a list of handlers reachable from a an exception region/insn. */
+
+int reachable_handlers PARAMS ((int, eh_nesting_info *, rtx,
+ handler_info ***handlers));
+
+/* Free the eh_nesting_info structure. */
+
+void free_eh_nesting_info PARAMS ((eh_nesting_info *));
+
+extern void init_eh PARAMS ((void));