This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
GNU standards compliance for my recent patch
- From: gkeating at apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Nov 2003 11:00:26 -0800 (PST)
- Subject: GNU standards compliance for my recent patch
Neil Booth pointed out that I'd formatted the error messages wrongly,
this fixes it. Bootstrapped & tested on powerpc-darwin.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/gcc-pch-helpfulerror-dot.patch============
2003-11-13 Geoffrey Keating <geoffk@apple.com>
* cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
message comply with GNU standards.
Index: gcc/cppfiles.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppfiles.c,v
retrieving revision 1.194
diff -u -p -u -p -r1.194 cppfiles.c
--- gcc/cppfiles.c 8 Nov 2003 02:17:47 -0000 1.194
+++ gcc/cppfiles.c 14 Nov 2003 18:52:21 -0000
@@ -389,10 +389,10 @@ _cpp_find_file (cpp_reader *pfile, const
if (invalid_pch)
{
cpp_error (pfile, CPP_DL_ERROR,
- "One or more PCH files were found, but they were invalid.");
- if (! cpp_get_options (pfile)->warn_invalid_pch)
+ "one or more PCH files were found, but they were invalid");
+ if (!cpp_get_options (pfile)->warn_invalid_pch)
cpp_error (pfile, CPP_DL_ERROR,
- "Use -Winvalid-pch for more information.");
+ "use -Winvalid-pch for more information");
}
break;
}
============================================================