]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/collect-utils.h
[Ada] Revert change for gnatprove that is no longer needed
[thirdparty/gcc.git] / gcc / collect-utils.h
CommitLineData
eb9ccb01 1/* Utility functions used by tools like collect2 and lto-wrapper.
fbd26352 2 Copyright (C) 2009-2019 Free Software Foundation, Inc.
eb9ccb01 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
ce6bb0f3 20#ifndef GCC_COLLECT_UTILS_H
21#define GCC_COLLECT_UTILS_H
22
eb9ccb01 23/* Provided in collect-utils.c. */
24extern void notice (const char *, ...)
25 __attribute__ ((format (printf, 1, 2)));
26extern void fatal_signal (int);
27
39ef03bb 28extern struct pex_obj *collect_execute (const char *, char **,
29 const char *, const char *,
30 int, bool);
eb9ccb01 31extern int collect_wait (const char *, struct pex_obj *);
32extern void do_wait (const char *, struct pex_obj *);
39ef03bb 33extern void fork_execute (const char *, char **, bool);
34extern void utils_cleanup (bool);
35
eb9ccb01 36
37extern bool debug;
38extern bool verbose;
572cae00 39extern bool save_temps;
eb9ccb01 40
41/* Provided by the tool itself. */
42
43/* The name of the tool, printed in error messages. */
44extern const char tool_name[];
45/* Called by utils_cleanup. */
39ef03bb 46extern void tool_cleanup (bool);
eb9ccb01 47extern void maybe_unlink (const char *);
ce6bb0f3 48
49#endif /* GCC_COLLECT_UTILS_H */