mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 22:01:27 +08:00
errors.c (_cpp_begin_message): Print "error: " for errors.
libcpp: * errors.c (_cpp_begin_message): Print "error: " for errors. gcc/testsuite: * gcc.dg/cpp/error-1.c: New test. From-SVN: r89025
This commit is contained in:
parent
81da229b08
commit
ac24fc258d
@ -1,3 +1,7 @@
|
||||
2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
|
||||
|
||||
* gcc.dg/cpp/error-1.c: New test.
|
||||
|
||||
2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
|
||||
|
||||
* gcc.dg/c99-tag-3.c, gcc.dg/declspec-14.c: New tests.
|
||||
|
5
gcc/testsuite/gcc.dg/cpp/error-1.c
Normal file
5
gcc/testsuite/gcc.dg/cpp/error-1.c
Normal file
@ -0,0 +1,5 @@
|
||||
/* Test that error messages include "error:" in the text. */
|
||||
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
||||
/* { dg-do preprocess } */
|
||||
|
||||
/* { dg-error "error: unterminated comment" }
|
@ -1,3 +1,7 @@
|
||||
2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
|
||||
|
||||
* errors.c (_cpp_begin_message): Print "error: " for errors.
|
||||
|
||||
2004-10-10 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
|
||||
|
@ -118,6 +118,8 @@ _cpp_begin_message (cpp_reader *pfile, int code,
|
||||
fputs (_("warning: "), stderr);
|
||||
else if (level == CPP_DL_ICE)
|
||||
fputs (_("internal error: "), stderr);
|
||||
else
|
||||
fputs (_("error: "), stderr);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user