diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-10-14 00:56:22 +0000 |
---|---|---|
committer | Joseph Myers <jsm@polyomino.org.uk> | 2004-10-14 00:56:22 +0000 |
commit | f8595962b4f1595d5ee97e93a7e3a0c8baaa6e4a (patch) | |
tree | 2f4508e43661aec58042bf8c9ff7c8baf0d0514b /libcpp/errors.c | |
parent | b5e01a19e26cac886e2a9faa544594f2e120e6af (diff) |
libcpp:
* errors.c (_cpp_begin_message): Print "error: " for errors.
gcc/testsuite:
* gcc.dg/cpp/error-1.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@89025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/errors.c')
-rw-r--r-- | libcpp/errors.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpp/errors.c b/libcpp/errors.c index 5d53c21b28d..2aa814016a1 100644 --- a/libcpp/errors.c +++ b/libcpp/errors.c @@ -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; } |