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:
Joseph Myers 2004-10-14 01:56:22 +01:00 committed by Joseph Myers
parent 81da229b08
commit ac24fc258d
4 changed files with 15 additions and 0 deletions

View File

@ -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.

View 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" }

View File

@ -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.

View File

@ -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;
}