]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/collect2.h
Merge lto branch into trunk.
[thirdparty/gcc.git] / gcc / collect2.h
CommitLineData
89a1f620 1/* Header file for collect/tlink routines.
8c4c00c1 2 Copyright (C) 1998, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
a8cffe11 3
f12b58b3 4This file is part of GCC.
a8cffe11 5
f12b58b3 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
8c4c00c1 8Software Foundation; either version 3, or (at your option) any later
f12b58b3 9version.
a8cffe11 10
f12b58b3 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.
a8cffe11 15
16You should have received a copy of the GNU General Public License
8c4c00c1 17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
a8cffe11 19
2a281353 20#ifndef GCC_COLLECT2_H
21#define GCC_COLLECT2_H
1ae13971 22
89a1f620 23extern void do_tlink (char **, char **);
1ae13971 24
d6b5203d 25extern struct pex_obj *collect_execute (const char *, char **, const char *,
7bfefa9d 26 const char *, int flags);
1ae13971 27
89a1f620 28extern void collect_exit (int) ATTRIBUTE_NORETURN;
1ae13971 29
6e24b140 30extern int collect_wait (const char *, struct pex_obj *);
1ae13971 31
d6b5203d 32extern void dump_file (const char *, FILE *);
1ae13971 33
89a1f620 34extern int file_exists (const char *);
e504db4a 35
36extern const char *ldout;
d6b5203d 37extern const char *lderrout;
e504db4a 38extern const char *c_file_name;
39extern struct obstack temporary_obstack;
e504db4a 40extern char *temporary_firstobj;
41extern int vflag, debug;
42
89a1f620 43extern void error (const char *, ...) ATTRIBUTE_PRINTF_1;
44extern void notice (const char *, ...) ATTRIBUTE_PRINTF_1;
45extern void fatal (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
46extern void fatal_perror (const char *, ...)
e504db4a 47 ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
1ae13971 48
2a281353 49#endif /* ! GCC_COLLECT2_H */