gcc/testsuite
[official-gcc.git] / gcc / collect-utils.h
blob2989c6b1da05fcd040d35809924c96ca824e4d49
1 /* Utility functions used by tools like collect2 and lto-wrapper.
2 Copyright (C) 2009-2014 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* Provided in collect-utils.c. */
21 extern void notice (const char *, ...)
22 __attribute__ ((format (printf, 1, 2)));
23 extern void fatal_signal (int);
25 extern struct pex_obj *collect_execute (const char *, char **,
26 const char *, const char *,
27 int, bool);
28 extern int collect_wait (const char *, struct pex_obj *);
29 extern void do_wait (const char *, struct pex_obj *);
30 extern void fork_execute (const char *, char **, bool);
31 extern void utils_cleanup (bool);
34 extern bool debug;
35 extern bool verbose;
36 extern bool save_temps;
38 /* Provided by the tool itself. */
40 /* The name of the tool, printed in error messages. */
41 extern const char tool_name[];
42 /* Called by utils_cleanup. */
43 extern void tool_cleanup (bool);
44 extern void maybe_unlink (const char *);