Hi Martin, Hi David,

OK - attached is a new patch that:

  * Replaces control characters with their escape equivalents.
  * Includes a testcase.

I was not sure what to do about the inconsistencies between the
behaviour of #warning and #pragma GCC warning, (and the error
equivalents), so I decided to leave it for now.  Fixing them
will require mucking about in the C preprocessor library, which
I did not fancy doing at the moment.

So, is this enhanced patch OK now ?

Cheers
  Nick

gcc/ChangeLog
2018-02-07  Nick Clifton  <ni...@redhat.com>

        PR 84195
        * tree.c (warn_deprecated_use): Replace control characters in
        deprecation messages with escape sequences.

gcc/testsuite/ChangeLog
2018-02-07  Nick Clifton  <ni...@redhat.com>

        * gcc.c-torture/compile/pr84195.c: New test.

Attachment: pr84195.patch.2
Description: Unix manual page

Reply via email to