GCC Middle and Back End API Reference
|
Go to the source code of this file.
Data Structures | |
class | driver |
struct | spec_function |
Functions | |
int | do_spec (const char *) |
void | record_temp_file (const char *, int, int) |
void | set_input (const char *) |
void | lang_specific_driver (struct cl_decoded_option **, unsigned int *, int *) |
int | lang_specific_pre_link (void) |
void | driver_get_configure_time_options (void(*cb)(const char *option, void *user_data), void *user_data) |
Variables | |
int | n_infiles |
int | lang_specific_extra_outfiles |
const char ** | outfiles |
|
extern |
These are exported by gcc.cc.
Process the spec SPEC and run the commands specified therein. Returns 0 if the spec is successfully processed; -1 if failed.
References argbuf, do_spec_2(), execute(), NULL, set_collect_gcc_options(), and compiler::spec.
Referenced by driver::do_spec_on_infiles(), and driver::maybe_run_linker().
|
extern |
PR jit/64810. Targets can provide configure-time default options in OPTION_DEFAULT_SPECS. The jit needs to access these, but they are expressed in the spec language. Run just enough of the driver to be able to expand these specs, and then call the callback CB on each such option. The options strings are *without* a leading '-' character e.g. ("march=x86-64"). Finally, clean up.
References do_option_spec(), gcc_assert, i, init_opts_obstack(), n_switches, path_prefix::name, NULL, obstack, option(), option_default_specs, opts_obstack, and switches.
|
extern |
Spec files linked with gcc.cc must provide definitions for these.
Called before processing to change/add/remove arguments.
Referenced by process_command().
|
extern |
Called before linking. Returns 0 on success and -1 on failure.
References lang_specific_extra_outfiles, n_infiles, option(), and outfiles.
Referenced by driver::do_spec_on_infiles().
|
extern |
Record FILENAME as a file to be deleted automatically. ALWAYS_DELETE nonzero means delete it if all compilation succeeds; otherwise delete it in any case. FAIL_DELETE nonzero means delete it if a compilation step fails; otherwise delete it in any case.
References always_delete_queue, failure_delete_queue, free(), temp_file::name, and temp_file::next.
Referenced by close_at_file(), do_spec_1(), and store_arg().
|
extern |
Set up the various global variables to indicate that we're processing the input file named FILENAME.
References basename_length, gcc_input_filename, input_basename, input_filename_length, input_stat_set, input_suffix, and suffixed_basename_length.
Referenced by driver::do_spec_on_infiles().
|
extern |
Number of extra output files that lang_specific_pre_link may generate.
Referenced by do_spec_1(), lang_specific_pre_link(), and driver::prepare_infiles().
|
extern |
Referenced by add_infile(), alloc_infile(), do_spec_1(), driver::do_spec_on_infiles(), driver_handle_option(), driver::finalize(), lang_specific_pre_link(), driver::maybe_print_and_exit(), driver::maybe_run_linker(), driver::prepare_infiles(), process_command(), remove_outfile_spec_function(), replace_outfile_spec_function(), and single_input_file_index().
|
extern |
A vector of corresponding output files is made up later.
And a vector of corresponding output files is made up later.
Referenced by do_spec_1(), driver::do_spec_on_infiles(), end_going_arg(), driver::finalize(), lang_specific_pre_link(), driver::maybe_run_linker(), driver::prepare_infiles(), remove_outfile_spec_function(), and replace_outfile_spec_function().