GCC Middle and Back End API Reference
toplev.h File Reference

Go to the source code of this file.

Functions

int toplev_main (int, char **)
void rest_of_decl_compilation (tree, int, int)
void rest_of_type_compilation (tree, int)
void init_optimization_passes (void)
bool enable_rtl_dump_file (void)
void init_eh (void)
void announce_function (tree)
void wrapup_global_declaration_1 (tree)
bool wrapup_global_declaration_2 (tree)
bool wrapup_global_declarations (tree *, int)
void check_global_declaration_1 (tree)
void check_global_declarations (tree *, int)
void emit_debug_global_declarations (tree *, int)
void write_global_declarations (void)
void dump_memory_report (bool)
void dump_profile_report (void)
void target_reinit (void)
void print_version (FILE *, const char *)
const char * get_src_pwd (void)
bool set_src_pwd (const char *)
HOST_WIDE_INT get_random_seed (bool)
const char * set_random_seed (const char *)

Variables

struct cl_decoded_optionsave_decoded_options
unsigned int save_decoded_options_count
unsigned local_tick
bool user_defined_section_attribute
int flag_rerun_cse_after_global_opts
struct ht * ident_hash

Function Documentation

void announce_function ( tree  )
void check_global_declaration_1 ( tree  )
void check_global_declarations ( tree ,
int   
)
void dump_memory_report ( bool  )
void dump_profile_report ( void  )
Output profile consistency.   

References gcc::pass_manager::dump_profile_report(), g, and gcc::context::get_passes().

Referenced by finalize().

void emit_debug_global_declarations ( tree ,
int   
)
bool enable_rtl_dump_file ( void  )
Enable RTL dump for all the RTL passes.   

References dump_enable_all().

Referenced by handle_common_deferred_options().

HOST_WIDE_INT get_random_seed ( bool  )
Functions used to manipulate the random seed.   
const char* get_src_pwd ( void  )
Functions used to get and set GCC's notion of in what directory
   compilation was started.   
Return the directory from which the translation unit was initiated,
   in case set_src_pwd() was not called before to assign it a
   different value.   

Referenced by comp_dir_string(), and dbxout_init().

void init_eh ( void  )
void init_optimization_passes ( void  )
void print_version ( FILE *  ,
const char *   
)
void rest_of_decl_compilation ( tree  decl,
int  top_level,
int  at_end 
)
This is called from various places for FUNCTION_DECL, VAR_DECL,
   and TYPE_DECL nodes.

   This does nothing for local (non-static) variables, unless the
   variable is a register variable with DECL_ASSEMBLER_NAME set.  In
   that case, or if the variable is not an automatic, it sets up the
   RTL and outputs any assembler code (label definition, storage
   allocation and initialization).

   DECL is the declaration.  TOP_LEVEL is nonzero
   if this declaration is not within a function.   

References asm_out_file, assemble_alias(), debug_hooks, get_identifier(), last_assemble_variable_decl, lookup_attribute(), make_decl_rtl(), seen_error(), timevar_pop(), timevar_push(), gcc_debug_hooks::type_decl, varpool_finalize_decl(), and varpool_node_for_decl().

Referenced by expand_one_hard_reg_var(), and wrapup_global_declaration_2().

void rest_of_type_compilation ( tree  ,
int   
)
const char* set_random_seed ( const char *  )
bool set_src_pwd ( const char *  )
void target_reinit ( void  )
Reinitialize everything when target parameters, such as register usage,
   have changed.   

References backend_init_target(), lang_dependent_init_target(), memset(), and regno_reg_rtx.

Referenced by save_target_globals().

int toplev_main ( int  ,
char **   
)
void wrapup_global_declaration_1 ( tree  )
bool wrapup_global_declaration_2 ( tree  )
bool wrapup_global_declarations ( tree ,
int   
)
void write_global_declarations ( void  )

Variable Documentation

int flag_rerun_cse_after_global_opts
See toplev.c.   
Set to non-zero if CSE should run after all GCSE optimizations are done.   

Referenced by execute_rtl_cprop(), execute_rtl_hoist(), execute_rtl_pre(), execute_rtl_store_motion(), gate_handle_cse_after_global_opts(), and rest_of_clean_state().

unsigned local_tick
A unique local time stamp, might be zero if none is available.   

Referenced by coverage_finish(), coverage_init(), and crash_signal().

struct cl_decoded_option* save_decoded_options
Decoded options, and number of such options.   

Referenced by crash_signal(), gen_producer_string(), and lto_write_options().

unsigned int save_decoded_options_count
bool user_defined_section_attribute
True if the user has tagged the function with the 'section'
   attribute.   

Referenced by crash_signal(), gate_handle_partition_blocks(), and rest_of_handle_final().