diff options
author | Martin Liška <mliska@suse.cz> | 2020-06-11 10:43:36 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-06-12 09:32:53 +0200 |
commit | 47fe96341d28ff9e68990038b1beb8a760ff26d0 (patch) | |
tree | b0d4de7e957fb534d202d1afa1a9abf9faaecdf0 /gcc/lto-wrapper.c | |
parent | 04f0546e3e468e67dcd8cd20265796887805de3e (diff) | |
download | gcc-47fe96341d28ff9e68990038b1beb8a760ff26d0.zip gcc-47fe96341d28ff9e68990038b1beb8a760ff26d0.tar.gz gcc-47fe96341d28ff9e68990038b1beb8a760ff26d0.tar.bz2 |
Fix few -Wformat-diag warnings.
Ready for master?
Thanks,
Martin
gcc/ChangeLog:
* cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
* dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
line.
* lto-wrapper.c (merge_and_complain): Wrap option names.
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index d565b08..8fbca7c 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -508,24 +508,24 @@ merge_and_complain (struct cl_decoded_option **decoded_options, break; else if (i < *decoded_options_count && j == fdecoded_options_count) { - warning (0, "Extra option to -Xassembler: %s," - " dropping all -Xassembler and -Wa options.", + warning (0, "Extra option to %<-Xassembler%>: %s," + " dropping all %<-Xassembler%> and %<-Wa%> options.", (*decoded_options)[i].arg); xassembler_options_error = true; break; } else if (i == *decoded_options_count && j < fdecoded_options_count) { - warning (0, "Extra option to -Xassembler: %s," - " dropping all -Xassembler and -Wa options.", + warning (0, "Extra option to %<-Xassembler%>: %s," + " dropping all %<-Xassembler%> and %<-Wa%> options.", fdecoded_options[j].arg); xassembler_options_error = true; break; } else if (strcmp ((*decoded_options)[i].arg, fdecoded_options[j].arg)) { - warning (0, "Options to Xassembler do not match: %s, %s," - " dropping all -Xassembler and -Wa options.", + warning (0, "Options to %<-Xassembler%> do not match: %s, %s," + " dropping all %<-Xassembler%> and %<-Wa%> options.", (*decoded_options)[i].arg, fdecoded_options[j].arg); xassembler_options_error = true; break; |