GCC Middle and Back End API Reference
collect-utils.h
Go to the documentation of this file.
1/* Utility functions used by tools like collect2 and lto-wrapper.
2 Copyright (C) 2009-2024 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_COLLECT_UTILS_H
21#define GCC_COLLECT_UTILS_H
22
23/* Provided in collect-utils.cc. */
24extern void notice (const char *, ...)
25 __attribute__ ((format (printf, 1, 2)));
26extern void fatal_signal (int);
27extern void setup_signals (void);
28
29extern struct pex_obj *collect_execute (const char *, char **,
30 const char *, const char *,
31 int, bool, const char *);
32extern int collect_wait (const char *, struct pex_obj *);
33extern void do_wait (const char *, struct pex_obj *);
34extern void fork_execute (const char *, char **, bool, const char *);
35extern void utils_cleanup (bool);
36
37
38extern bool debug;
39extern bool verbose;
41extern const char *dumppfx;
42
43/* Provided by the tool itself. */
44
45/* The name of the tool, printed in error messages. */
47/* Called by utils_cleanup. */
48extern void tool_cleanup (bool);
49extern void maybe_unlink (const char *);
50
51#endif /* GCC_COLLECT_UTILS_H */
void void fatal_signal(int)
Definition collect-utils.cc:52
bool debug
Definition collect-utils.cc:34
const char * dumppfx
Definition collect-utils.cc:37
void do_wait(const char *, struct pex_obj *)
Definition collect-utils.cc:132
void maybe_unlink(const char *)
Definition collect2.cc:1824
struct pex_obj * collect_execute(const char *, char **, const char *, const char *, int, bool, const char *)
Definition collect-utils.cc:143
void utils_cleanup(bool)
Definition collect-utils.cc:259
void fork_execute(const char *, char **, bool, const char *)
Definition collect-utils.cc:246
void notice(const char *,...) __attribute__((format(printf
Definition collect-utils.cc:42
const char tool_name[]
Definition collect2.cc:300
void setup_signals(void)
Definition collect-utils.cc:63
bool verbose
Definition collect-utils.cc:35
void tool_cleanup(bool)
Definition collect2.cc:383
int collect_wait(const char *, struct pex_obj *)
Definition collect-utils.cc:101
save_temps
Definition gcc.cc:277
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184