11debfc3dSmrg /* Utility functions used by tools like collect2 and lto-wrapper. 2*8feb0f0bSmrg Copyright (C) 2009-2020 Free Software Foundation, Inc. 31debfc3dSmrg 41debfc3dSmrg This file is part of GCC. 51debfc3dSmrg 61debfc3dSmrg GCC is free software; you can redistribute it and/or modify it under 71debfc3dSmrg the terms of the GNU General Public License as published by the Free 81debfc3dSmrg Software Foundation; either version 3, or (at your option) any later 91debfc3dSmrg version. 101debfc3dSmrg 111debfc3dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY 121debfc3dSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or 131debfc3dSmrg FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 141debfc3dSmrg for more details. 151debfc3dSmrg 161debfc3dSmrg You should have received a copy of the GNU General Public License 171debfc3dSmrg along with GCC; see the file COPYING3. If not see 181debfc3dSmrg <http://www.gnu.org/licenses/>. */ 191debfc3dSmrg 201debfc3dSmrg #ifndef GCC_COLLECT_UTILS_H 211debfc3dSmrg #define GCC_COLLECT_UTILS_H 221debfc3dSmrg 231debfc3dSmrg /* Provided in collect-utils.c. */ 241debfc3dSmrg extern void notice (const char *, ...) 251debfc3dSmrg __attribute__ ((format (printf, 1, 2))); 261debfc3dSmrg extern void fatal_signal (int); 271debfc3dSmrg 281debfc3dSmrg extern struct pex_obj *collect_execute (const char *, char **, 291debfc3dSmrg const char *, const char *, 301debfc3dSmrg int, bool); 311debfc3dSmrg extern int collect_wait (const char *, struct pex_obj *); 321debfc3dSmrg extern void do_wait (const char *, struct pex_obj *); 331debfc3dSmrg extern void fork_execute (const char *, char **, bool); 341debfc3dSmrg extern void utils_cleanup (bool); 351debfc3dSmrg 361debfc3dSmrg 371debfc3dSmrg extern bool debug; 381debfc3dSmrg extern bool verbose; 391debfc3dSmrg extern bool save_temps; 401debfc3dSmrg 411debfc3dSmrg /* Provided by the tool itself. */ 421debfc3dSmrg 431debfc3dSmrg /* The name of the tool, printed in error messages. */ 441debfc3dSmrg extern const char tool_name[]; 451debfc3dSmrg /* Called by utils_cleanup. */ 461debfc3dSmrg extern void tool_cleanup (bool); 471debfc3dSmrg extern void maybe_unlink (const char *); 481debfc3dSmrg 491debfc3dSmrg #endif /* GCC_COLLECT_UTILS_H */ 50