This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add quotes to error messages related to Sanitizers.


On Mon, 2017-07-10 at 11:36 +0200, Martin Liška wrote:
> Hi.
> 
> This adds missing quotes to various error messages related to
> AddressSanitizer.
> Patch can bootstrap on ppc64le-redhat-linux and survives regression
> tests.
> 
> Ready to be installed?

LGTM, with my "diagnostic messages" maintainer hat on.

Grepping for "-f" within opts.c shows a few other diagnostics there
that could use quotes, but that's not a reason not to go ahead with
this patch.

Thanks
Dave

> Martin
> 
> gcc/ChangeLog:
> 
> 2017-07-04  Martin Liska  <mliska@suse.cz>
> 
> 	* opts.c (finish_options): Add quotes to error messages.
> 	(parse_sanitizer_options): Likewise.
> 
> gcc/testsuite/ChangeLog:
> 
> 2017-07-04  Martin Liska  <mliska@suse.cz>
> 
> 	* c-c++-common/ubsan/sanitize-all-1.c: Update scanned pattern.
> 	* c-c++-common/ubsan/sanitize-recover-1.c:Likewise.
> 	* c-c++-common/ubsan/sanitize-recover-2.c:Likewise.
> 	* c-c++-common/ubsan/sanitize-recover-5.c:Likewise.
> 	* c-c++-common/ubsan/sanitize-recover-7.c:Likewise.
> 	* c-c++-common/ubsan/sanitize-recover-8.c:Likewise.
> 	* c-c++-common/ubsan/sanitize-recover-9.c:Likewise.
> ---
>  gcc/opts.c                                            | 18 +++++++++
> ---------
>  gcc/testsuite/c-c++-common/ubsan/sanitize-all-1.c     |  2 +-
>  gcc/testsuite/c-c++-common/ubsan/sanitize-recover-1.c |  2 +-
>  gcc/testsuite/c-c++-common/ubsan/sanitize-recover-2.c |  2 +-
>  gcc/testsuite/c-c++-common/ubsan/sanitize-recover-5.c |  2 +-
>  gcc/testsuite/c-c++-common/ubsan/sanitize-recover-7.c |  2 +-
>  gcc/testsuite/c-c++-common/ubsan/sanitize-recover-8.c |  2 +-
>  gcc/testsuite/c-c++-common/ubsan/sanitize-recover-9.c |  2 +-
>  8 files changed, 16 insertions(+), 16 deletions(-)
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]