aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-04-08 10:01:18 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-04-08 10:01:18 +0000
commit2f878973cdb605f01778a5bbd67f7459db14b7ff (patch)
tree1f4ac5b16223e9ffcc027d3568d6d791ee3a30c7 /gcc/cpphash.h
parente542e61832a106a11a0aab3f366d2ba0a3f4ad41 (diff)
downloadgcc-2f878973cdb605f01778a5bbd67f7459db14b7ff.zip
gcc-2f878973cdb605f01778a5bbd67f7459db14b7ff.tar.gz
gcc-2f878973cdb605f01778a5bbd67f7459db14b7ff.tar.bz2
cpperror.c (print_location): Don't special case <stdin>.
* cpperror.c (print_location): Don't special case <stdin>. (_cpp_begin_message): Handle WARNING_SYSHDR the same as WARNING, but we don't check if we're in system headers. * cpplib.h (enum error_type): WARNING_SYSHDR: New. * cpplib.c (do_warning): Warn in system headers. From-SVN: r41186
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 9cac65d..cf027f0 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -389,7 +389,7 @@ extern unsigned char _cpp_trigraph_map[UCHAR_MAX + 1];
#define HASHSTEP(r, c) ((r) * 67 + (c - 113));
/* In cpperror.c */
-enum error_type { WARNING = 0, PEDWARN, ERROR, FATAL, ICE };
+enum error_type { WARNING = 0, WARNING_SYSHDR, PEDWARN, ERROR, FATAL, ICE };
extern int _cpp_begin_message PARAMS ((cpp_reader *, enum error_type,
const char *, const cpp_lexer_pos *));