diff options
author | Martin Liska <mliska@suse.cz> | 2022-01-18 16:31:55 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-01-18 17:25:37 +0100 |
commit | 58385f6ace42d17da5a73cb9b68ce6173295840f (patch) | |
tree | adc84fc404276b2f61788a52a6e7638bab6fe80b /gcc/config/sh | |
parent | 88619b5b4cc7de9ca7f5d62fcbb759a846b0397d (diff) | |
download | gcc-58385f6ace42d17da5a73cb9b68ce6173295840f.zip gcc-58385f6ace42d17da5a73cb9b68ce6173295840f.tar.gz gcc-58385f6ace42d17da5a73cb9b68ce6173295840f.tar.bz2 |
Fix -Wformat-diag in various targets.
gcc/ChangeLog:
* collect2.cc (scan_libraries): Fix -Wformat-diag issues.
* config/aarch64/aarch64-builtins.cc (aarch64_simd_expand_builtin): Likewise.
* config/arc/arc.md: Likewise.
* config/avr/avr.cc (avr_section_type_flags): Likewise.
* config/bfin/bfin.cc (bfin_option_override): Likewise.
(bfin_handle_longcall_attribute): Likewise.
* config/cris/cris.h (FUNCTION_PROFILER): Likewise.
* config/frv/frv.cc (frv_expand_builtin): Likewise.
* config/ia64/ia64-c.cc (ia64_hpux_handle_builtin_pragma): Likewise.
* config/iq2000/iq2000.cc (save_restore_insns): Likewise.
(iq2000_print_operand_address): Likewise.
(iq2000_print_operand): Likewise.
* config/m32c/m32c-pragma.cc (m32c_pragma_memregs): Likewise.
(m32c_pragma_address): Likewise.
* config/m68k/m68k.cc (m68k_handle_fndecl_attribute): Likewise.
* config/mips/mips.cc (mips_handle_interrupt_attr): Likewise.
(mips_set_compression_mode): Likewise.
* config/mmix/mmix.cc (mmix_function_profiler): Likewise.
(mmix_print_operand): Likewise.
(mmix_output_shiftvalue_op_from_str): Likewise.
(mmix_output_shifted_value): Likewise.
* config/msp430/driver-msp430.cc (msp430_select_hwmult_lib): Likewise.
* config/msp430/msp430.cc (msp430_option_override): Likewise.
(msp430_attr): Likewise.
(msp430_expand_delay_cycles): Likewise.
(msp430_expand_builtin): Likewise.
* config/rs6000/aix73.h: Likewise.
* config/rs6000/rtems.h (INVALID_64BIT): Likewise.
* config/rx/rx.cc (rx_expand_builtin_mvtc): Likewise.
(valid_psw_flag): Likewise.
* config/sh/sh.cc (parse_validate_atomic_model_option): Likewise.
* config/stormy16/stormy16.cc (xstormy16_function_profiler): Likewise.
(xstormy16_expand_builtin_va_start): Likewise.
(xstormy16_handle_below100_attribute): Likewise.
Diffstat (limited to 'gcc/config/sh')
-rw-r--r-- | gcc/config/sh/sh.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/sh/sh.cc b/gcc/config/sh/sh.cc index dd8bce4..8d40563 100644 --- a/gcc/config/sh/sh.cc +++ b/gcc/config/sh/sh.cc @@ -728,7 +728,7 @@ parse_validate_atomic_model_option (const char* str) goto got_mode_name; } - err_ret ("invalid atomic model name \"%s\"", tokens.front ().c_str ()); + err_ret ("invalid atomic model name %qs", tokens.front ().c_str ()); got_mode_name:; } @@ -742,11 +742,11 @@ got_mode_name:; std::string offset_str = tokens[i].substr (strlen ("gbr-offset=")); ret.tcb_gbr_offset = integral_argument (offset_str.c_str ()); if (offset_str.empty () || ret.tcb_gbr_offset == -1) - err_ret ("could not parse gbr-offset value \"%s\" in atomic model " + err_ret ("could not parse gbr-offset value %qs in atomic model " "option", offset_str.c_str ()); } else - err_ret ("unknown parameter \"%s\" in atomic model option", + err_ret ("unknown parameter %qs in atomic model option", tokens[i].c_str ()); } |