diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-09 10:13:30 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-09 10:13:30 +0000 |
commit | 1e5fcbe2009a34584768d8b8833756bc8de97dc3 (patch) | |
tree | 7a8b42664cab7c57c0140be05c05db9dedb5add4 /gcc/config | |
parent | aaa597970cd48a9b26a265930904df4c5892771c (diff) | |
download | gcc-1e5fcbe2009a34584768d8b8833756bc8de97dc3.tar.gz |
* builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
config/iq2000/iq2000.c, config/m32r/m32r.c,
config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
config/sh/symbian.c, config/stormy16/stormy16.c,
config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
and %> as appropriate. Use %' as apostrophe in diagnostics where
applicable. Use %< and %> in place of '' quotes where applicable.
Use %qs in place of %<%s%>. Consistently quote __builtin function
names.
ada:
* misc.c (gnat_handle_option): Use %< and %> for quoting in
warning message.
cp:
* call.c, class.c, decl.c, decl2.c, error.c, mangle.c, parser.c,
pt.c, search.c, semantics.c, typeck.c: Use %q, %< and %> for
quoting in diagnostics.
* parser.c (cp_parser_sizeof_operand): Use '' instead of `' for
quoting in printf format.
* decl.c (duplicate_decls, start_decl): Use %qD instead of
unquoted %D.
objc:
* objc-act.c: Use %q, %< and %> for quoting in diagnostics.
testsuite:
* gcc.dg/builtin-prefetch-1.c: Adjust expected messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 14 | ||||
-rw-r--r-- | gcc/config/arc/arc.c | 4 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 8 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 6 | ||||
-rw-r--r-- | gcc/config/c4x/c4x.c | 2 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 | ||||
-rw-r--r-- | gcc/config/frv/frv.c | 6 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 20 | ||||
-rw-r--r-- | gcc/config/i386/winnt.c | 4 | ||||
-rw-r--r-- | gcc/config/ia64/ia64.c | 4 | ||||
-rw-r--r-- | gcc/config/ip2k/ip2k.c | 4 | ||||
-rw-r--r-- | gcc/config/iq2000/iq2000.c | 2 | ||||
-rw-r--r-- | gcc/config/m32r/m32r.c | 2 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.c | 8 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 2 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.h | 4 | ||||
-rw-r--r-- | gcc/config/mcore/mcore.c | 4 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.c | 2 | ||||
-rw-r--r-- | gcc/config/ns32k/ns32k.c | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/host-darwin.c | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 16 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 4 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 16 | ||||
-rw-r--r-- | gcc/config/sh/symbian.c | 8 | ||||
-rw-r--r-- | gcc/config/stormy16/stormy16.c | 12 | ||||
-rw-r--r-- | gcc/config/v850/v850.c | 2 |
28 files changed, 84 insertions, 84 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 5151571116e..125f01a6e41 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -303,7 +303,7 @@ override_options (void) else if (! strcmp (alpha_tp_string, "i")) alpha_tp = ALPHA_TP_INSN; else - error ("bad value `%s' for -mtrap-precision switch", alpha_tp_string); + error ("bad value %qs for -mtrap-precision switch", alpha_tp_string); } if (alpha_fprm_string) @@ -317,7 +317,7 @@ override_options (void) else if (! strcmp (alpha_fprm_string,"d")) alpha_fprm = ALPHA_FPRM_DYN; else - error ("bad value `%s' for -mfp-rounding-mode switch", + error ("bad value %qs for -mfp-rounding-mode switch", alpha_fprm_string); } @@ -332,7 +332,7 @@ override_options (void) else if (strcmp (alpha_fptm_string, "sui") == 0) alpha_fptm = ALPHA_FPTM_SUI; else - error ("bad value `%s' for -mfp-trap-mode switch", alpha_fptm_string); + error ("bad value %qs for -mfp-trap-mode switch", alpha_fptm_string); } if (alpha_tls_size_string) @@ -344,7 +344,7 @@ override_options (void) else if (strcmp (alpha_tls_size_string, "64") == 0) alpha_tls_size = 64; else - error ("bad value `%s' for -mtls-size switch", alpha_tls_size_string); + error ("bad value %qs for -mtls-size switch", alpha_tls_size_string); } alpha_cpu @@ -363,7 +363,7 @@ override_options (void) break; } if (! cpu_table [i].name) - error ("bad value `%s' for -mcpu switch", alpha_cpu_string); + error ("bad value %qs for -mcpu switch", alpha_cpu_string); } if (alpha_tune_string) @@ -375,7 +375,7 @@ override_options (void) break; } if (! cpu_table [i].name) - error ("bad value `%s' for -mcpu switch", alpha_tune_string); + error ("bad value %qs for -mcpu switch", alpha_tune_string); } /* Do some sanity checks on the above options. */ @@ -457,7 +457,7 @@ override_options (void) } else { - warning ("bad value `%s' for -mmemory-latency", alpha_mlat_string); + warning ("bad value %qs for -mmemory-latency", alpha_mlat_string); lat = 3; } diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 9773d697f33..6a334c012da 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -391,14 +391,14 @@ arc_handle_interrupt_attribute (tree *node ATTRIBUTE_UNUSED, if (TREE_CODE (value) != STRING_CST) { - warning ("argument of `%s' attribute is not a string constant", + warning ("argument of %qs attribute is not a string constant", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else if (strcmp (TREE_STRING_POINTER (value), "ilink1") && strcmp (TREE_STRING_POINTER (value), "ilink2")) { - warning ("argument of `%s' attribute is not \"ilink1\" or \"ilink2\"", + warning ("argument of %qs attribute is not \"ilink1\" or \"ilink2\"", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index dab5de5020a..914babe02e0 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2605,7 +2605,7 @@ arm_handle_fndecl_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -2623,7 +2623,7 @@ arm_handle_isr_attribute (tree *node, tree name, tree args, int flags, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -2637,7 +2637,7 @@ arm_handle_isr_attribute (tree *node, tree name, tree args, int flags, { if (arm_isr_value (args) == ARM_FT_UNKNOWN) { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } } @@ -2664,7 +2664,7 @@ arm_handle_isr_attribute (tree *node, tree name, tree args, int flags, } else { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); } } } diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index d080b8d1840..573194dbce5 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -4511,7 +4511,7 @@ avr_handle_progmem_attribute (tree *node, tree name, } else { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } } @@ -4530,7 +4530,7 @@ avr_handle_fndecl_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -4612,7 +4612,7 @@ static void avr_file_start (void) { if (avr_asm_only_p) - error ("MCU `%s' supported for assembler only", avr_mcu_name); + error ("MCU %qs supported for assembler only", avr_mcu_name); default_file_start (); diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index aeacecb5057..22465fc1873 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -4496,7 +4496,7 @@ c4x_handle_fntype_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_TYPE) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index e01b383a4f2..c84a9be190e 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1214,7 +1214,7 @@ darwin_handle_weak_import_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 0347c16f1e8..19faaa67592 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -9613,7 +9613,7 @@ frv_int_to_acc (enum insn_code icode, int opnum, rtx opval) if (! (*insn_data[icode].operand[opnum].predicate) (reg, VOIDmode)) { - error ("inappropriate accumulator for `%s'", insn_data[icode].name); + error ("inappropriate accumulator for %qs", insn_data[icode].name); return NULL_RTX; } return reg; @@ -9702,12 +9702,12 @@ frv_check_constant_argument (enum insn_code icode, int opnum, rtx opval) { if (GET_CODE (opval) != CONST_INT) { - error ("`%s' expects a constant argument", insn_data[icode].name); + error ("%qs expects a constant argument", insn_data[icode].name); return FALSE; } if (! (*insn_data[icode].operand[opnum].predicate) (opval, VOIDmode)) { - error ("constant argument out of range for `%s'", insn_data[icode].name); + error ("constant argument out of range for %qs", insn_data[icode].name); return FALSE; } return TRUE; diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 564eecdfca2..b7810358456 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -5752,7 +5752,7 @@ h8300_handle_fndecl_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -5776,7 +5776,7 @@ h8300_handle_eightbit_data_attribute (tree *node, tree name, } else { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -5799,7 +5799,7 @@ h8300_handle_tiny_data_attribute (tree *node, tree name, } else { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ba515867ed7..5f45e4295e8 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1271,10 +1271,10 @@ override_options (void) error ("bad value (%s) for -masm= switch", ix86_asm_string); } if ((TARGET_64BIT == 0) != (ix86_cmodel == CM_32)) - error ("code model `%s' not supported in the %s bit mode", + error ("code model %qs not supported in the %s bit mode", ix86_cmodel_string, TARGET_64BIT ? "64" : "32"); if (ix86_cmodel == CM_LARGE) - sorry ("code model `large' not supported yet"); + sorry ("code model %<large%> not supported yet"); if ((TARGET_64BIT != 0) != ((target_flags & MASK_64BIT) != 0)) sorry ("%i-bit mode not compiled in", (target_flags & MASK_64BIT) ? 64 : 32); @@ -1682,7 +1682,7 @@ ix86_handle_cdecl_attribute (tree *node, tree name, && TREE_CODE (*node) != FIELD_DECL && TREE_CODE (*node) != TYPE_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -1710,7 +1710,7 @@ ix86_handle_cdecl_attribute (tree *node, tree name, if (TARGET_64BIT) { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -1728,7 +1728,7 @@ ix86_handle_regparm_attribute (tree *node, tree name, tree args, && TREE_CODE (*node) != FIELD_DECL && TREE_CODE (*node) != TYPE_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -1739,13 +1739,13 @@ ix86_handle_regparm_attribute (tree *node, tree name, tree args, cst = TREE_VALUE (args); if (TREE_CODE (cst) != INTEGER_CST) { - warning ("`%s' attribute requires an integer constant argument", + warning ("%qs attribute requires an integer constant argument", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else if (compare_tree_int (cst, REGPARM_MAX) > 0) { - warning ("argument to `%s' attribute larger than %d", + warning ("argument to %qs attribute larger than %d", IDENTIFIER_POINTER (name), REGPARM_MAX); *no_add_attrs = true; } @@ -6538,7 +6538,7 @@ print_operand (FILE *file, rtx x, int code) return; } default: - output_operand_lossage ("invalid operand code `%c'", code); + output_operand_lossage ("invalid operand code '%c'", code); } } @@ -14507,7 +14507,7 @@ ix86_handle_struct_attribute (tree *node, tree name, if (!(type && (TREE_CODE (*type) == RECORD_TYPE || TREE_CODE (*type) == UNION_TYPE))) { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -14516,7 +14516,7 @@ ix86_handle_struct_attribute (tree *node, tree name, || ((is_attribute_p ("gcc_struct", name) && lookup_attribute ("ms_struct", TYPE_ATTRIBUTES (*type))))) { - warning ("`%s' incompatible attribute ignored", + warning ("%qs incompatible attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 845960eb3e9..c8a75440f89 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -71,7 +71,7 @@ ix86_handle_shared_attribute (tree *node, tree name, { if (TREE_CODE (*node) != VAR_DECL) { - warning ("`%s' attribute only applies to variables", + warning ("%qs attribute only applies to variables", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -296,7 +296,7 @@ i386_pe_mark_dllimport (tree decl) abort (); if (i386_pe_dllexport_name_p (oldname)) { - error ("`%s' declared as both exported to and imported from a DLL", + error ("%qs declared as both exported to and imported from a DLL", IDENTIFIER_POINTER (DECL_NAME (decl))); return; } diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 0b65686512c..a8fdec4385f 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -477,7 +477,7 @@ ia64_handle_model_attribute (tree *node, tree name, tree args, int flags ATTRIBU } else { - warning ("invalid argument of `%s' attribute", + warning ("invalid argument of %qs attribute", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -509,7 +509,7 @@ ia64_handle_model_attribute (tree *node, tree name, tree args, int flags ATTRIBU break; default: - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; break; } diff --git a/gcc/config/ip2k/ip2k.c b/gcc/config/ip2k/ip2k.c index 4b58fe07e30..a1eddebdc4d 100644 --- a/gcc/config/ip2k/ip2k.c +++ b/gcc/config/ip2k/ip2k.c @@ -3160,7 +3160,7 @@ ip2k_handle_progmem_attribute (tree *node, tree name, } else { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } } @@ -3178,7 +3178,7 @@ ip2k_handle_fndecl_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index 6871d0aa956..4788f9b24f4 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -2842,7 +2842,7 @@ expand_one_builtin (enum insn_code icode, rtx target, tree arglist, op[i] = expand_expr (arg[i], NULL_RTX, VOIDmode, 0); mode[i] = insn_data[icode].operand[i].mode; if (code[i] == CONST_INT && GET_CODE (op[i]) != CONST_INT) - error ("argument `%d' is not a constant", i + 1); + error ("argument %qd is not a constant", i + 1); if (code[i] == REG && ! (*insn_data[icode].operand[i].predicate) (op[i], mode[i])) op[i] = copy_to_mode_reg (mode[i], op[i]); diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c index b5621568997..384b5ae09fd 100644 --- a/gcc/config/m32r/m32r.c +++ b/gcc/config/m32r/m32r.c @@ -353,7 +353,7 @@ m32r_handle_model_attribute (tree *node ATTRIBUTE_UNUSED, tree name, && arg != large_ident1 && arg != large_ident2) { - warning ("invalid argument of `%s' attribute", + warning ("invalid argument of %qs attribute", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index 651c642d953..e134f576f62 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -1311,7 +1311,7 @@ m68hc11_handle_page0_attribute (tree *node, tree name, } else { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -1347,7 +1347,7 @@ m68hc11_handle_fntype_attribute (tree *node, tree name, && TREE_CODE (*node) != FIELD_DECL && TREE_CODE (*node) != TYPE_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -1432,13 +1432,13 @@ m68hc11_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED) trap_handler = lookup_attribute ("trap", func_attr) != NULL_TREE; if (trap_handler && is_far) { - warning ("`trap' and `far' attributes are not compatible, ignoring `far'"); + warning ("%<trap%> and %<far%> attributes are not compatible, ignoring %<far%>"); trap_handler = 0; } if (trap_handler) { if (trap_handler_symbol != 0) - warning ("`trap' attribute is already used"); + warning ("%<trap%> attribute is already used"); else trap_handler_symbol = XEXP (rtl, 0); } diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 18b8fb41501..1db78d93d21 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -285,7 +285,7 @@ m68k_handle_fndecl_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index a7a36f90d9d..b3ededee8f8 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -253,9 +253,9 @@ extern int target_flags; { "nobitfield", - MASK_BITFIELD, \ N_("Do not use the bit-field instructions") }, \ { "short", MASK_SHORT, \ - N_("Consider type `int' to be 16 bits wide") }, \ + N_("Consider type 'int' to be 16 bits wide") }, \ { "noshort", - MASK_SHORT, \ - N_("Consider type `int' to be 32 bits wide") }, \ + N_("Consider type 'int' to be 32 bits wide") }, \ { "68881", MASK_68881, "" }, \ { "soft-float", - MASK_68881, \ N_("Generate code with library calls for floating point") }, \ diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index dbd3599d60f..57e5174dbc7 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -2984,7 +2984,7 @@ mcore_override_options (void) || (mcore_stack_increment == 0 && (mcore_stack_increment_string[0] != '0' || mcore_stack_increment_string[1] != 0))) - error ("invalid option `-mstack-increment=%s'", + error ("invalid option %<-mstack-increment=%s%>", mcore_stack_increment_string); } @@ -3372,7 +3372,7 @@ mcore_handle_naked_attribute (tree * node, tree name, tree args ATTRIBUTE_UNUSED } else { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 4aa3b082a16..665e3841dc3 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -7541,7 +7541,7 @@ build_mips16_call_stub (rtx retval, rtx fn, rtx arg_size, int fp_code) Fortunately, this case is illegal, since it means that a function was declared in two different ways in a single compilation. */ if (fpret && ! l->fpret) - error ("cannot handle inconsistent calls to `%s'", fnname); + error ("cannot handle inconsistent calls to %qs", fnname); /* If we are calling a stub which handles a floating point return value, we need to arrange to save $18 in the prologue. We do diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index 98d8d60fd38..4f79df2814b 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -1585,7 +1585,7 @@ mmix_print_operand (FILE *stream, rtx x, int code) default: /* Presumably there's a missing case above if we get here. */ - internal_error ("MMIX Internal: Missing `%c' case in mmix_print_operand", code); + internal_error ("MMIX Internal: Missing %qc case in mmix_print_operand", code); } switch (GET_CODE (modified_x)) diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c index 696e86b8188..d70f3089806 100644 --- a/gcc/config/ns32k/ns32k.c +++ b/gcc/config/ns32k/ns32k.c @@ -1065,7 +1065,7 @@ ns32k_handle_fntype_attribute (tree *node, tree name, && TREE_CODE (*node) != FIELD_DECL && TREE_CODE (*node) != TYPE_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index d04270c3675..599e30603d6 100644 --- a/gcc/config/rs6000/host-darwin.c +++ b/gcc/config/rs6000/host-darwin.c @@ -101,7 +101,7 @@ segv_handler (int sig ATTRIBUTE_UNUSED, if (strcmp (shell_commands[i][0], shell_name + 1) == 0) { fnotice (stderr, - "Try running `%s' in the shell to raise its limit.\n", + "Try running '%s' in the shell to raise its limit.\n", shell_commands[i][1]); } } diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index abd3473e830..54c76dba304 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -1268,7 +1268,7 @@ rs6000_override_options (const char *default_cpu) else if (! strncmp (rs6000_traceback_name, "no", 2)) rs6000_traceback = traceback_none; else - error ("unknown -mtraceback arg `%s'; expecting `full', `partial' or `none'", + error ("unknown -mtraceback arg %qs; expecting %<full%>, %<partial%> or %<none%>", rs6000_traceback_name); } @@ -1369,7 +1369,7 @@ rs6000_override_options (const char *default_cpu) while (base[-1] != 'm') base--; if (*rs6000_longcall_switch != '\0') - error ("invalid option `%s'", base); + error ("invalid option %qs", base); rs6000_default_long_calls = (base[0] != 'n'); } @@ -1380,7 +1380,7 @@ rs6000_override_options (const char *default_cpu) while (base[-1] != 'm') base--; if (*rs6000_warn_altivec_long_switch != '\0') - error ("invalid option `%s'", base); + error ("invalid option %qs", base); rs6000_warn_altivec_long = (base[0] != 'n'); } @@ -1677,7 +1677,7 @@ rs6000_parse_tls_size_option (void) else if (strcmp (rs6000_tls_size_string, "64") == 0) rs6000_tls_size = 64; else - error ("bad value `%s' for -mtls-size switch", rs6000_tls_size_string); + error ("bad value %qs for -mtls-size switch", rs6000_tls_size_string); } void @@ -6798,7 +6798,7 @@ altivec_expand_dst_builtin (tree exp, rtx target ATTRIBUTE_UNUSED, if (TREE_CODE (arg2) != INTEGER_CST || TREE_INT_CST_LOW (arg2) & ~0x3) { - error ("argument to `%s' must be a 2-bit unsigned literal", d->name); + error ("argument to %qs must be a 2-bit unsigned literal", d->name); return const0_rtx; } @@ -6926,7 +6926,7 @@ altivec_expand_builtin (tree exp, rtx target, bool *expandedp) while (TREE_CODE (arg0) == NOP_EXPR || TREE_CODE (arg0) == ADDR_EXPR || TREE_CODE (arg0) == ARRAY_REF) arg0 = TREE_OPERAND (arg0, 0); - error ("invalid parameter combination for `%s' AltiVec intrinsic", + error ("invalid parameter combination for %qs AltiVec intrinsic", TREE_STRING_POINTER (arg0)); return const0_rtx; @@ -16746,7 +16746,7 @@ rs6000_handle_altivec_attribute (tree *node, tree name, tree args, *no_add_attrs = true; /* No need to hang on to the attribute. */ if (!result) - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); else *node = reconstruct_complex_type (*node, result); @@ -16781,7 +16781,7 @@ rs6000_handle_longcall_attribute (tree *node, tree name, && TREE_CODE (*node) != FIELD_DECL && TREE_CODE (*node) != TYPE_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 8189de09d41..b4b4c452092 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -6827,11 +6827,11 @@ s390_emit_prologue (void) if (s390_warn_framesize > 0 && cfun_frame_layout.frame_size >= s390_warn_framesize) - warning ("frame size of `%s' is " HOST_WIDE_INT_PRINT_DEC " bytes", + warning ("frame size of %qs is " HOST_WIDE_INT_PRINT_DEC " bytes", current_function_name (), cfun_frame_layout.frame_size); if (s390_warn_dynamicstack_p && cfun->calls_alloca) - warning ("`%s' uses dynamic stack allocation", current_function_name ()); + warning ("%qs uses dynamic stack allocation", current_function_name ()); /* Save incoming stack pointer into temp reg. */ if (cfun_frame_layout.save_backchain_p || next_fpr) diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index cf8bb41fafc..699f316064e 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -7150,7 +7150,7 @@ sh_handle_interrupt_handler_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -7171,21 +7171,21 @@ sh_handle_sp_switch_attribute (tree *node, tree name, tree args, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else if (!pragma_interrupt) { /* The sp_switch attribute only has meaning for interrupt functions. */ - warning ("`%s' attribute only applies to interrupt functions", + warning ("%qs attribute only applies to interrupt functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else if (TREE_CODE (TREE_VALUE (args)) != STRING_CST) { /* The argument must be a constant string. */ - warning ("`%s' attribute argument not a string constant", + warning ("%qs attribute argument not a string constant", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -7206,21 +7206,21 @@ sh_handle_trap_exit_attribute (tree *node, tree name, tree args, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else if (!pragma_interrupt) { /* The trap_exit attribute only has meaning for interrupt functions. */ - warning ("`%s' attribute only applies to interrupt functions", + warning ("%qs attribute only applies to interrupt functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } else if (TREE_CODE (TREE_VALUE (args)) != INTEGER_CST) { /* The argument must be a constant integer. */ - warning ("`%s' attribute argument not an integer constant", + warning ("%qs attribute argument not an integer constant", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -7348,7 +7348,7 @@ sh_pch_valid_p (const void *data_p, size_t len) make_message: { char *r; - asprintf (&r, _("created and used with differing settings of `-m%s'"), + asprintf (&r, _("created and used with differing settings of '-m%s'"), flag_that_differs); if (r == NULL) return _("out of memory"); diff --git a/gcc/config/sh/symbian.c b/gcc/config/sh/symbian.c index 02b95f5970d..cb04c8c8d76 100644 --- a/gcc/config/sh/symbian.c +++ b/gcc/config/sh/symbian.c @@ -276,7 +276,7 @@ sh_symbian_mark_dllimport (tree decl) if (sh_symbian_dllexport_name_p (oldname)) { - error ("`%s' declared as both exported to and imported from a DLL", + error ("%qs declared as both exported to and imported from a DLL", IDENTIFIER_POINTER (DECL_NAME (decl))); } else if (sh_symbian_dllimport_name_p (oldname)) @@ -411,14 +411,14 @@ sh_symbian_handle_dll_attribute (tree *pnode, tree name, tree args, | (int) ATTR_FLAG_FUNCTION_NEXT | (int) ATTR_FLAG_ARRAY_NEXT)) { - warning ("`%s' attribute ignored", attr); + warning ("%qs attribute ignored", attr); *no_add_attrs = true; return tree_cons (name, args, NULL_TREE); } if (TREE_CODE (node) != RECORD_TYPE && TREE_CODE (node) != UNION_TYPE) { - warning ("`%s' attribute ignored", attr); + warning ("%qs attribute ignored", attr); *no_add_attrs = true; } @@ -433,7 +433,7 @@ sh_symbian_handle_dll_attribute (tree *pnode, tree name, tree args, { if (DECL_INITIAL (node)) { - error ("%Hvariable `%D' definition is marked dllimport.", + error ("%Hvariable %qD definition is marked dllimport.", & DECL_SOURCE_LOCATION (node), node); *no_add_attrs = true; } diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index 76195cad37e..06a2f0d3fb6 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -1918,7 +1918,7 @@ xstormy16_print_operand (FILE *file, rtx x, int code) if (GET_CODE (x) == CONST_INT) xx = INTVAL (x); else - output_operand_lossage ("`B' operand is not constant"); + output_operand_lossage ("'B' operand is not constant"); /* GCC sign-extends masks with the MSB set, so we have to detect all the cases that differ only in sign extension @@ -1945,7 +1945,7 @@ xstormy16_print_operand (FILE *file, rtx x, int code) } if (l == -1) - output_operand_lossage ("`B' operand has multiple bits set"); + output_operand_lossage ("'B' operand has multiple bits set"); fprintf (file, IMMEDIATE_PREFIX HOST_WIDE_INT_PRINT_DEC, l); return; @@ -1971,7 +1971,7 @@ xstormy16_print_operand (FILE *file, rtx x, int code) if (GET_CODE (x) == CONST_INT) xx = INTVAL (x); else - output_operand_lossage ("`o' operand is not constant"); + output_operand_lossage ("'o' operand is not constant"); if (code == 'O') xx = -xx; @@ -1989,7 +1989,7 @@ xstormy16_print_operand (FILE *file, rtx x, int code) if (GET_CODE (x) == CONST_INT) xx = INTVAL (x); else - output_operand_lossage ("`B' operand is not constant"); + output_operand_lossage ("'B' operand is not constant"); l = 7 - xx; @@ -2410,7 +2410,7 @@ xstormy16_handle_interrupt_attribute (tree *node, tree name, { if (TREE_CODE (*node) != FUNCTION_TYPE) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -2431,7 +2431,7 @@ xstormy16_handle_below100_attribute (tree *node, && TREE_CODE (*node) != POINTER_TYPE && TREE_CODE (*node) != TYPE_DECL) { - warning ("`__BELOW100__' attribute only applies to variables"); + warning ("%<__BELOW100__%> attribute only applies to variables"); *no_add_attrs = true; } else if (args == NULL_TREE && TREE_CODE (*node) == VAR_DECL) diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 98c24c94ffe..8154b6616f1 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -2204,7 +2204,7 @@ v850_handle_interrupt_attribute (tree * node, { if (TREE_CODE (*node) != FUNCTION_DECL) { - warning ("`%s' attribute only applies to functions", + warning ("%qs attribute only applies to functions", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } |