[Bug c/84195] newlines in deprecated diagnostics
nickc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 18 10:39:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84195
--- Comment #7 from Nick Clifton <nickc at gcc dot gnu.org> ---
Author: nickc
Date: Mon Jun 18 10:39:01 2018
New Revision: 261697
URL: https://gcc.gnu.org/viewcvs?rev=261697&root=gcc&view=rev
Log:
Ensure that control characters in user supplied error and warning messages are
escaped.
PR 84195
* tree.c (escaped_string): New class. Converts an unescaped
string into its escaped equivalent.
(warn_deprecated_use): Use the new class to convert the
deprecation message, if present.
(test_escaped_strings): New self test.
(test_c_tests): Add test_escaped_strings.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree.c
More information about the Gcc-bugs
mailing list