diff options
author | Martin Liska <mliska@suse.cz> | 2017-07-13 14:13:29 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-07-13 12:13:29 +0000 |
commit | 6d28654eed653652112dd62241fbcc0fd6090707 (patch) | |
tree | d6f6c0838ec98a14a3ad91631514a657f7e97485 /gcc/opts.c | |
parent | 7123f4476ef349eed4a9d16ec18ca2623803045f (diff) | |
download | gcc-6d28654eed653652112dd62241fbcc0fd6090707.zip gcc-6d28654eed653652112dd62241fbcc0fd6090707.tar.gz gcc-6d28654eed653652112dd62241fbcc0fd6090707.tar.bz2 |
Add quotes to error messages related to Sanitizers.
2017-07-13 Martin Liska <mliska@suse.cz>
* opts.c (finish_options): Add quotes to error messages.
(parse_sanitizer_options): Likewise.
2017-07-13 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.
From-SVN: r250179
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -954,26 +954,26 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, if ((opts->x_flag_sanitize & SANITIZE_USER_ADDRESS) && (opts->x_flag_sanitize & SANITIZE_KERNEL_ADDRESS)) error_at (loc, - "-fsanitize=address is incompatible with " - "-fsanitize=kernel-address"); + "%<-fsanitize=address%> is incompatible with " + "%<-fsanitize=kernel-address%>"); /* And with TSan. */ if ((opts->x_flag_sanitize & SANITIZE_ADDRESS) && (opts->x_flag_sanitize & SANITIZE_THREAD)) error_at (loc, - "-fsanitize=address and -fsanitize=kernel-address " - "are incompatible with -fsanitize=thread"); + "%<-fsanitize=address%> and %<-fsanitize=kernel-address%> " + "are incompatible with %<-fsanitize=thread%>"); if ((opts->x_flag_sanitize & SANITIZE_LEAK) && (opts->x_flag_sanitize & SANITIZE_THREAD)) error_at (loc, - "-fsanitize=leak is incompatible with -fsanitize=thread"); + "%<-fsanitize=leak%> is incompatible with %<-fsanitize=thread%>"); /* Check error recovery for -fsanitize-recover option. */ for (int i = 0; sanitizer_opts[i].name != NULL; ++i) if ((opts->x_flag_sanitize_recover & sanitizer_opts[i].flag) && !sanitizer_opts[i].can_recover) - error_at (loc, "-fsanitize-recover=%s is not supported", + error_at (loc, "%<-fsanitize-recover=%s%> is not supported", sanitizer_opts[i].name); /* When instrumenting the pointers, we don't want to remove @@ -999,8 +999,8 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, if (opts->x_flag_stack_reuse != SR_NONE && opts_set->x_flag_stack_reuse != SR_NONE) error_at (loc, - "-fsanitize-address-use-after-scope requires " - "-fstack-reuse=none option"); + "%<-fsanitize-address-use-after-scope%> requires " + "%<-fstack-reuse=none%> option"); opts->x_flag_stack_reuse = SR_NONE; } @@ -1613,7 +1613,7 @@ parse_sanitizer_options (const char *p, location_t loc, int scode, if (code == OPT_fsanitize_) { if (complain) - error_at (loc, "-fsanitize=all option is not valid"); + error_at (loc, "%<-fsanitize=all%> option is not valid"); } else flags |= ~(SANITIZE_THREAD | SANITIZE_LEAK |