diff options
author | Martin Liska <mliska@suse.cz> | 2019-03-11 14:58:44 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-03-11 13:58:44 +0000 |
commit | a3f9f006a8e24bfc2a045b918a4f3665407f0018 (patch) | |
tree | 0681cfed14dcbfd9b59a61ace8c6b34b885c20fd /gcc/c-family | |
parent | 355d4eb36aeb970743537e2f9b98d4c53c9e0eab (diff) | |
download | gcc-a3f9f006a8e24bfc2a045b918a4f3665407f0018.zip gcc-a3f9f006a8e24bfc2a045b918a4f3665407f0018.tar.gz gcc-a3f9f006a8e24bfc2a045b918a4f3665407f0018.tar.bz2 |
Wrap option names in gcc internal messages with %< and %>.
2019-03-11 Martin Liska <mliska@suse.cz>
* check-internal-format-escaping.py: New file.
2019-03-11 Martin Liska <mliska@suse.cz>
* builtins.c (expand_builtin_thread_pointer): Wrap an option name
in a string format message and fix GNU coding style.
(expand_builtin_set_thread_pointer): Likewise.
* common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
* common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
* common/config/arc/arc-common.c (arc_handle_option): Likewise.
* common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
* common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
* common/config/i386/i386-common.c (ix86_handle_option): Likewise.
* common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
* common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
* common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
* common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
* common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
* common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
(riscv_subset_list::parse_std_ext): Likewise.
(riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
(riscv_subset_list::parse): Likewise.
* common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
* config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
(aarch64_override_options_internal): Likewise.
(aarch64_validate_mcpu): Likewise.
(aarch64_validate_march): Likewise.
(aarch64_validate_mtune): Likewise.
(aarch64_override_options): Likewise.
* config/alpha/alpha.c (alpha_option_override): Likewise.
* config/arc/arc.c (arc_init): Likewise.
(parse_mrgf_banked_regs_option): Likewise.
(arc_override_options): Likewise.
(arc_expand_builtin_aligned): Likewise.
* config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
(arm_expand_builtin): Likewise.
* config/arm/arm.c (arm_option_check_internal): Likewise.
(arm_configure_build_target): Likewise.
(arm_option_override): Likewise.
(arm_options_perform_arch_sanity_checks): Likewise.
(arm_handle_cmse_nonsecure_entry): Likewise.
(arm_handle_cmse_nonsecure_call): Likewise.
(arm_tls_referenced_p): Likewise.
(thumb1_expand_prologue): Likewise.
* config/avr/avr.c (avr_option_override): Likewise.
* config/bfin/bfin.c (bfin_option_override): Likewise.
* config/c6x/c6x.c (c6x_option_override): Likewise.
* config/cr16/cr16.c (cr16_override_options): Likewise.
* config/cris/cris.c (cris_option_override): Likewise.
* config/csky/csky.c (csky_handle_isr_attribute): Likewise.
* config/darwin-c.c (macosx_version_as_macro): Likewise.
* config/darwin.c (darwin_override_options): Likewise.
* config/frv/frv.c (frv_expand_builtin): Likewise.
* config/h8300/h8300.c (h8300_option_override): Likewise.
* config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
(ix86_option_override_internal): Likewise.
(warn_once_call_ms2sysv_xlogues): Likewise.
(ix86_expand_prologue): Likewise.
(split_stack_prologue_scratch_regno): Likewise.
(ix86_warn_parameter_passing_abi): Likewise.
* config/ia64/ia64.c (fix_range): Likewise.
* config/m68k/m68k.c (m68k_option_override): Likewise.
* config/microblaze/microblaze.c (microblaze_option_override): Likewise.
* config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
(mips_set_compression_mode): Likewise.
* config/mmix/mmix.c (mmix_option_override): Likewise.
* config/mn10300/mn10300.c (mn10300_option_override): Likewise.
* config/msp430/msp430.c (msp430_option_override): Likewise.
* config/nds32/nds32.c (nds32_option_override): Likewise.
* config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
(nios2_option_override): Likewise.
(nios2_expand_custom_builtin): Likewise.
* config/nvptx/mkoffload.c (main): Likewise.
* config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
* config/pa/pa.c (fix_range): Likewise.
(pa_option_override): Likewise.
* config/riscv/riscv.c (riscv_parse_cpu): Likewise.
(riscv_option_override): Likewise.
* config/rl78/rl78.c (rl78_option_override): Likewise.
* config/rs6000/aix61.h: Likewise.
* config/rs6000/aix71.h: Likewise.
* config/rs6000/aix72.h: Likewise.
* config/rs6000/driver-rs6000.c (elf_platform): Likewise.
* config/rs6000/freebsd64.h: Likewise.
* config/rs6000/linux64.h: Likewise.
* config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
(rs6000_expand_zeroop_builtin): Likewise.
(rs6000_expand_mtfsb_builtin): Likewise.
(rs6000_expand_set_fpscr_rn_builtin): Likewise.
(rs6000_expand_set_fpscr_drn_builtin): Likewise.
(rs6000_invalid_builtin): Likewise.
(rs6000_expand_split_stack_prologue): Likewise.
* config/rs6000/rtems.h: Likewise.
* config/rx/rx.c (valid_psw_flag): Likewise.
(rx_expand_builtin): Likewise.
* config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
* config/s390/s390.c (s390_expand_builtin): Likewise.
(s390_function_profiler): Likewise.
(s390_option_override_internal): Likewise.
(s390_option_override): Likewise.
* config/sh/sh.c (sh_option_override): Likewise.
(sh_builtin_saveregs): Likewise.
(sh_fix_range): Likewise.
* config/sh/vxworks.h: Likewise.
* config/sparc/sparc.c (sparc_option_override): Likewise.
* config/spu/spu.c (spu_option_override): Likewise.
(fix_range): Likewise.
* config/visium/visium.c (visium_option_override): Likewise.
(visium_handle_interrupt_attr): Likewise.
* config/xtensa/xtensa.c (xtensa_option_override): Likewise.
* dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
(dbg_cnt_process_opt): Likewise.
* dwarf2out.c (output_dwarf_version): Likewise.
* except.c (expand_eh_return): Likewise.
* gcc.c (defined): Likewise.
(driver_handle_option): Likewise.
(process_command): Likewise.
(compare_files): Likewise.
(driver::prepare_infiles): Likewise.
(driver::do_spec_on_infiles): Likewise.
(driver::maybe_run_linker): Likewise.
* omp-offload.c (oacc_parse_default_dims): Likewise.
* opts-global.c (handle_common_deferred_options): Likewise.
* opts.c (parse_sanitizer_options): Likewise.
(common_handle_option): Likewise.
(enable_warning_as_error): Likewise.
* passes.c (enable_disable_pass): Likewise.
* plugin.c (parse_plugin_arg_opt): Likewise.
(default_plugin_dir_name): Likewise.
* targhooks.c (default_expand_builtin_saveregs): Likewise.
(default_pch_valid_p): Likewise.
* toplev.c (init_asm_output): Likewise.
(process_options): Likewise.
(toplev::run_self_tests): Likewise.
* tree-cfg.c (verify_gimple_call): Likewise.
* tree-inline.c (inline_forbidden_p_stmt): Likewise.
(tree_inlinable_function_p): Likewise.
* var-tracking.c (vt_find_locations): Likewise.
2019-03-11 Martin Liska <mliska@suse.cz>
* gcc-interface/misc.c (gnat_post_options) Wrap an option name
in a string format message and fix GNU coding style.:
2019-03-11 Martin Liska <mliska@suse.cz>
* c-attribs.c (handle_nocf_check_attribute): Wrap an option name
in a string format message and fix GNU coding style.
* c-common.c (vector_types_convertible_p): Likewise.
(c_build_vec_perm_expr): Likewise.
* c-indentation.c (get_visual_column): Likewise.
* c-opts.c (c_common_handle_option): Likewise.
(c_common_post_options): Likewise.
(sanitize_cpp_opts): Likewise.
* c-pch.c (c_common_pch_pragma): Likewise.
* c-pragma.c (handle_pragma_pack): Likewise.
2019-03-11 Martin Liska <mliska@suse.cz>
* c-decl.c (check_for_loop_decls): Wrap an option name
in a string format message and fix GNU coding style.
* c-parser.c (c_parser_declspecs): Likewise.
2019-03-11 Martin Liska <mliska@suse.cz>
* call.c (convert_arg_to_ellipsis): Wrap an option name
in a string format message and fix GNU coding style.
(build_over_call): Likewise.
* class.c (check_field_decl): Likewise.
(layout_nonempty_base_or_field): Likewise.
* constexpr.c (cxx_eval_loop_expr): Likewise.
* cvt.c (type_promotes_to): Likewise.
* decl.c (cxx_init_decl_processing): Likewise.
(mark_inline_variable): Likewise.
(grokdeclarator): Likewise.
* decl2.c (record_mangling): Likewise.
* error.c (maybe_warn_cpp0x): Likewise.
* except.c (doing_eh): Likewise.
* mangle.c (maybe_check_abi_tags): Likewise.
* parser.c (cp_parser_diagnose_invalid_type_name): Likewise.
(cp_parser_userdef_numeric_literal): Likewise.
(cp_parser_primary_expression): Likewise.
(cp_parser_unqualified_id): Likewise.
(cp_parser_pseudo_destructor_name): Likewise.
(cp_parser_builtin_offsetof): Likewise.
(cp_parser_lambda_expression): Likewise.
(cp_parser_lambda_introducer): Likewise.
(cp_parser_lambda_declarator_opt): Likewise.
(cp_parser_selection_statement): Likewise.
(cp_parser_init_statement): Likewise.
(cp_parser_decomposition_declaration): Likewise.
(cp_parser_function_specifier_opt): Likewise.
(cp_parser_static_assert): Likewise.
(cp_parser_simple_type_specifier): Likewise.
(cp_parser_namespace_definition): Likewise.
(cp_parser_using_declaration): Likewise.
(cp_parser_ctor_initializer_opt_and_function_body): Likewise.
(cp_parser_initializer_list): Likewise.
(cp_parser_type_parameter_key): Likewise.
(cp_parser_member_declaration): Likewise.
(cp_parser_try_block): Likewise.
(cp_parser_std_attribute_spec): Likewise.
(cp_parser_requires_clause_opt): Likewise.
* pt.c (check_template_variable): Likewise.
(check_default_tmpl_args): Likewise.
(push_tinst_level_loc): Likewise.
(instantiate_pending_templates): Likewise.
(invalid_nontype_parm_type_p): Likewise.
* repo.c (get_base_filename): Likewise.
* rtti.c (typeid_ok_p): Likewise.
(build_dynamic_cast_1): Likewise.
* tree.c (maybe_warn_parm_abi): Likewise.
2019-03-11 Martin Liska <mliska@suse.cz>
* decl.c (match_record_decl): Wrap an option name
in a string format message and fix GNU coding style.
(gfc_match_pointer): Likewise.
* expr.c (find_array_section): Likewise.
* intrinsic.c (gfc_is_intrinsic): Likewise.
* options.c (gfc_post_options): Likewise.
* primary.c (match_integer_constant): Likewise.
* trans-common.c (translate_common): Likewise.
2019-03-11 Martin Liska <mliska@suse.cz>
* lto-lang.c (lto_post_options): Wrap an option name
in a string format message and fix GNU coding style.
* lto-symtab.c (lto_symtab_merge_decls_2): Likewise.
2019-03-11 Martin Liska <mliska@suse.cz>
* g++.dg/conversion/simd3.C (foo): Wrap option names
with apostrophe character.
* g++.dg/cpp1z/decomp3.C (test): Likewise.
(test3): Likewise.
* g++.dg/cpp1z/decomp4.C (test): Likewise.
* g++.dg/cpp1z/decomp44.C (foo): Likewise.
* g++.dg/cpp1z/decomp45.C (f): Likewise.
* g++.dg/opt/pr34036.C: Likewise.
* g++.dg/spellcheck-c++-11-keyword.C: Likewise.
* gcc.dg/c90-fordecl-1.c (foo): Likewise.
* gcc.dg/cpp/dir-only-4.c: Likewise.
* gcc.dg/cpp/dir-only-5.c: Likewise.
* gcc.dg/cpp/pr71591.c: Likewise.
* gcc.dg/format/opt-1.c: Likewise.
* gcc.dg/format/opt-2.c: Likewise.
* gcc.dg/format/opt-3.c: Likewise.
* gcc.dg/format/opt-4.c: Likewise.
* gcc.dg/format/opt-5.c: Likewise.
* gcc.dg/format/opt-6.c: Likewise.
* gcc.dg/pr22231.c: Likewise.
* gcc.dg/pr33007.c: Likewise.
* gcc.dg/simd-1.c (hanneke): Likewise.
* gcc.dg/simd-5.c: Likewise.
* gcc.dg/simd-6.c: Likewise.
* gcc.dg/spellcheck-options-14.c: Likewise.
* gcc.dg/spellcheck-options-15.c: Likewise.
* gcc.dg/spellcheck-options-16.c: Likewise.
* gcc.dg/spellcheck-options-17.c: Likewise.
* gcc.dg/tree-ssa/pr23109.c: Likewise.
* gcc.dg/tree-ssa/recip-5.c: Likewise.
* gcc.target/i386/cet-notrack-1a.c (func): Likewise.
(__attribute__): Likewise.
* gcc.target/i386/cet-notrack-icf-1.c (fn3): Likewise.
* gcc.target/i386/cet-notrack-icf-3.c (__attribute__): Likewise.
* gcc.target/powerpc/warn-1.c: Likewise.
* gcc.target/powerpc/warn-2.c: Likewise.
From-SVN: r269586
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/c-family/c-attribs.c | 3 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 12 | ||||
-rw-r--r-- | gcc/c-family/c-indentation.c | 2 | ||||
-rw-r--r-- | gcc/c-family/c-opts.c | 35 | ||||
-rw-r--r-- | gcc/c-family/c-pch.c | 5 | ||||
-rw-r--r-- | gcc/c-family/c-pragma.c | 2 |
7 files changed, 45 insertions, 27 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 55006e6..e529538 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,16 @@ +2019-03-11 Martin Liska <mliska@suse.cz> + + * c-attribs.c (handle_nocf_check_attribute): Wrap an option name + in a string format message and fix GNU coding style. + * c-common.c (vector_types_convertible_p): Likewise. + (c_build_vec_perm_expr): Likewise. + * c-indentation.c (get_visual_column): Likewise. + * c-opts.c (c_common_handle_option): Likewise. + (c_common_post_options): Likewise. + (sanitize_cpp_opts): Likewise. + * c-pch.c (c_common_pch_pragma): Likewise. + * c-pragma.c (handle_pragma_pack): Likewise. + 2019-03-08 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/89550 diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c index 2058459..e559d3b 100644 --- a/gcc/c-family/c-attribs.c +++ b/gcc/c-family/c-attribs.c @@ -1072,7 +1072,8 @@ handle_nocf_check_attribute (tree *node, tree name, else if (!(flag_cf_protection & CF_BRANCH)) { warning (OPT_Wattributes, "%qE attribute ignored. Use " - "-fcf-protection option to enable it", name); + "%<-fcf-protection%> option to enable it", + name); *no_add_attrs = true; } diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index e5a19cc..019f108 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -976,7 +976,7 @@ vector_types_convertible_p (const_tree t1, const_tree t2, bool emit_lax_note) if (emit_lax_note && !emitted_lax_note) { emitted_lax_note = true; - inform (input_location, "use -flax-vector-conversions to permit " + inform (input_location, "use %<-flax-vector-conversions%> to permit " "conversions between vectors with differing " "element types or numbers of subparts"); } @@ -1016,7 +1016,7 @@ c_build_vec_perm_expr (location_t loc, tree v0, tree v1, tree mask, if (!VECTOR_INTEGER_TYPE_P (TREE_TYPE (mask))) { if (complain) - error_at (loc, "__builtin_shuffle last argument must " + error_at (loc, "%<__builtin_shuffle%> last argument must " "be an integer vector"); return error_mark_node; } @@ -1025,14 +1025,14 @@ c_build_vec_perm_expr (location_t loc, tree v0, tree v1, tree mask, || !VECTOR_TYPE_P (TREE_TYPE (v1))) { if (complain) - error_at (loc, "__builtin_shuffle arguments must be vectors"); + error_at (loc, "%<__builtin_shuffle%> arguments must be vectors"); return error_mark_node; } if (TYPE_MAIN_VARIANT (TREE_TYPE (v0)) != TYPE_MAIN_VARIANT (TREE_TYPE (v1))) { if (complain) - error_at (loc, "__builtin_shuffle argument vectors must be of " + error_at (loc, "%<__builtin_shuffle%> argument vectors must be of " "the same type"); return error_mark_node; } @@ -1043,7 +1043,7 @@ c_build_vec_perm_expr (location_t loc, tree v0, tree v1, tree mask, TYPE_VECTOR_SUBPARTS (TREE_TYPE (mask)))) { if (complain) - error_at (loc, "__builtin_shuffle number of elements of the " + error_at (loc, "%<__builtin_shuffle%> number of elements of the " "argument vector(s) and the mask vector should " "be the same"); return error_mark_node; @@ -1053,7 +1053,7 @@ c_build_vec_perm_expr (location_t loc, tree v0, tree v1, tree mask, != GET_MODE_BITSIZE (SCALAR_TYPE_MODE (TREE_TYPE (TREE_TYPE (mask))))) { if (complain) - error_at (loc, "__builtin_shuffle argument vector(s) inner type " + error_at (loc, "%<__builtin_shuffle%> argument vector(s) inner type " "must have the same size as inner type of the mask"); return error_mark_node; } diff --git a/gcc/c-family/c-indentation.c b/gcc/c-family/c-indentation.c index 23eac79..e643125 100644 --- a/gcc/c-family/c-indentation.c +++ b/gcc/c-family/c-indentation.c @@ -64,7 +64,7 @@ get_visual_column (expanded_location exploc, location_t loc, /* Notify the user the first time this happens. */ issued_note = true; inform (loc, - "-Wmisleading-indentation is disabled from this point" + "%<-Wmisleading-indentation%> is disabled from this point" " onwards, since column-tracking was disabled due to" " the size of the code/headers"); } diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 9660f51..3233fdb 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -327,7 +327,8 @@ c_common_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value, error ("-I- specified twice"); quote_chain_split = true; split_quote_chain (); - inform (input_location, "obsolete option -I- used, please use -iquote instead"); + inform (input_location, "obsolete option %<-I-%> used, " + "please use %<-iquote%> instead"); } break; @@ -796,7 +797,7 @@ c_common_post_options (const char **pfilename) if (c_dialect_cxx ()) { if (flag_excess_precision_cmdline == EXCESS_PRECISION_STANDARD) - sorry ("-fexcess-precision=standard for C++"); + sorry ("%<-fexcess-precision=standard%> for C++"); flag_excess_precision_cmdline = EXCESS_PRECISION_FAST; } else if (flag_excess_precision_cmdline == EXCESS_PRECISION_DEFAULT) @@ -831,7 +832,7 @@ c_common_post_options (const char **pfilename) if (flag_gnu89_inline == -1) flag_gnu89_inline = !flag_isoc99; else if (!flag_gnu89_inline && !flag_isoc99) - error ("-fno-gnu89-inline is only supported in GNU99 or C99 mode"); + error ("%<-fno-gnu89-inline%> is only supported in GNU99 or C99 mode"); /* Default to ObjC sjlj exception handling if NeXT runtime. */ if (flag_objc_sjlj_exceptions < 0) @@ -877,17 +878,17 @@ c_common_post_options (const char **pfilename) if (!warn_format) { warning (OPT_Wformat_y2k, - "-Wformat-y2k ignored without -Wformat"); + "%<-Wformat-y2k%> ignored without %<-Wformat%>"); warning (OPT_Wformat_extra_args, - "-Wformat-extra-args ignored without -Wformat"); + "%<-Wformat-extra-args%> ignored without %<-Wformat%>"); warning (OPT_Wformat_zero_length, - "-Wformat-zero-length ignored without -Wformat"); + "%<-Wformat-zero-length%> ignored without %<-Wformat%>"); warning (OPT_Wformat_nonliteral, - "-Wformat-nonliteral ignored without -Wformat"); + "%<-Wformat-nonliteral%> ignored without %<-Wformat%>"); warning (OPT_Wformat_contains_nul, - "-Wformat-contains-nul ignored without -Wformat"); + "%<-Wformat-contains-nul%> ignored without %<-Wformat%>"); warning (OPT_Wformat_security, - "-Wformat-security ignored without -Wformat"); + "%<-Wformat-security%> ignored without %<-Wformat%>"); } /* -Wimplicit-function-declaration is enabled by default for C99. */ @@ -944,12 +945,12 @@ c_common_post_options (const char **pfilename) if (flag_abi_version == latest_abi_version) { auto_diagnostic_group d; - if (warning (OPT_Wabi, "-Wabi won't warn about anything")) + if (warning (OPT_Wabi, "%<-Wabi%> won't warn about anything")) { - inform (input_location, "-Wabi warns about differences " + inform (input_location, "%<-Wabi%> warns about differences " "from the most up-to-date ABI, which is also used " "by default"); - inform (input_location, "use e.g. -Wabi=11 to warn about " + inform (input_location, "use e.g. %<-Wabi=11%> to warn about " "changes from GCC 7"); } flag_abi_compat_version = abi_compat_default; @@ -1304,7 +1305,8 @@ sanitize_cpp_opts (void) /* If we don't know what style of dependencies to output, complain if any other dependency switches have been given. */ if (deps_seen && cpp_opts->deps.style == DEPS_NONE) - error ("to generate dependencies you must specify either -M or -MM"); + error ("to generate dependencies you must specify either %<-M%> " + "or %<-MM%>"); /* -dM and dependencies suppress normal output; do it here so that the last -d[MDN] switch overrides earlier ones. */ @@ -1327,7 +1329,7 @@ sanitize_cpp_opts (void) flag_no_line_commands = 1; } else if (cpp_opts->deps.missing_files) - error ("-MG may only be used with -M or -MM"); + error ("%<-MG%> may only be used with %<-M%> or %<-MM%>"); cpp_opts->unsigned_char = !flag_signed_char; cpp_opts->stdc_0_in_system_headers = STDC_0_IN_SYSTEM_HEADERS; @@ -1360,9 +1362,10 @@ sanitize_cpp_opts (void) if (cpp_opts->directives_only) { if (cpp_warn_unused_macros) - error ("-fdirectives-only is incompatible with -Wunused_macros"); + error ("%<-fdirectives-only%> is incompatible " + "with %<-Wunused-macros%>"); if (cpp_opts->traditional) - error ("-fdirectives-only is incompatible with -traditional"); + error ("%<-fdirectives-only%> is incompatible with %<-traditional%>"); } } diff --git a/gcc/c-family/c-pch.c b/gcc/c-family/c-pch.c index 5492752..316fb84f 100644 --- a/gcc/c-family/c-pch.c +++ b/gcc/c-family/c-pch.c @@ -406,7 +406,8 @@ c_common_pch_pragma (cpp_reader *pfile, const char *name) if (!cpp_get_options (pfile)->preprocessed) { - error ("pch_preprocess pragma should only be used with -fpreprocessed"); + error ("pch_preprocess pragma should only be used " + "with %<-fpreprocessed%>"); inform (input_location, "use #include instead"); return; } @@ -418,7 +419,7 @@ c_common_pch_pragma (cpp_reader *pfile, const char *name) if (c_common_valid_pch (pfile, name, fd) != 1) { if (!cpp_get_options (pfile)->warn_invalid_pch) - inform (input_location, "use -Winvalid-pch for more information"); + inform (input_location, "use %<-Winvalid-pch%> for more information"); fatal_error (input_location, "%s: PCH file was invalid", name); } diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index bcc3302..fbc734a 100644 --- a/gcc/c-family/c-pragma.c +++ b/gcc/c-family/c-pragma.c @@ -196,7 +196,7 @@ handle_pragma_pack (cpp_reader * ARG_UNUSED (dummy)) warning (OPT_Wpragmas, "junk at end of %<#pragma pack%>"); if (flag_pack_struct) - GCC_BAD ("#pragma pack has no effect with -fpack-struct - ignored"); + GCC_BAD ("#pragma pack has no effect with %<-fpack-struct%> - ignored"); if (action != pop) switch (align) |