summaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-18 16:31:55 +0100
committerMartin Liska <mliska@suse.cz>2022-01-18 17:25:37 +0100
commit58385f6ace42d17da5a73cb9b68ce6173295840f (patch)
treeadc84fc404276b2f61788a52a6e7638bab6fe80b /gcc/config/mips
parent88619b5b4cc7de9ca7f5d62fcbb759a846b0397d (diff)
downloadgcc-58385f6ace42d17da5a73cb9b68ce6173295840f.tar.gz
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/mips')
-rw-r--r--gcc/config/mips/mips.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc
index 6c0da2bb90c..4f9683e8bf4 100644
--- a/gcc/config/mips/mips.cc
+++ b/gcc/config/mips/mips.cc
@@ -1519,7 +1519,7 @@ mips_handle_interrupt_attr (tree *node ATTRIBUTE_UNUSED, tree name, tree args,
{
warning (OPT_Wattributes,
"argument to %qE attribute is neither eic, nor "
- "vector=<line>", name);
+ "%<vector=<line>%>", name);
*no_add_attrs = true;
}
else if (startswith (TREE_STRING_POINTER (cst), "vector="))
@@ -1535,7 +1535,7 @@ mips_handle_interrupt_attr (tree *node ATTRIBUTE_UNUSED, tree name, tree args,
{
warning (OPT_Wattributes,
"interrupt vector to %qE attribute is not "
- "vector=(sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5)",
+ "%<vector=(sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5)%>",
name);
*no_add_attrs = true;
}
@@ -19712,7 +19712,7 @@ mips_set_compression_mode (unsigned int compression_mode)
sorry ("MIPS16 %<-mxgot%> code");
if (TARGET_HARD_FLOAT_ABI && !TARGET_OLDABI)
- sorry ("hard-float MIPS16 code for ABIs other than o32 and o64");
+ sorry ("%<hard-float%> MIPS16 code for ABIs other than o32 and o64");
if (TARGET_MSA)
sorry ("MSA MIPS16 code");