]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/collect-utils.h
Part 2 of the collect-utils library, now also used for collect2.
[thirdparty/gcc.git] / gcc / collect-utils.h
CommitLineData
a185856a
BS
1/* Utility functions used by tools like collect2 and lto-wrapper.
2 Copyright (C) 2009-2014 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/* Provided in collect-utils.c. */
21extern void notice (const char *, ...)
22 __attribute__ ((format (printf, 1, 2)));
23extern void fatal_signal (int);
24
5f0ad6a5
BS
25extern struct pex_obj *collect_execute (const char *, char **,
26 const char *, const char *,
27 int, bool);
a185856a
BS
28extern int collect_wait (const char *, struct pex_obj *);
29extern void do_wait (const char *, struct pex_obj *);
5f0ad6a5
BS
30extern void fork_execute (const char *, char **, bool);
31extern void utils_cleanup (bool);
32
a185856a
BS
33
34extern bool debug;
35extern bool verbose;
608508a6 36extern bool save_temps;
a185856a
BS
37
38/* Provided by the tool itself. */
39
40/* The name of the tool, printed in error messages. */
41extern const char tool_name[];
42/* Called by utils_cleanup. */
5f0ad6a5 43extern void tool_cleanup (bool);
a185856a 44extern void maybe_unlink (const char *);