Go to the source code of this file.
|
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 *) |
|
◆ collect_execute()
struct pex_obj * collect_execute |
( |
const char * | prog, |
|
|
char ** | argv, |
|
|
const char * | outname, |
|
|
const char * | errname, |
|
|
int | flags, |
|
|
bool | use_atfile, |
|
|
const char * | atsuffix ) |
|
extern |
Execute a program, and wait for the reply.
References _, debug, dumppfx, errno, fatal_error(), fopen, free(), input_location, notice(), NULL, response_file, and verbose.
Referenced by do_link(), fork_execute(), maybe_run_lto_and_relink(), and run_gcc().
◆ collect_wait()
int collect_wait |
( |
const char * | prog, |
|
|
struct pex_obj * | pex ) |
|
extern |
Wait for a process to finish, and exit if a nonzero status is found.
◆ do_wait()
void do_wait |
( |
const char * | prog, |
|
|
struct pex_obj * | pex ) |
|
extern |
◆ fatal_signal()
void void fatal_signal |
( |
int | signum | ) |
|
|
extern |
◆ fork_execute()
void fork_execute |
( |
const char * | prog, |
|
|
char ** | argv, |
|
|
bool | use_atfile, |
|
|
const char * | atsuffix ) |
|
extern |
◆ maybe_unlink()
void maybe_unlink |
( |
const char * | file | ) |
|
|
extern |
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(), input_location, may_unlink_output_file, notice(), output_file, and verbose.
Referenced by main(), maybe_unlink_list(), run_gcc(), and tool_cleanup().
◆ notice()
void notice |
( |
const char * | cmsgid, |
|
|
| ... ) |
|
extern |
Utility functions used by tools like collect2 and lto-wrapper.
Copyright (C) 2009-2025 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_signals()
void setup_signals |
( |
void | | ) |
|
|
extern |
◆ tool_cleanup()
void tool_cleanup |
( |
bool | from_signal | ) |
|
|
extern |
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(), i, input_names, lto_o_files, ltrans_output_file, makefile, maybe_unlink(), 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().
◆ utils_cleanup()
void utils_cleanup |
( |
bool | from_signal | ) |
|
|
extern |
◆ debug
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(), 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(), find_a_file(), find_file_set_debug(), get_edit_distance(), env_manager::init(), main(), maybe_default_option(), maybe_default_options(), move_debug_stmts_from_forwarder(), move_insn_for_shrink_wrap(), prefix_from_string(), prepare_shrink_wrap(), scan_prog_file(), word_dce_process_block(), and write_c_file_stat().
◆ dumppfx
◆ save_temps
◆ tool_name
Provided by the tool itself.
The name of the tool, printed in error messages.
Referenced by diagnostic_finish_va().
◆ verbose
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(), do_merge(), do_merge_stream(), do_overlap(), do_rewrite(), 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(), profile_merge(), register_include_chains(), remove_duplicates(), run_gcc(), scan_prog_file(), tool_cleanup(), capture_info::walk_c_expr(), and capture_info::walk_match().