GCC Middle and Back End API Reference
toplev Class Reference

#include <toplev.h>

Public Member Functions

 toplev (timer *external_timer, bool init_signals)
 ~toplev ()
int main (int argc, char **argv)
void finalize ()

Private Member Functions

void start_timevars ()
void run_self_tests ()

Private Attributes

bool m_use_TV_TOTAL
bool m_init_signals

Detailed Description

Invoking the compiler.   

Constructor & Destructor Documentation

◆ toplev()

toplev::toplev ( timer * external_timer,
bool init_signals )

References g_timer, m_init_signals, m_use_TV_TOTAL, and NULL.

Referenced by main().

◆ ~toplev()

toplev::~toplev ( )

Member Function Documentation

◆ finalize()

◆ main()

int toplev::main ( int argc,
char ** argv )
Entry point of cc1, cc1plus, jc1, f771, etc.
Exit code is FATAL_EXIT_CODE if can't open files or if there were
any errors, or SUCCESS_EXIT_CODE if compilation succeeded.

It is not safe to call this function more than once.   

References after_memory_report, CL_OPTIMIZATION, cl_options, cl_options_count, debug_hooks, decode_cmdline_options_to_array_default_mask(), decode_options(), diagnostic_finish(), do_compile(), do_nothing_debug_hooks, error_at(), errorcount, diagnostics::context::execution_failed_p(), FATAL_EXIT_CODE, finalize_plugins(), general_init(), diagnostics::context::get_file_cache(), diagnostics::context::get_fixits_change_set(), diagnostics::context::get_reference_printer(), global_dc, global_options, global_options_set, handle_common_deferred_options(), handle_deferred_dump_options(), i, init_ggc_heuristics(), init_local_tick(), lang_hooks::init_options, init_options_once(), init_options_struct(), lang_hooks::init_options_struct, init_opts_obstack(), initialize_plugins(), invoke_plugin_callbacks(), m_init_signals, m_use_TV_TOTAL, diagnostics::maybe_open_sarif_sink_for_socket(), no_backend, NULL, lang_hooks::post_options, pp_flush(), pp_show_color(), print_ignored_options(), print_plugins_help(), print_version(), process_options(), run_self_tests(), save_decoded_options, save_decoded_options_count, save_opt_decoded_options, seen_error(), start_timevars(), SUCCESS_EXIT_CODE, targetm, diagnostics::file_cache::tune(), UNKNOWN_LOCATION, warningcount, and werrorcount.

Referenced by main().

◆ run_self_tests()

void toplev::run_self_tests ( )
private

◆ start_timevars()

void toplev::start_timevars ( )
private
Potentially call timevar_init (which will create g_timevars if it
doesn't already exist).   

References timevar_init(), and timevar_start().

Referenced by main().

Field Documentation

◆ m_init_signals

bool toplev::m_init_signals
private

Referenced by main(), and toplev().

◆ m_use_TV_TOTAL

bool toplev::m_use_TV_TOTAL
private

Referenced by main(), toplev(), and ~toplev().


The documentation for this class was generated from the following files: