]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/collect-utils.h
Update copyright years.
[thirdparty/gcc.git] / gcc / collect-utils.h
CommitLineData
a185856a 1/* Utility functions used by tools like collect2 and lto-wrapper.
99dee823 2 Copyright (C) 2009-2021 Free Software Foundation, Inc.
a185856a
BS
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
f1717f8d
KC
20#ifndef GCC_COLLECT_UTILS_H
21#define GCC_COLLECT_UTILS_H
22
a185856a
BS
23/* Provided in collect-utils.c. */
24extern void notice (const char *, ...)
25 __attribute__ ((format (printf, 1, 2)));
26extern void fatal_signal (int);
27
5f0ad6a5
BS
28extern struct pex_obj *collect_execute (const char *, char **,
29 const char *, const char *,
b3032d1b 30 int, bool, const char *);
a185856a
BS
31extern int collect_wait (const char *, struct pex_obj *);
32extern void do_wait (const char *, struct pex_obj *);
b3032d1b 33extern void fork_execute (const char *, char **, bool, const char *);
5f0ad6a5
BS
34extern void utils_cleanup (bool);
35
a185856a
BS
36
37extern bool debug;
38extern bool verbose;
608508a6 39extern bool save_temps;
efc16503 40extern const char *dumppfx;
a185856a
BS
41
42/* Provided by the tool itself. */
43
44/* The name of the tool, printed in error messages. */
45extern const char tool_name[];
46/* Called by utils_cleanup. */
5f0ad6a5 47extern void tool_cleanup (bool);
a185856a 48extern void maybe_unlink (const char *);
f1717f8d
KC
49
50#endif /* GCC_COLLECT_UTILS_H */