GCC Middle and Back End API Reference
|
Go to the source code of this file.
Functions | |
void | notice (const char *,...) __attribute__((format(printf |
void void | fatal_signal (int) |
void | setup_signals (void) |
struct pex_obj * | collect_execute (const char *, char **, const char *, const char *, int, bool, const char *) |
int | collect_wait (const char *, struct pex_obj *) |
void | do_wait (const char *, struct pex_obj *) |
void | fork_execute (const char *, char **, bool, const char *) |
void | utils_cleanup (bool) |
void | tool_cleanup (bool) |
void | maybe_unlink (const char *) |
Variables | |
bool | debug |
bool | verbose |
bool | save_temps |
const char * | dumppfx |
const char | tool_name [] |
|
extern |
Execute a program, and wait for the reply.
References _, debug, dumppfx, errno, fatal_error(), fopen, free(), ggc_alloc(), input_location, notice(), NULL, response_file, and verbose.
Referenced by do_link(), fork_execute(), maybe_run_lto_and_relink(), and run_gcc().
Wait for a process to finish, and exit if a nonzero status is found.
References collect_wait(), fatal_error(), ggc_alloc(), and input_location.
Referenced by fork_execute(), maybe_run_lto_and_relink(), run_gcc(), and scan_prog_file().
On fatal signals, delete all the temporary files.
References ggc_alloc(), kill, and utils_cleanup().
Referenced by driver::global_initializations(), and setup_signals().
|
extern |
References collect_execute(), do_wait(), ggc_alloc(), and NULL.
Referenced by compile_offload_image(), main(), maybe_run_lto_and_relink(), and run_gcc().
Unlink FILE unless we are debugging or this is the output_file and we may not unlink it.
Unlink a temporary LTRANS file unless requested otherwise.
References errno, fatal_error(), file_exists(), ggc_alloc(), input_location, may_unlink_output_file, notice(), output_file, and verbose.
Referenced by main(), maybe_unlink_list(), run_gcc(), and tool_cleanup().
Utility functions used by tools like collect2 and lto-wrapper. Copyright (C) 2009-2024 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Provided in collect-utils.cc.
Setup the signal handlers for the utils.
References fatal_signal(), and ggc_alloc().
Called by utils_cleanup.
Delete tempfiles and exit function.
Delete tempfiles. Called from utils_cleanup.
References c_file, early_debug_object_names, flto_out, free_array_of_ptrs(), ggc_alloc(), i, input_names, lto_o_files, ltrans_output_file, makefile, maybe_unlink(), maybe_unlink_list(), nr, num_deb_objs, o_file, offload_names, offload_objects_file_name, output_names, and verbose.
Referenced by collect_atexit(), and utils_cleanup().
Delete tempfiles.
References ggc_alloc(), and tool_cleanup().
Referenced by fatal_signal(), and lto_wrapper_cleanup().
|
extern |
Referenced by attempt_coalesce(), coalesce_partitions(), collect_execute(), dce_process_block(), dead_debug_add(), dead_debug_global_init(), dead_debug_insert_temp(), dead_debug_local_finish(), dead_debug_local_init(), dead_debug_promote_uses(), dead_debug_reset_uses(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug(), debug_body(), debug_head(), debug_rli(), debug_verbose(), df_create_unused_note(), df_note_bb_compute(), df_set_unused_notes_for_mw(), driver::driver(), bitmap_head::dump(), get_edit_distance(), env_manager::init(), main(), maybe_default_option(), maybe_default_options(), move_debug_stmts_from_forwarder(), move_insn_for_shrink_wrap(), prepare_shrink_wrap(), scan_prog_file(), word_dce_process_block(), and write_c_file_stat().
Referenced by collect_execute(), compile_offload_image(), find_crtoffloadtable(), main(), and run_gcc().
|
extern |
Provided by the tool itself.
The name of the tool, printed in error messages.
|
extern |
Global state.
Verboseness. 0 is quiet, 1 adds some warnings, 2 is for debugging.
Referenced by dt_node::append_simplify(), collect_execute(), compile_offload_image(), gori_map::dump(), dump_possible_polymorphic_call_targets(), dump_possible_polymorphic_call_targets(), dump_targets(), dump_value_slim(), decision_tree::find_node(), flow_loop_dump(), flow_loops_dump(), decision_tree::gen(), dt_simplify::gen_1(), lra(), main(), maybe_unlink(), maybe_unlink(), merge_include_chains(), output_line_directive(), print_exp(), print_insn(), print_pattern(), print_value(), register_include_chains(), remove_duplicates(), run_gcc(), scan_prog_file(), tool_cleanup(), capture_info::walk_c_expr(), and capture_info::walk_match().