xref: /netbsd/external/gpl3/gcc.old/dist/gcc/errors.h (revision ec02198a)
110d565efSmrg /* Basic error reporting routines.
2*ec02198aSmrg    Copyright (C) 1999-2020 Free Software Foundation, Inc.
310d565efSmrg 
410d565efSmrg This file is part of GCC.
510d565efSmrg 
610d565efSmrg GCC is free software; you can redistribute it and/or modify it under
710d565efSmrg the terms of the GNU General Public License as published by the Free
810d565efSmrg Software Foundation; either version 3, or (at your option) any later
910d565efSmrg version.
1010d565efSmrg 
1110d565efSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
1210d565efSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
1310d565efSmrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1410d565efSmrg for more details.
1510d565efSmrg 
1610d565efSmrg You should have received a copy of the GNU General Public License
1710d565efSmrg along with GCC; see the file COPYING3.  If not see
1810d565efSmrg <http://www.gnu.org/licenses/>.  */
1910d565efSmrg 
2010d565efSmrg /* warning, error, and fatal.  These definitions are suitable for use
2110d565efSmrg    in the generator programs; eventually we would like to use them in
2210d565efSmrg    cc1 too, but that's a longer term project.
2310d565efSmrg 
2410d565efSmrg    N.B. We cannot presently use ATTRIBUTE_PRINTF with these functions,
2510d565efSmrg    because they can be extended with additional format specifiers which
2610d565efSmrg    GCC does not know about.  */
2710d565efSmrg 
2810d565efSmrg #ifndef GCC_ERRORS_H
2910d565efSmrg #define GCC_ERRORS_H
3010d565efSmrg 
3110d565efSmrg extern void warning (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
3210d565efSmrg extern void error (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
3310d565efSmrg extern void fatal (const char *, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
3410d565efSmrg extern void internal_error (const char *, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
3510d565efSmrg extern const char *trim_filename (const char *);
3610d565efSmrg 
3710d565efSmrg extern int have_error;
3810d565efSmrg extern const char *progname;
3910d565efSmrg 
4010d565efSmrg #endif /* ! GCC_ERRORS_H */
41