+2019-03-11 Martin Liska <mliska@suse.cz>
+
+ * check-internal-format-escaping.py: New file.
+
2019-03-10 Tommy Nguyen <remyabel@gmail.com>
PR contrib/82704
--- /dev/null
+#!/usr/bin/env python3
+#
+# Check gcc.pot file for gcc-internal-format and print all strings
+# that contain an option that is not wrapped by %<-option_name%>.
+#
+# This file is part of GCC.
+#
+# GCC is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation; either version 3, or (at your option) any later
+# version.
+#
+# GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GCC; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>. */
+#
+#
+#
+
+import argparse
+import re
+
+parser = argparse.ArgumentParser(description='')
+parser.add_argument('file', help = 'pot file')
+
+args = parser.parse_args()
+
+origin = None
+internal = False
+
+lines = open(args.file).readlines()
+for i, l in enumerate(lines):
+ l = l.strip()
+ s = 'msgid '
+ if l.startswith('#: '):
+ origin = l
+ elif '#, gcc-internal-format' in l:
+ internal = True
+ if l.startswith(s) and origin and internal:
+ j = 0
+ while not lines[i + j].startswith('msgstr'):
+ l = lines[i + j]
+ if l.startswith(s):
+ l = l[len(s):]
+ text = l.strip('"').strip()
+ if text:
+ parts = text.split(' ')
+ for p in parts:
+ if p.startswith('-'):
+ if len(p) >= 2 and (p[1].isalpha() and p != '-INF'):
+ print('%s: %s' % (origin, text))
+ elif p.startswith('__builtin_'):
+ print('%s: %s' % (origin, text))
+# if re.search("[a-zA-Z]'[a-zA-Z]", p):
+# print('%s: %s' % (origin, text))
+ j += 1
+
+ origin = None
+ internal = False
+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 Andreas Krebbel <krebbel@linux.ibm.com>
* config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
+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-02-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak.
{
/* Excess precision other than "fast" requires front-end support. */
if (flag_excess_precision_cmdline == EXCESS_PRECISION_STANDARD)
- sorry ("-fexcess-precision=standard for Ada");
+ sorry ("%<-fexcess-precision=standard%> for Ada");
flag_excess_precision_cmdline = EXCESS_PRECISION_FAST;
/* No psABI change warnings for Ada. */
expand_insn (icode, 1, &op);
return target;
}
- error ("__builtin_thread_pointer is not supported on this target");
+ error ("%<__builtin_thread_pointer%> is not supported on this target");
return const0_rtx;
}
expand_insn (icode, 1, &op);
return;
}
- error ("__builtin_set_thread_pointer is not supported on this target");
+ error ("%<__builtin_set_thread_pointer%> is not supported on this target");
}
\f
+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
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;
}
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");
}
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;
}
|| !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;
}
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;
!= 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;
}
/* 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");
}
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;
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)
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)
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. */
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;
/* 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. */
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;
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%>");
}
}
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;
}
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);
}
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)
+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-08 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/89550
if (hint)
{
inform (loc,
- "use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 "
- "to compile your code");
+ "use option %<-std=c99%>, %<-std=gnu99%>, %<-std=c11%> or "
+ "%<-std=gnu11%> to compile your code");
hint = false;
}
return NULL_TREE;
break;
case RID_GIMPLE:
if (! flag_gimple)
- error_at (loc, "%<__GIMPLE%> only valid with -fgimple");
+ error_at (loc, "%<__GIMPLE%> only valid with %<-fgimple%>");
c_parser_consume_token (parser);
specs->gimple_p = true;
specs->locations[cdw_gimple] = loc;
found does not map to an architecture we understand. */
if (p_to_a->arch == aarch64_no_arch
|| a_to_an->arch == aarch64_no_arch)
- fatal_error (input_location, "unknown value %qs for -mcpu", name);
+ fatal_error (input_location, "unknown value %qs for %<-mcpu%>", name);
unsigned long extensions = p_to_a->flags;
aarch64_parse_extension (extension_str.c_str (), &extensions, NULL);
case OPT_mtls_size_:
if (value != 16 && value != 32 && value != 64)
- error_at (loc, "bad value %qs for -mtls-size switch", arg);
+ error_at (loc, "bad value %qs for %<-mtls-size%> switch", arg);
break;
}
our caller, so comparing arc_cpu with PROCESSOR_NONE is pointless. */
if (mcpu_seen != PROCESSOR_NONE && mcpu_seen != value)
- warning_at (loc, 0, "multiple -mcpu= options specified.");
+ warning_at (loc, 0, "multiple %<-mcpu=%> options specified.");
mcpu_seen = value;
break;
return all_fpus + i;
}
- error_at (input_location, "unrecognized -mfpu target: %s", opt);
+ error_at (input_location, "unrecognized %<-mfpu%> target: %s", opt);
arm_print_hint_for_fpu_option (opt);
return NULL;
}
{
case OPT_mshared_library_id_:
if (value > MAX_LIBRARY_ID)
- error_at (loc, "-mshared-library-id=%s is not between 0 and %d",
+ error_at (loc, "%<-mshared-library-id=%s%> is not between 0 and %d",
arg, MAX_LIBRARY_ID);
return true;
if (p == NULL)
{
- error_at (loc, "-mcpu=%s is not valid", arg);
+ error_at (loc, "%<-mcpu=%s%> is not valid", arg);
return false;
}
|| si_major > 0xff || si_minor > 0xff)
{
invalid_silicon_revision:
- error_at (loc, "-mcpu=%s has invalid silicon revision", arg);
+ error_at (loc, "%<-mcpu=%s%> has invalid silicon revision",
+ arg);
return false;
}
case OPT_malign_loops_:
- warning_at (loc, 0, "-malign-loops is obsolete, use -falign-loops");
+ warning_at (loc, 0, "%<-malign-loops%> is obsolete, "
+ "use %<-falign-loops%>");
if (value > MAX_CODE_ALIGN)
- error_at (loc, "-malign-loops=%d is not between 0 and %d",
+ error_at (loc, "%<-malign-loops=%d%> is not between 0 and %d",
value, MAX_CODE_ALIGN);
else
set_malign_value (&opts->x_str_align_loops, value);
return true;
case OPT_malign_jumps_:
- warning_at (loc, 0, "-malign-jumps is obsolete, use -falign-jumps");
+ warning_at (loc, 0, "%<-malign-jumps%> is obsolete, "
+ "use %<-falign-jumps%>");
if (value > MAX_CODE_ALIGN)
- error_at (loc, "-malign-jumps=%d is not between 0 and %d",
+ error_at (loc, "%<-malign-jumps=%d%> is not between 0 and %d",
value, MAX_CODE_ALIGN);
else
set_malign_value (&opts->x_str_align_jumps, value);
case OPT_malign_functions_:
warning_at (loc, 0,
- "-malign-functions is obsolete, use -falign-functions");
+ "%<-malign-functions%> is obsolete, "
+ "use %<-falign-functions%>");
if (value > MAX_CODE_ALIGN)
- error_at (loc, "-malign-functions=%d is not between 0 and %d",
+ error_at (loc, "%<-malign-functions=%d%> is not between 0 and %d",
value, MAX_CODE_ALIGN);
else
set_malign_value (&opts->x_str_align_functions, value);
case OPT_mbranch_cost_:
if (value > 5)
{
- error_at (loc, "-mbranch-cost=%d is not between 0 and 5", value);
+ error_at (loc, "%<-mbranch-cost=%d%> is not between 0 and 5", value);
opts->x_ix86_branch_cost = 5;
}
return true;
{
case OPT_mtls_size_:
if (value != 14 && value != 22 && value != 64)
- error_at (loc, "bad value %<%s%> for -mtls-size= switch", arg);
+ error_at (loc, "bad value %<%s%> for %<-mtls-size=%> switch", arg);
return true;
default:
case OPT_mshared_library_id_:
if (value > MAX_LIBRARY_ID)
- error_at (loc, "-mshared-library-id=%s is not between 0 and %d",
+ error_at (loc, "%<-mshared-library-id=%s%> is not between 0 and %d",
arg, MAX_LIBRARY_ID);
else
{
}
else
{
- error ("unrecognized argument of -mcpu: %s", decoded->arg);
+ error ("unrecognized argument of %<-mcpu%>: %s", decoded->arg);
return false;
}
break;
/* Check the valid vector size: 4 or 16. */
if (value != 4 && value != 16)
{
- error_at (loc, "for the option -misr-vector-size=X, the valid X "
- "must be: 4 or 16");
+ error_at (loc, "%<-misr-vector-size=%d%> argument must be 4 or 16", value);
return false;
}
/* Check the valid security level: 0 1 2 3. */
if (value < 0 || value > 3)
{
- error_at (loc, "for the option -misr-secure=X, the valid X "
- "must be: 0, 1, 2, or 3");
+ error_at (loc, "%<-misr-secure=%d%> argument not in between 0 and 3",
+ value);
return false;
}
return true;
/* Check valid value: 4 8 16 32 64 128 256 512. */
if (exact_log2 (value) < 2 || exact_log2 (value) > 9)
{
- error_at (loc, "for the option -mcache-block-size=X, the valid X "
+ error_at (loc, "for the option %<-mcache-block-size=X%>, the valid X "
"must be: 4, 8, 16, 32, 64, 128, 256, or 512");
return false;
}
else if (! strcmp (q, "builtin"))
mask = MASK_DEBUG_BUILTIN;
else
- error_at (loc, "unknown -mdebug-%s switch", q);
+ error_at (loc, "unknown %<-mdebug-%s%> switch", q);
if (invert)
opts->x_rs6000_debug &= ~mask;
case OPT_mlong_double_:
if (value != 64 && value != 128)
{
- error_at (loc, "unknown switch -mlong-double-%s", arg);
+ error_at (loc, "unknown switch %<-mlong-double-%s%>", arg);
opts->x_rs6000_long_double_type_size
= RS6000_DEFAULT_LONG_DOUBLE_SIZE;
return false;
case OPT_msingle_float:
if (!TARGET_SINGLE_FPU)
warning_at (loc, 0,
- "-msingle-float option equivalent to -mhard-float");
+ "%<-msingle-float%> option equivalent to %<-mhard-float%>");
/* -msingle-float implies -mno-double-float and TARGET_HARD_FLOAT. */
opts->x_rs6000_double_float = 0;
opts->x_rs6000_isa_flags &= ~OPTION_MASK_SOFT_FLOAT;
case OPT_msimple_fpu:
if (!TARGET_SINGLE_FPU)
- warning_at (loc, 0, "-msimple-fpu option ignored");
+ warning_at (loc, 0, "%<-msimple-fpu%> option ignored");
break;
case OPT_mhard_float:
}
else
{
- error_at (m_loc, "-march=%s: Expect number after `%dp'.",
+ error_at (m_loc, "%<-march=%s%>: Expect number after `%dp'.",
m_arch, version);
return NULL;
}
if (m_xlen > 32)
{
- error_at (m_loc, "-march=%s: rv%de is not a valid base ISA", m_arch,
- m_xlen);
+ error_at (m_loc, "%<-march=%s%>: rv%de is not a valid base ISA",
+ m_arch, m_xlen);
return NULL;
}
break;
break;
default:
- error_at (m_loc, "-march=%s: first ISA subset must be `e', `i' or `g'",
- m_arch);
+ error_at (m_loc, "%<-march=%s%>: first ISA subset must be `e', "
+ "`i' or `g'", m_arch);
return NULL;
}
if (std_ext != *std_exts)
{
if (strchr (all_std_exts, std_ext) == NULL)
- error_at (m_loc, "-march=%s: unsupported ISA subset `%c'",
+ error_at (m_loc, "%<-march=%s%>: unsupported ISA subset `%c'",
m_arch, *p);
else
error_at (m_loc,
- "-march=%s: ISA string is not in canonical order. `%c'",
- m_arch, *p);
+ "%<-march=%s%>: ISA string is not in canonical order. "
+ "`%c'", m_arch, *p);
return NULL;
}
if (*p != '\0' && *p != '_')
{
- error_at (m_loc, "-march=%s: %s must separate with _",
+ error_at (m_loc, "%<-march=%s%>: %s must separate with _",
m_arch, ext_type_str);
return NULL;
}
}
else
{
- error_at (loc, "-march=%s: ISA string must begin with rv32 or rv64",
+ error_at (loc, "%<-march=%s%>: ISA string must begin with rv32 or rv64",
arch);
goto fail;
}
else if (! strcmp (q, "builtin"))
mask = MASK_DEBUG_BUILTIN;
else
- error_at (loc, "unknown -mdebug-%s switch", q);
+ error_at (loc, "unknown %<-mdebug-%s%> switch", q);
if (invert)
opts->x_rs6000_debug &= ~mask;
case OPT_mlong_double_:
if (value != 64 && value != 128)
{
- error_at (loc, "unknown switch -mlong-double-%s", arg);
+ error_at (loc, "unknown switch %<-mlong-double-%s%>", arg);
opts->x_rs6000_long_double_type_size
= RS6000_DEFAULT_LONG_DOUBLE_SIZE;
return false;
return flag->flag;
}
- error ("unknown flag passed in -moverride=%s (%s)", option_name, token);
+ error ("unknown flag passed in %<-moverride=%s%> (%s)", option_name, token);
return 0;
}
if (aarch64_stack_protector_guard == SSP_GLOBAL
&& opts->x_aarch64_stack_protector_guard_offset_str)
{
- error ("incompatible options -mstack-protector-guard=global and"
- "-mstack-protector-guard-offset=%qs",
+ error ("incompatible options %<-mstack-protector-guard=global%> and"
+ "%<-mstack-protector-guard-offset=%qs%>",
aarch64_stack_protector_guard_offset_str);
}
&& !(opts->x_aarch64_stack_protector_guard_offset_str
&& opts->x_aarch64_stack_protector_guard_reg_str))
{
- error ("both -mstack-protector-guard-offset and "
- "-mstack-protector-guard-reg must be used "
- "with -mstack-protector-guard=sysreg");
+ error ("both %<-mstack-protector-guard-offset%> and "
+ "%<-mstack-protector-guard-reg%> must be used "
+ "with %<-mstack-protector-guard=sysreg%>");
}
if (opts->x_aarch64_stack_protector_guard_reg_str)
long offs = strtol (aarch64_stack_protector_guard_offset_str, &end, 0);
if (!*str || *end || errno)
error ("%qs is not a valid offset in %qs", str,
- "-mstack-protector-guard-offset=");
+ "%<-mstack-protector-guard-offset=%>");
aarch64_stack_protector_guard_offset = offs;
}
error ("missing cpu name in %<-mcpu=%s%>", str);
break;
case AARCH64_PARSE_INVALID_ARG:
- error ("unknown value %qs for -mcpu", str);
+ error ("unknown value %qs for %<-mcpu%>", str);
aarch64_print_hint_for_core (str);
break;
case AARCH64_PARSE_INVALID_FEATURE:
error ("missing arch name in %<-march=%s%>", str);
break;
case AARCH64_PARSE_INVALID_ARG:
- error ("unknown value %qs for -march", str);
+ error ("unknown value %qs for %<-march%>", str);
aarch64_print_hint_for_arch (str);
break;
case AARCH64_PARSE_INVALID_FEATURE:
error ("missing cpu name in %<-mtune=%s%>", str);
break;
case AARCH64_PARSE_INVALID_ARG:
- error ("unknown value %qs for -mtune", str);
+ error ("unknown value %qs for %<-mtune%>", str);
aarch64_print_hint_for_core (str);
break;
default:
{
if (selected_arch->arch != selected_cpu->arch)
{
- warning (0, "switch -mcpu=%s conflicts with -march=%s switch",
+ warning (0, "switch %<-mcpu=%s%> conflicts with %<-march=%s%> switch",
all_architectures[selected_cpu->arch].name,
selected_arch->name);
}
/* The compiler may have been configured with 2.23.* binutils, which does
not have support for ILP32. */
if (TARGET_ILP32)
- error ("assembler does not support -mabi=ilp32");
+ error ("assembler does not support %<-mabi=ilp32%>");
#endif
/* Convert -msve-vector-bits to a VG count. */
aarch64_sve_vg = aarch64_convert_sve_vector_bits (aarch64_sve_vector_bits);
if (aarch64_ra_sign_scope != AARCH64_FUNCTION_NONE && TARGET_ILP32)
- sorry ("return address signing is only supported for -mabi=lp64");
+ sorry ("return address signing is only supported for %<-mabi=lp64%>");
/* Make sure we properly set up the explicit options. */
if ((aarch64_cpu_string && valid_cpu)
#endif
break;
case AARCH64_CMODEL_LARGE:
- sorry ("code model %qs with -f%s", "large",
+ sorry ("code model %qs with %<-f%s%>", "large",
opts->x_flag_pic > 1 ? "PIC" : "pic");
break;
default:
else if (! strcmp (alpha_tp_string, "i"))
alpha_tp = ALPHA_TP_INSN;
else
- error ("bad value %qs for -mtrap-precision switch", alpha_tp_string);
+ error ("bad value %qs for %<-mtrap-precision%> switch",
+ alpha_tp_string);
}
if (alpha_fprm_string)
else if (! strcmp (alpha_fprm_string,"d"))
alpha_fprm = ALPHA_FPRM_DYN;
else
- error ("bad value %qs for -mfp-rounding-mode switch",
+ error ("bad value %qs for %<-mfp-rounding-mode%> switch",
alpha_fprm_string);
}
else if (strcmp (alpha_fptm_string, "sui") == 0)
alpha_fptm = ALPHA_FPTM_SUI;
else
- error ("bad value %qs for -mfp-trap-mode switch", alpha_fptm_string);
+ error ("bad value %qs for %<-mfp-trap-mode%> switch",
+ alpha_fptm_string);
}
if (alpha_cpu_string)
break;
}
if (i == ct_size)
- error ("bad value %qs for -mcpu switch", alpha_cpu_string);
+ error ("bad value %qs for %<-mcpu%> switch", alpha_cpu_string);
}
if (alpha_tune_string)
break;
}
if (i == ct_size)
- error ("bad value %qs for -mtune switch", alpha_tune_string);
+ error ("bad value %qs for %<-mtune%> switch", alpha_tune_string);
}
if (line_size)
if ((alpha_fptm == ALPHA_FPTM_SU || alpha_fptm == ALPHA_FPTM_SUI)
&& alpha_tp != ALPHA_TP_INSN && alpha_cpu != PROCESSOR_EV6)
{
- warning (0, "fp software completion requires -mtrap-precision=i");
+ warning (0, "fp software completion requires %<-mtrap-precision=i%>");
alpha_tp = ALPHA_TP_INSN;
}
}
else
{
- warning (0, "bad value %qs for -mmemory-latency", alpha_mlat_string);
+ warning (0, "bad value %qs for %<-mmemory-latency%>",
+ alpha_mlat_string);
lat = 3;
}
/* MPY instructions valid only for ARC700 or ARCv2. */
if (TARGET_NOMPY_SET && TARGET_ARC600_FAMILY)
- error ("-mno-mpy supported only for ARC700 or ARCv2");
+ error ("%<-mno-mpy%> supported only for ARC700 or ARCv2");
if (!TARGET_DPFP && TARGET_DPFP_DISABLE_LRSR)
- error ("-mno-dpfp-lrsr supported only with -mdpfp");
+ error ("%<-mno-dpfp-lrsr%> supported only with %<-mdpfp%>");
/* FPX-1. No fast and compact together. */
if ((TARGET_DPFP_FAST_SET && TARGET_DPFP_COMPACT_SET)
/* FPX-2. No fast-spfp for arc600 or arc601. */
if (TARGET_SPFP_FAST_SET && TARGET_ARC600_FAMILY)
- error ("-mspfp_fast not available on ARC600 or ARC601");
+ error ("%<-mspfp_fast%> not available on ARC600 or ARC601");
/* FPX-4. No FPX extensions mixed with FPU extensions. */
if ((TARGET_DPFP_FAST_SET || TARGET_DPFP_COMPACT_SET || TARGET_SPFP)
if (errno != 0 || *arg == '\0' || *end_ptr != '\0'
|| (val != 0 && val != 4 && val != 8 && val != 16 && val != 32))
{
- error ("invalid number in -mrgf-banked-regs=%s "
+ error ("invalid number in %<-mrgf-banked-regs=%s%> "
"valid values are 0, 4, 8, 16, or 32", arg);
return;
}
irq_range (opt->arg);
else
warning (OPT_mirq_ctrl_saved_,
- "option -mirq-ctrl-saved valid only for ARC v2 processors");
+ "option %<-mirq-ctrl-saved%> valid only "
+ "for ARC v2 processors");
break;
case OPT_mrgf_banked_regs_:
parse_mrgf_banked_regs_option (opt->arg);
else
warning (OPT_mrgf_banked_regs_,
- "option -mrgf-banked-regs valid only for ARC v2 processors");
+ "option %<-mrgf-banked-regs%> valid only for "
+ "ARC v2 processors");
break;
default:
/* If we can't fold the alignment to a constant integer
whilst optimizing, this is probably a user error. */
if (optimize)
- warning (0, "__builtin_arc_aligned with non-constant alignment");
+ warning (0, "%<__builtin_arc_aligned%> with non-constant alignment");
}
else
{
/* Check alignTest is positive, and a power of two. */
if (alignTest <= 0 || alignTest != (alignTest & -alignTest))
{
- error ("invalid alignment value for __builtin_arc_aligned");
+ error ("invalid alignment value for %<__builtin_arc_aligned%>");
return NULL_RTX;
}
{
fatal_error (input_location,
"You must enable NEON instructions"
- " (e.g. -mfloat-abi=softfp -mfpu=neon)"
+ " (e.g. %<-mfloat-abi=softfp%> %<-mfpu=neon%>)"
" to use these intrinsics.");
return const0_rtx;
}
{
fatal_error (input_location,
"You must enable crypto instructions"
- " (e.g. include -mfloat-abi=softfp -mfpu=crypto-neon...)"
+ " (e.g. include %<-mfloat-abi=softfp%> "
+ "%<-mfpu=crypto-neon%>)"
" to use these intrinsics.");
return const0_rtx;
}
&& write_symbols != NO_DEBUG
&& !TARGET_APCS_FRAME
&& (TARGET_DEFAULT & MASK_APCS_FRAME))
- warning (0, "-g with -mno-apcs-frame may not give sensible debugging");
+ warning (0, "%<-g%> with %<-mno-apcs-frame%> may not give sensible "
+ "debugging");
/* iWMMXt unsupported under Thumb mode. */
if (TARGET_THUMB_P (flags) && TARGET_IWMMXT)
error ("iWMMXt unsupported under Thumb mode");
if (TARGET_HARD_TP && TARGET_THUMB1_P (flags))
- error ("cannot use -mtp=cp15 with 16-bit Thumb");
+ error ("cannot use %<-mtp=cp15%> with 16-bit Thumb");
if (TARGET_THUMB_P (flags) && TARGET_VXWORKS_RTP && flag_pic)
{
/* Cannot load addresses: -mslow-flash-data forbids literal pool and
-mword-relocations forbids relocation of MOVT/MOVW. */
if (target_word_relocations)
- error ("%s incompatible with -mword-relocations", flag);
+ error ("%s incompatible with %<-mword-relocations%>", flag);
}
}
if (!bitmap_empty_p (isa_delta))
{
if (warn_compatible)
- warning (0, "switch -mcpu=%s conflicts with -march=%s switch",
+ warning (0, "switch %<-mcpu=%s%> conflicts "
+ "with %<-march=%s%> switch",
arm_selected_cpu->common.name,
arm_selected_arch->common.name);
/* -march wins for code generation.
if (TARGET_APCS_STACK && !TARGET_APCS_FRAME)
{
- warning (0, "-mapcs-stack-check incompatible with -mno-apcs-frame");
+ warning (0, "%<-mapcs-stack-check%> incompatible with "
+ "%<-mno-apcs-frame%>");
target_flags |= MASK_APCS_FRAME;
}
target_flags |= MASK_APCS_FRAME;
if (TARGET_APCS_REENT && flag_pic)
- error ("-fpic and -mapcs-reent are incompatible");
+ error ("%<-fpic%> and %<-mapcs-reent%> are incompatible");
if (TARGET_APCS_REENT)
warning (0, "APCS reentrant code not supported. Ignored");
if (flag_pic && TARGET_SINGLE_PIC_BASE)
{
if (TARGET_VXWORKS_RTP)
- warning (0, "RTP PIC is incompatible with -msingle-pic-base");
+ warning (0, "RTP PIC is incompatible with %<-msingle-pic-base%>");
arm_pic_register = (TARGET_APCS_STACK || TARGET_AAPCS_BASED) ? 9 : 10;
}
int pic_register = decode_reg_name (arm_pic_register_string);
if (!flag_pic)
- warning (0, "-mpic-register= is useless without -fpic");
+ warning (0, "%<-mpic-register=%> is useless without %<-fpic%>");
/* Prevent the user from choosing an obviously stupid PIC register. */
else if (pic_register < 0 || call_used_regs[pic_register]
if (flag_reorder_blocks_and_partition)
{
inform (input_location,
- "-freorder-blocks-and-partition not supported on this architecture");
+ "%<-freorder-blocks-and-partition%> not supported "
+ "on this architecture");
flag_reorder_blocks_and_partition = 0;
flag_reorder_blocks = 1;
}
if (TARGET_AAPCS_BASED)
{
if (TARGET_CALLER_INTERWORKING)
- error ("AAPCS does not support -mcaller-super-interworking");
+ error ("AAPCS does not support %<-mcaller-super-interworking%>");
else
if (TARGET_CALLEE_INTERWORKING)
- error ("AAPCS does not support -mcallee-super-interworking");
+ error ("AAPCS does not support %<-mcallee-super-interworking%>");
}
/* __fp16 support currently assumes the core has ldrh. */
{
arm_pcs_default = ARM_PCS_AAPCS_VFP;
if (!bitmap_bit_p (arm_active_target.isa, isa_bit_vfpv2))
- error ("-mfloat-abi=hard: selected processor lacks an FPU");
+ error ("%<-mfloat-abi=hard%>: selected processor lacks an FPU");
}
else
arm_pcs_default = ARM_PCS_AAPCS;
else
{
if (arm_float_abi == ARM_FLOAT_ABI_HARD)
- sorry ("-mfloat-abi=hard and VFP");
+ sorry ("%<-mfloat-abi=hard%> and VFP");
if (arm_abi == ARM_ABI_APCS)
arm_pcs_default = ARM_PCS_APCS;
if (!use_cmse)
{
*no_add_attrs = true;
- warning (OPT_Wattributes, "%qE attribute ignored without -mcmse option.",
- name);
+ warning (OPT_Wattributes, "%qE attribute ignored without %<-mcmse%> "
+ "option.", name);
return NULL_TREE;
}
if (!use_cmse)
{
*no_add_attrs = true;
- warning (OPT_Wattributes, "%qE attribute ignored without -mcmse option.",
- name);
+ warning (OPT_Wattributes, "%qE attribute ignored without %<-mcmse%> "
+ "option.", name);
return NULL_TREE;
}
currently implement these if a literal pool is disabled. */
if (arm_disable_literal_pool)
sorry ("accessing thread-local storage is not currently supported "
- "with -mpure-code or -mslow-flash-data");
+ "with %<-mpure-code%> or %<-mslow-flash-data%>");
return true;
}
if ((flag_stack_check == STATIC_BUILTIN_STACK_CHECK
|| flag_stack_clash_protection)
&& size)
- sorry ("-fstack-check=specific for Thumb-1");
+ sorry ("%<-fstack-check=specific%> for Thumb-1");
amount = offsets->outgoing_args - offsets->saved_regs;
amount -= 4 * thumb1_extra_regs_pushed (offsets, true);
}
if (flag_pic == 1)
- warning (OPT_fpic, "-fpic is not supported");
+ warning (OPT_fpic, "%<-fpic%> is not supported");
if (flag_pic == 2)
- warning (OPT_fPIC, "-fPIC is not supported");
+ warning (OPT_fPIC, "%<-fPIC%> is not supported");
if (flag_pie == 1)
- warning (OPT_fpie, "-fpie is not supported");
+ warning (OPT_fpie, "%<-fpie%> is not supported");
if (flag_pie == 2)
- warning (OPT_fPIE, "-fPIE is not supported");
+ warning (OPT_fPIE, "%<-fPIE%> is not supported");
#if !defined (HAVE_AS_AVR_MGCCISR_OPTION)
avr_gasisr_prologues = 0;
#ifdef SUBTARGET_FDPIC_NOT_SUPPORTED
if (TARGET_FDPIC)
- error ("-mfdpic is not supported, please use a bfin-linux-uclibc target");
+ error ("%<-mfdpic%> is not supported, please use a bfin-linux-uclibc "
+ "target");
#endif
/* Library identification */
if (global_options_set.x_bfin_library_id && ! TARGET_ID_SHARED_LIBRARY)
- error ("-mshared-library-id= specified without -mid-shared-library");
+ error ("%<-mshared-library-id=%> specified without "
+ "%<-mid-shared-library%>");
if (stack_limit_rtx && TARGET_FDPIC)
{
- warning (0, "-fstack-limit- options are ignored with -mfdpic; use -mstack-check-l1");
+ warning (0, "%<-fstack-limit-%> options are ignored with %<-mfdpic%>; "
+ "use %<-mstack-check-l1%>");
stack_limit_rtx = NULL_RTX;
}
/* Don't allow the user to specify -mid-shared-library and -msep-data
together, as it makes little sense from a user's point of view... */
if (TARGET_SEP_DATA && TARGET_ID_SHARED_LIBRARY)
- error ("cannot specify both -msep-data and -mid-shared-library");
+ error ("cannot specify both %<-msep-data%> and %<-mid-shared-library%>");
/* ... internally, however, it's nearly the same. */
if (TARGET_SEP_DATA)
target_flags |= MASK_ID_SHARED_LIBRARY | MASK_LEAF_ID_SHARED_LIBRARY;
flag_pic = 0;
if (TARGET_MULTICORE && bfin_cpu_type != BFIN_CPU_BF561)
- error ("-mmulticore can only be used with BF561");
+ error ("%<-mmulticore%> can only be used with BF561");
if (TARGET_COREA && !TARGET_MULTICORE)
- error ("-mcorea should be used with -mmulticore");
+ error ("%<-mcorea%> should be used with %<-mmulticore%>");
if (TARGET_COREB && !TARGET_MULTICORE)
- error ("-mcoreb should be used with -mmulticore");
+ error ("%<-mcoreb%> should be used with %<-mmulticore%>");
if (TARGET_COREA && TARGET_COREB)
- error ("-mcorea and -mcoreb can%'t be used together");
+ error ("%<-mcorea%> and %<-mcoreb%> can%'t be used together");
flag_schedule_insns = 0;
if (flag_pic && !TARGET_DSBT)
{
- error ("-fpic and -fPIC not supported without -mdsbt on this target");
+ error ("%<-fpic%> and %<-fPIC%> not supported without %<-mdsbt%> "
+ "on this target");
flag_pic = 0;
}
c6x_initial_flag_pic = flag_pic;
error ("data-model=far not valid for cr16c architecture");
}
else
- error ("invalid data model option -mdata-model=%s", cr16_data_model);
+ error ("invalid data model option %<-mdata-model=%s%>",
+ cr16_data_model);
}
else
data_model = DM_DEFAULT;
/* Do some sanity checking. */
if (cris_max_stackframe < 0 || cris_max_stackframe > 0x20000000)
- internal_error ("-max-stackframe=%d is not usable, not between 0 and %d",
+ internal_error ("%<-max-stackframe=%d%> is not usable, "
+ "not between 0 and %d",
cris_max_stackframe, 0x20000000);
}
cris_cpu_version = 10;
if (cris_cpu_version < 0 || cris_cpu_version > 32)
- error ("unknown CRIS version specification in -march= or -mcpu= : %s",
- cris_cpu_str);
+ error ("unknown CRIS version specification in %<-march=%> or "
+ "%<-mcpu=%> : %s", cris_cpu_str);
/* Set the target flags. */
if (cris_cpu_version >= CRIS_CPU_ETRAX4)
cris_tune = 10;
if (cris_tune < 0 || cris_tune > 32)
- error ("unknown CRIS cpu version specification in -mtune= : %s",
+ error ("unknown CRIS cpu version specification in %<-mtune=%> : %s",
cris_tune_str);
if (cris_tune >= CRIS_CPU_SVINTO)
further errors. */
if (! TARGET_LINUX)
{
- error ("-fPIC and -fpic are not supported in this configuration");
+ error ("%<-fPIC%> and %<-fpic%> are not supported "
+ "in this configuration");
flag_pic = 0;
}
if (!TARGET_ISTACK)
{
- warning (OPT_Wattributes, "%qE attribute ignored without -mistack",
+ warning (OPT_Wattributes, "%qE attribute ignored without %<-mistack%>",
name);
*no_add_attrs = true;
return NULL_TREE;
return version_macro;
fail:
- error ("unknown value %qs of -mmacosx-version-min",
+ error ("unknown value %qs of %<-mmacosx-version-min%>",
darwin_macosx_version_min);
return "1000";
}
if (global_options_set.x_dwarf_split_debug_info)
{
inform (input_location,
- "-gsplit-dwarf is not supported on this platform, ignored");
+ "%<-gsplit-dwarf%> is not supported on this platform, ignored");
dwarf_split_debug_info = 0;
global_options_set.x_dwarf_split_debug_info = 0;
}
&& !global_options_set.x_flag_asynchronous_unwind_tables)))
{
inform (input_location,
- "-freorder-blocks-and-partition does not work with exceptions "
- "on this architecture");
+ "%<-freorder-blocks-and-partition%> does not work with "
+ "exceptions on this architecture");
flag_reorder_blocks_and_partition = 0;
flag_reorder_blocks = 1;
}
if (fcode < FRV_BUILTIN_FIRST_NONMEDIA && !TARGET_MEDIA)
{
- error ("media functions are not available unless -mmedia is used");
+ error ("media functions are not available unless %<-mmedia%> is used");
return NULL_RTX;
}
#ifndef OBJECT_FORMAT_ELF
if (TARGET_H8300SX)
{
- error ("-msx is not supported in coff");
+ error ("%<-msx%> is not supported in coff");
target_flags |= MASK_H8300S;
}
#endif
if (!TARGET_H8300S && TARGET_MAC)
{
- error ("-ms2600 is used without -ms");
+ error ("%<-ms2600%> is used without %<-ms%>");
target_flags |= MASK_H8300S_1;
}
if (TARGET_H8300 && TARGET_NORMAL_MODE)
{
- error ("-mn is used without -mh or -ms or -msx");
+ error ("%<-mn%> is used without %<-mh%> or %<-ms%> or %<-msx%>");
target_flags ^= MASK_NORMAL_MODE;
}
if (! TARGET_H8300S && TARGET_EXR)
{
- error ("-mexr is used without -ms");
+ error ("%<-mexr%> is used without %<-ms%>");
target_flags |= MASK_H8300S_1;
}
if (TARGET_H8300 && TARGET_INT32)
{
- error ("-mint32 is not supported for H8300 and H8300L targets");
+ error ("%<-mint32%> is not supported for H8300 and H8300L targets");
target_flags ^= MASK_INT32;
}
if ((!TARGET_H8300S && TARGET_EXR) && (!TARGET_H8300SX && TARGET_EXR))
{
- error ("-mexr is used without -ms or -msx");
+ error ("%<-mexr%> is used without %<-ms%> or %<-msx%>");
target_flags |= MASK_H8300S_1;
}
if ((!TARGET_H8300S && TARGET_NEXR) && (!TARGET_H8300SX && TARGET_NEXR))
{
- warning (OPT_mno_exr, "-mno-exr valid only with -ms or -msx \
- - Option ignored!");
+ warning (OPT_mno_exr, "%<-mno-exr%> valid only with %<-ms%> or "
+ "%<-msx%> - Option ignored!");
}
#ifdef H8300_LINUX
if ((TARGET_NORMAL_MODE))
{
- error ("-mn is not supported for linux targets");
+ error ("%<-mn%> is not supported for linux targets");
target_flags ^= MASK_NORMAL_MODE;
}
#endif
}
}
if (i == X86_TUNE_LAST)
- error ("unknown parameter to option -mtune-ctrl: %s",
- clear ? curr_feature_string - 1 : curr_feature_string);
+ error ("unknown parameter to option %<-mtune-ctrl%>: %s",
+ clear ? curr_feature_string - 1 : curr_feature_string);
curr_feature_string = next_feature_string;
}
while (curr_feature_string);
&& !TARGET_64BIT_P (opts->x_ix86_isa_flags))
{
/* rep; movq isn't available in 32-bit code. */
- error ("-mstringop-strategy=rep_8byte not supported for 32-bit code");
+ error ("%<-mstringop-strategy=rep_8byte%> not supported for 32-bit code");
opts->x_ix86_stringop_alg = no_stringop;
}
opts->x_ix86_abi = DEFAULT_ABI;
if (opts->x_ix86_abi == MS_ABI && TARGET_X32_P (opts->x_ix86_isa_flags))
- error ("-mabi=ms not supported with X32 ABI");
+ error ("%<-mabi=ms%> not supported with X32 ABI");
gcc_assert (opts->x_ix86_abi == SYSV_ABI || opts->x_ix86_abi == MS_ABI);
if ((opts->x_flag_sanitize & SANITIZE_USER_ADDRESS) && opts->x_ix86_abi == MS_ABI)
}
if (TARGET_MACHO && opts->x_ix86_asm_dialect == ASM_INTEL)
{
- error ("-masm=intel not supported in this configuration");
+ error ("%<-masm=intel%> not supported in this configuration");
opts->x_ix86_asm_dialect = ASM_ATT;
}
if ((TARGET_64BIT_P (opts->x_ix86_isa_flags) != 0)
if (opts_set->x_ix86_regparm)
{
if (TARGET_64BIT_P (opts->x_ix86_isa_flags))
- warning (0, "-mregparm is ignored in 64-bit mode");
+ warning (0, "%<-mregparm%> is ignored in 64-bit mode");
else if (TARGET_IAMCU_P (opts->x_target_flags))
- warning (0, "-mregparm is ignored for Intel MCU psABI");
+ warning (0, "%<-mregparm%> is ignored for Intel MCU psABI");
if (opts->x_ix86_regparm > REGPARM_MAX)
{
- error ("-mregparm=%d is not between 0 and %d",
+ error ("%<-mregparm=%d%> is not between 0 and %d",
opts->x_ix86_regparm, REGPARM_MAX);
opts->x_ix86_regparm = 0;
}
|| opts->x_ix86_preferred_stack_boundary_arg > max)
{
if (min == max)
- error ("-mpreferred-stack-boundary is not supported "
+ error ("%<-mpreferred-stack-boundary%> is not supported "
"for this target");
else
- error ("-mpreferred-stack-boundary=%d is not between %d and %d",
+ error ("%<-mpreferred-stack-boundary=%d%> is not between %d and %d",
opts->x_ix86_preferred_stack_boundary_arg, min, max);
}
else
if (opts->x_ix86_incoming_stack_boundary_arg < min
|| opts->x_ix86_incoming_stack_boundary_arg > 12)
- error ("-mincoming-stack-boundary=%d is not between %d and 12",
+ error ("%<-mincoming-stack-boundary=%d%> is not between %d and 12",
opts->x_ix86_incoming_stack_boundary_arg, min);
else
{
#ifndef NO_PROFILE_COUNTERS
if (flag_nop_mcount)
- error ("-mnop-mcount is not compatible with this target");
+ error ("%<-mnop-mcount%> is not compatible with this target");
#endif
if (flag_nop_mcount && flag_pic)
- error ("-mnop-mcount is not implemented for -fPIC");
+ error ("%<-mnop-mcount%> is not implemented for %<-fPIC%>");
/* Accept -msseregparm only if at least SSE support is enabled. */
if (TARGET_SSEREGPARM_P (opts->x_target_flags)
{
if (!TARGET_64BIT_P (opts->x_ix86_isa_flags) && opts->x_flag_pic
&& opts->x_flag_fentry)
- sorry ("-mfentry isn%'t supported for 32-bit in combination "
- "with -fpic");
+ sorry ("%<-mfentry%> isn%'t supported for 32-bit in combination "
+ "with %<-fpic%>");
else if (TARGET_SEH && !opts->x_flag_fentry)
- sorry ("-mno-fentry isn%'t compatible with SEH");
+ sorry ("%<-mno-fentry%> isn%'t compatible with SEH");
}
if (TARGET_SEH && TARGET_CALL_MS2SYSV_XLOGUES)
- sorry ("-mcall-ms2sysv-xlogues isn%'t currently supported with SEH");
+ sorry ("%<-mcall-ms2sysv-xlogues%> isn%'t currently supported with SEH");
if (!(opts_set->x_target_flags & MASK_VZEROUPPER)
&& TARGET_EMIT_VZEROUPPER)
if (i == ARRAY_SIZE (recip_options))
{
- error ("unknown option for -mrecip=%s", q);
+ error ("unknown option for %<-mrecip=%s%>", q);
invert = false;
mask = RECIP_MASK_NONE;
}
if (!*str || *endp || errno)
error ("%qs is not a valid number "
- "in -mstack-protector-guard-offset=", str);
+ "in %<-mstack-protector-guard-offset=%>", str);
if (!IN_RANGE (offset, HOST_WIDE_INT_C (-0x80000000),
HOST_WIDE_INT_C (0x7fffffff)))
error ("%qs is not a valid offset "
- "in -mstack-protector-guard-offset=", str);
+ "in %<-mstack-protector-guard-offset=%>", str);
opts->x_ix86_stack_protector_guard_offset = offset;
}
if (seg == ADDR_SPACE_GENERIC)
error ("%qs is not a valid base register "
- "in -mstack-protector-guard-reg=",
+ "in %<-mstack-protector-guard-reg=%>",
opts->x_ix86_stack_protector_guard_reg_str);
opts->x_ix86_stack_protector_guard_reg = seg;
static bool warned_once = false;
if (!warned_once)
{
- warning (0, "-mcall-ms2sysv-xlogues is not compatible with %s",
+ warning (0, "%<-mcall-ms2sysv-xlogues%> is not compatible with %s",
feature);
warned_once = true;
}
prologue variant. If so sorry. */
if (crtl->profile && flag_fentry != 0)
sorry ("ms_hook_prologue attribute isn%'t compatible "
- "with -mfentry for 32-bit");
+ "with %<-mfentry%> for 32-bit");
/* In ix86_asm_output_function_label we emitted:
8b ff movl.s %edi,%edi
{
if (DECL_STATIC_CHAIN (cfun->decl))
{
- sorry ("-fsplit-stack does not support fastcall with "
+ sorry ("%<-fsplit-stack%> does not support fastcall with "
"nested function");
return INVALID_REGNUM;
}
{
if (regparm >= 2)
{
- sorry ("-fsplit-stack does not support 2 register "
+ sorry ("%<-fsplit-stack%> does not support 2 register "
"parameters for a nested function");
return INVALID_REGNUM;
}
{
/* FIXME: We could make this work by pushing a register
around the addition and comparison. */
- sorry ("-fsplit-stack does not support 3 register parameters");
+ sorry ("%<-fsplit-stack%> does not support 3 register parameters");
return INVALID_REGNUM;
}
}
return;
warning (OPT_Wabi, "empty class %qT parameter passing ABI "
- "changes in -fabi-version=12 (GCC 8)", type);
+ "changes in %<-fabi-version=12%> (GCC 8)", type);
/* Only warn once. */
cum->warn_empty = false;
dash = strchr (str, '-');
if (!dash)
{
- warning (0, "value of -mfixed-range must have form REG1-REG2");
+ warning (0, "value of %<-mfixed-range%> must have form REG1-REG2");
return;
}
*dash = '\0';
if (m68k_arch_entry
&& (m68k_arch_entry->microarch != m68k_cpu_entry->microarch
|| (m68k_arch_entry->flags & ~m68k_cpu_entry->flags) != 0))
- warning (0, "-mcpu=%s conflicts with -march=%s",
+ warning (0, "%<-mcpu=%s%> conflicts with %<-march=%s%>",
m68k_cpu_entry->name, m68k_arch_entry->name);
entry = m68k_cpu_entry;
* both specified together. Doing so simply doesn't make sense.
*/
if (TARGET_SEP_DATA && TARGET_ID_SHARED_LIBRARY)
- error ("cannot specify both -msep-data and -mid-shared-library");
+ error ("cannot specify both %<-msep-data%> and %<-mid-shared-library%>");
/* If we're generating code for a separate A5 relative data segment,
* we've got to enable -fPIC as well. This might be relaxable to
/* -mpcrel -fPIC uses 32-bit pc-relative displacements. Raise an
error if the target does not support them. */
if (TARGET_PCREL && !TARGET_68020 && flag_pic == 2)
- error ("-mpcrel -fPIC is not currently supported on selected cpu");
+ error ("%<-mpcrel%> %<-fPIC%> is not currently supported on selected cpu");
/* ??? A historic way of turning on pic, or is this intended to
be an embedded thing that doesn't have the same name binding
int label_alignment = align_labels.levels[0].get_value ();
if (label_alignment > 2)
{
- warning (0, "-falign-labels=%d is not supported", label_alignment);
+ warning (0, "%<-falign-labels=%d%> is not supported", label_alignment);
str_align_labels = "1";
}
int loop_alignment = align_loops.levels[0].get_value ();
if (loop_alignment > 2)
{
- warning (0, "-falign-loops=%d is not supported", loop_alignment);
+ warning (0, "%<-falign-loops=%d%> is not supported", loop_alignment);
str_align_loops = "1";
}
#endif
if ((opt_fstack_limit_symbol_arg != NULL || opt_fstack_limit_register_no >= 0)
&& !TARGET_68020)
{
- warning (0, "-fstack-limit- options are not supported on this cpu");
+ warning (0, "%<-fstack-limit-%> options are not supported on this cpu");
opt_fstack_limit_symbol_arg = NULL;
opt_fstack_limit_register_no = -1;
}
flag_pic = 2;
if (!TARGET_SUPPORTS_PIC)
{
- error ("-fPIC/-fpic not supported for this target");
+ error ("%<-fPIC%>/%<-fpic%> not supported for this target");
/* Clear it to avoid further errors. */
flag_pic = 0;
}
ver = microblaze_version_to_int (microblaze_select_cpu);
if (ver == -1)
{
- error ("%qs is an invalid argument to -mcpu=", microblaze_select_cpu);
+ error ("%qs is an invalid argument to %<-mcpu=%>", microblaze_select_cpu);
}
ver = MICROBLAZE_VERSION_COMPARE (microblaze_select_cpu, "v3.00.a");
{
if (TARGET_MULTIPLY_HIGH)
warning (0,
- "-mxl-multiply-high can be used only with -mcpu=v6.00.a or greater");
+ "%<-mxl-multiply-high%> can be used only with "
+ "%<-mcpu=v6.00.a%> or greater");
}
ver = MICROBLAZE_VERSION_COMPARE (microblaze_select_cpu, "v8.10.a");
if (ver < 0)
{
if (TARGET_REORDER == 1)
- warning (0, "-mxl-reorder can be used only with -mcpu=v8.30.a or greater");
+ warning (0, "%<-mxl-reorder%> can be used only with "
+ "%<-mcpu=v8.30.a%> or greater");
TARGET_REORDER = 0;
}
else if ((ver == 0) && !TARGET_PATTERN_COMPARE)
{
if (TARGET_REORDER == 1)
- warning (0, "-mxl-reorder requires -mxl-pattern-compare for -mcpu=v8.30.a");
+ warning (0, "%<-mxl-reorder%> requires %<-mxl-pattern-compare%> for "
+ "%<-mcpu=v8.30.a%>");
TARGET_REORDER = 0;
}
if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL)
- error ("-mxl-multiply-high requires -mno-xl-soft-mul");
+ error ("%<-mxl-multiply-high%> requires %<-mno-xl-soft-mul%>");
/* Always use DFA scheduler. */
microblaze_sched_use_dfa = 1;
mips_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size)
{
if (TARGET_MIPS16)
- sorry ("-fstack-check=specific not implemented for MIPS16");
+ sorry ("%<-fstack-check=specific%> not implemented for MIPS16");
/* See if we have a constant small number of probes to generate. If so,
that's the easy case. */
sorry ("MIPS16 PIC for ABIs other than o32 and o64");
if (TARGET_XGOT)
- sorry ("MIPS16 -mxgot code");
+ sorry ("MIPS16 %<-mxgot%> code");
if (TARGET_HARD_FLOAT_ABI && !TARGET_OLDABI)
sorry ("hard-float MIPS16 code for ABIs other than o32 and o64");
labels. */
if (flag_pic)
{
- warning (0, "-f%s not supported: ignored", (flag_pic > 1) ? "PIC" : "pic");
+ warning (0, "%<-f%s%> not supported: ignored",
+ (flag_pic > 1) ? "PIC" : "pic");
flag_pic = 0;
}
}
else if (strcasecmp (mn10300_tune_string, "am34") == 0)
mn10300_tune_cpu = PROCESSOR_AM34;
else
- error ("-mtune= expects mn10300, am33, am33-2, or am34");
+ error ("%<-mtune=%> expects mn10300, am33, am33-2, or am34");
}
}
if (msp430_warn_mcu)
{
if (target_cpu&& msp430x != xisa)
- warning (0, "MCU '%s' supports %s ISA but -mcpu option is set to %s",
+ warning (0, "MCU '%s' supports %s ISA but %<-mcpu%> option "
+ "is set to %s",
target_mcu, xisa ? "430X" : "430", msp430x ? "430X" : "430");
if (msp430_mcu_data[i].hwmpy == 0
&& msp430_hwmult_type != MSP430_HWMULT_AUTO
&& msp430_hwmult_type != MSP430_HWMULT_NONE)
- warning (0, "MCU '%s' does not have hardware multiply support, but -mhwmult is set to %s",
+ warning (0, "MCU '%s' does not have hardware multiply "
+ "support, but %<-mhwmult%> is set to %s",
target_mcu,
msp430_hwmult_type == MSP430_HWMULT_SMALL ? "16-bit"
: msp430_hwmult_type == MSP430_HWMULT_LARGE ? "32-bit" : "f5series");
else if (msp430_hwmult_type == MSP430_HWMULT_SMALL
&& msp430_mcu_data[i].hwmpy != 1
&& msp430_mcu_data[i].hwmpy != 2 )
- warning (0, "MCU '%s' supports %s hardware multiply, but -mhwmult is set to 16-bit",
+ warning (0, "MCU '%s' supports %s hardware multiply, "
+ "but %<-mhwmult%> is set to 16-bit",
target_mcu, hwmult_name (msp430_mcu_data[i].hwmpy));
else if (msp430_hwmult_type == MSP430_HWMULT_LARGE && msp430_mcu_data[i].hwmpy != 4)
- warning (0, "MCU '%s' supports %s hardware multiply, but -mhwmult is set to 32-bit",
+ warning (0, "MCU '%s' supports %s hardware multiply, "
+ "but %<-mhwmult%> is set to 32-bit",
target_mcu, hwmult_name (msp430_mcu_data[i].hwmpy));
else if (msp430_hwmult_type == MSP430_HWMULT_F5SERIES && msp430_mcu_data[i].hwmpy != 8)
- warning (0, "MCU '%s' supports %s hardware multiply, but -mhwmult is set to f5series",
+ warning (0, "MCU '%s' supports %s hardware multiply, "
+ "but %<-mhwmult%> is set to f5series",
target_mcu, hwmult_name (msp430_mcu_data[i].hwmpy));
}
warning (0,
"Unrecognized MCU name '%s', assuming that it is "
"just a MSP430 with no hardware multiply.\n"
- "Use the -mcpu and -mhwmult options to set "
- "these explicitly.",
+ "Use the %<-mcpu%> and %<-mhwmult%> options to "
+ "set these explicitly.",
target_mcu);
else
warning (0,
"Unrecognized MCU name '%s', assuming that it "
- "has no hardware multiply.\nUse the -mhwmult "
+ "has no hardware multiply.\nUse the %<-mhwmult%> "
"option to set this explicitly.",
target_mcu);
}
if (msp430_warn_mcu)
warning (0,
"Unrecognized MCU name '%s', assuming that it just "
- "supports the MSP430 ISA.\nUse the -mcpu option to "
- "set the ISA explicitly.",
+ "supports the MSP430 ISA.\nUse the %<-mcpu%> option "
+ "to set the ISA explicitly.",
target_mcu);
msp430x = false;
msp430x = true;
if (TARGET_LARGE && !msp430x)
- error ("-mlarge requires a 430X-compatible -mmcu=");
+ error ("%<-mlarge%> requires a 430X-compatible %<-mmcu=%>");
if (msp430_code_region == MSP430_REGION_UPPER && ! msp430x)
- error ("-mcode-region=upper requires 430X-compatible cpu");
+ error ("%<-mcode-region=upper%> requires 430X-compatible cpu");
if (msp430_data_region == MSP430_REGION_UPPER && ! msp430x)
- error ("-mdata-region=upper requires 430X-compatible cpu");
+ error ("%<-mdata-region=upper%> requires 430X-compatible cpu");
if (flag_exceptions || flag_non_call_exceptions
|| flag_unwind_tables || flag_asynchronous_unwind_tables)
target_flags &= ~MASK_EXT_STRING;
if (flag_pic)
- error ("not support -fpic option for v3m toolchain");
+ error ("not support %<-fpic%> option for v3m toolchain");
}
/* See if we are using reduced-set registers:
for (i = 0; i < ARRAY_SIZE (nios2_fpu_insn); i++)
if (N2FPU_ENABLED_P (i) && N2FPU_UNSAFE_P (i))
warning (0, "switch %<-mcustom-%s%> has no effect unless "
- "-funsafe-math-optimizations is specified", N2FPU_NAME (i));
+ "%<-funsafe-math-optimizations%> is specified",
+ N2FPU_NAME (i));
/* Warn if the user is trying to use -mcustom-fmins et. al, that won't
get used without -ffinite-math-only. See fold_builtin_fmin_fmax ()
for (i = 0; i < ARRAY_SIZE (nios2_fpu_insn); i++)
if (N2FPU_ENABLED_P (i) && N2FPU_FINITE_P (i))
warning (0, "switch %<-mcustom-%s%> has no effect unless "
- "-ffinite-math-only is specified", N2FPU_NAME (i));
+ "%<-ffinite-math-only%> is specified", N2FPU_NAME (i));
/* Warn if the user is trying to use a custom rounding instruction
that won't get used without -fno-math-errno. See
for (i = 0; i < ARRAY_SIZE (nios2_fpu_insn); i++)
if (N2FPU_ENABLED_P (i) && N2FPU_NO_ERRNO_P (i))
warning (0, "switch %<-mcustom-%s%> has no effect unless "
- "-fno-math-errno is specified", N2FPU_NAME (i));
+ "%<-fno-math-errno%> is specified", N2FPU_NAME (i));
if (errors || custom_code_conflict)
fatal_error (input_location,
- "conflicting use of -mcustom switches, target attributes, "
- "and/or __builtin_custom_ functions");
+ "conflicting use of %<-mcustom%> switches, target attributes, "
+ "and/or %<__builtin_custom_%> functions");
}
static void
sorry ("position-independent code requires the Linux ABI");
if (flag_pic && stack_limit_rtx
&& GET_CODE (stack_limit_rtx) == SYMBOL_REF)
- sorry ("PIC support for -fstack-limit-symbol");
+ sorry ("PIC support for %<-fstack-limit-symbol%>");
/* Function to allocate machine-dependent function status. */
init_machine_status = &nios2_init_machine_status;
if (flag_pic)
{
if (nios2_gpopt_option != gpopt_none)
- error ("-mgpopt not supported with PIC.");
+ error ("%<-mgpopt%> not supported with PIC.");
if (nios2_gprel_sec)
- error ("-mgprel-sec= not supported with PIC.");
+ error ("%<-mgprel-sec=%> not supported with PIC.");
if (nios2_r0rel_sec)
- error ("-mr0rel-sec= not supported with PIC.");
+ error ("%<-mr0rel-sec=%> not supported with PIC.");
}
/* Process -mgprel-sec= and -m0rel-sec=. */
{
if (regcomp (&nios2_gprel_sec_regex, nios2_gprel_sec,
REG_EXTENDED | REG_NOSUB))
- error ("-mgprel-sec= argument is not a valid regular expression.");
+ error ("%<-mgprel-sec=%> argument is not a valid regular expression.");
}
if (nios2_r0rel_sec)
{
if (regcomp (&nios2_r0rel_sec_regex, nios2_r0rel_sec,
REG_EXTENDED | REG_NOSUB))
- error ("-mr0rel-sec= argument is not a valid regular expression.");
+ error ("%<-mr0rel-sec=%> argument is not a valid regular expression.");
}
/* If we don't have mul, we don't have mulx either! */
{
if (!custom_insn_opcode (value, VOIDmode))
error ("custom instruction opcode must be compile time "
- "constant in the range 0-255 for __builtin_custom_%s",
+ "constant in the range 0-255 for %<__builtin_custom_%s%>",
custom_builtin_name[index]);
}
else
verbose = true;
}
if (!(fopenacc ^ fopenmp))
- fatal_error (input_location, "either -fopenacc or -fopenmp must be set");
+ fatal_error (input_location, "either %<-fopenacc%> or %<-fopenmp%> "
+ "must be set");
struct obstack argv_obstack;
obstack_init (&argv_obstack);
diagnose_openacc_conflict (bool optval, const char *optname)
{
if (flag_openacc && optval)
- error ("option %s is not supported together with -fopenacc", optname);
+ error ("option %s is not supported together with %<-fopenacc%>", optname);
}
/* Implement TARGET_OPTION_OVERRIDE. */
dash = strchr (str, '-');
if (!dash)
{
- warning (0, "value of -mfixed-range must have form REG1-REG2");
+ warning (0, "value of %<-mfixed-range%> must have form REG1-REG2");
return;
}
*dash = '\0';
if (! TARGET_GAS && write_symbols != NO_DEBUG)
{
- warning (0, "-g is only supported when using GAS on this processor,");
- warning (0, "-g option disabled");
+ warning (0, "%<-g%> is only supported when using GAS on this processor,");
+ warning (0, "%<-g%> option disabled");
write_symbols = NO_DEBUG;
}
if (flag_reorder_blocks_and_partition)
{
inform (input_location,
- "-freorder-blocks-and-partition does not work "
- "on this architecture");
+ "%<-freorder-blocks-and-partition%> does not work "
+ "on this architecture");
flag_reorder_blocks_and_partition = 0;
flag_reorder_blocks = 1;
}
if (strcmp (riscv_cpu_info_table[i].name, cpu_string) == 0)
return riscv_cpu_info_table + i;
- error ("unknown cpu %qs for -mtune", cpu_string);
+ error ("unknown cpu %qs for %<-mtune%>", cpu_string);
return riscv_cpu_info_table;
}
if (TARGET_MUL && (target_flags_explicit & MASK_DIV) == 0)
target_flags |= MASK_DIV;
else if (!TARGET_MUL && TARGET_DIV)
- error ("-mdiv requires -march to subsume the %<M%> extension");
+ error ("%<-mdiv%> requires %<-march%> to subsume the %<M%> extension");
/* Likewise floating-point division and square root. */
if (TARGET_HARD_FLOAT && (target_flags_explicit & MASK_FDIV) == 0)
/* Require that the ISA supports the requested floating-point ABI. */
if (UNITS_PER_FP_ARG > (TARGET_HARD_FLOAT ? UNITS_PER_FP_REG : 0))
- error ("requested ABI requires -march to subsume the %qc extension",
+ error ("requested ABI requires %<-march%> to subsume the %qc extension",
UNITS_PER_FP_ARG > 8 ? 'Q' : (UNITS_PER_FP_ARG > 4 ? 'D' : 'F'));
if (TARGET_RVE && riscv_abi != ABI_ILP32E)
/* We do not yet support ILP32 on RV64. */
if (BITS_PER_WORD != POINTER_SIZE)
- error ("ABI requires -march=rv%d", POINTER_SIZE);
+ error ("ABI requires %<-march=rv%d%>", POINTER_SIZE);
/* Validate -mpreferred-stack-boundary= value. */
riscv_stack_boundary = ABI_STACK_BOUNDARY;
int max = 8;
if (!IN_RANGE (riscv_preferred_stack_boundary_arg, min, max))
- error ("-mpreferred-stack-boundary=%d must be between %d and %d",
+ error ("%<-mpreferred-stack-boundary=%d%> must be between %d and %d",
riscv_preferred_stack_boundary_arg, min, max);
riscv_stack_boundary = 8 << riscv_preferred_stack_boundary_arg;
riscv_emit_attribute_p = 0;
if (riscv_emit_attribute_p)
- error ("-mriscv-attribute RISC-V ELF attribute requires GNU as 2.32"
- " [-mriscv-attribute]");
+ error ("%<-mriscv-attribute%> RISC-V ELF attribute requires GNU as 2.32"
+ " [%<-mriscv-attribute%>]");
#endif
}
/* Compiling with -flto results in a language of GNU GIMPLE being used... */
&& strcmp (lang_hooks.name, "GNU GIMPLE"))
/* Address spaces are currently only supported by C. */
- error ("-mes0 can only be used with C");
+ error ("%<-mes0%> can only be used with C");
if (TARGET_SAVE_MDUC_REGISTERS && !(TARGET_G13 || RL78_MUL_G13))
warning (0, "mduc registers only saved for G13 target");
{
case MUL_UNINIT: rl78_mul_type = MUL_NONE; break;
case MUL_NONE: break;
- case MUL_G13: error ("-mmul=g13 cannot be used with -mcpu=g10"); break;
- case MUL_G14: error ("-mmul=g14 cannot be used with -mcpu=g10"); break;
+ case MUL_G13: error ("%<-mmul=g13%> cannot be used with "
+ "%<-mcpu=g10%>"); break;
+ case MUL_G14: error ("%<-mmul=g14%> cannot be used with "
+ "%<-mcpu=g10%>"); break;
}
break;
case MUL_NONE: break;
case MUL_G13: break;
/* The S2 core does not have mul/div instructions. */
- case MUL_G14: error ("-mmul=g14 cannot be used with -mcpu=g13"); break;
+ case MUL_G14: error ("%<-mmul=g14%> cannot be used with "
+ "%<-mcpu=g13%>"); break;
}
break;
case MUL_G14: break;
/* The G14 core does not have the hardware multiply peripheral used by the
G13 core, hence you cannot use G13 multipliy routines on G14 hardware. */
- case MUL_G13: error ("-mmul=g13 cannot be used with -mcpu=g14"); break;
+ case MUL_G13: error ("%<-mmul=g13%> cannot be used with "
+ "%<-mcpu=g14%>"); break;
}
break;
}
if (TARGET_64BIT && ! TARGET_POWERPC64) \
{ \
rs6000_isa_flags |= OPTION_MASK_POWERPC64; \
- warning (0, "-maix64 requires PowerPC64 architecture remain enabled"); \
+ warning (0, "%<-maix64%> requires PowerPC64 architecture remain enabled"); \
} \
if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128) \
{ \
} \
if (TARGET_POWERPC64 && ! TARGET_64BIT) \
{ \
- error ("-maix64 required: 64-bit computation with 32-bit addressing not yet supported"); \
+ error ("%<-maix64%> required: 64-bit computation with 32-bit addressing not yet supported"); \
} \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
if (global_options_set.x_rs6000_current_cmodel \
&& rs6000_current_cmodel != CMODEL_SMALL) \
- error ("-mcmodel incompatible with other toc options"); \
+ error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
} \
if (rs6000_current_cmodel != CMODEL_SMALL) \
if (TARGET_64BIT && ! TARGET_POWERPC64) \
{ \
rs6000_isa_flags |= OPTION_MASK_POWERPC64; \
- warning (0, "-maix64 requires PowerPC64 architecture remain enabled"); \
+ warning (0, "%<-maix64%> requires PowerPC64 architecture remain enabled"); \
} \
if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128) \
{ \
} \
if (TARGET_POWERPC64 && ! TARGET_64BIT) \
{ \
- error ("-maix64 required: 64-bit computation with 32-bit addressing not yet supported"); \
+ error ("%<-maix64%> required: 64-bit computation with 32-bit addressing not yet supported"); \
} \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
if (global_options_set.x_rs6000_current_cmodel \
&& rs6000_current_cmodel != CMODEL_SMALL) \
- error ("-mcmodel incompatible with other toc options"); \
+ error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
} \
if (rs6000_current_cmodel != CMODEL_SMALL) \
if (TARGET_64BIT && ! TARGET_POWERPC64) \
{ \
rs6000_isa_flags |= OPTION_MASK_POWERPC64; \
- warning (0, "-maix64 requires PowerPC64 architecture remain enabled"); \
+ warning (0, "%<-maix64%> requires PowerPC64 architecture remain enabled"); \
} \
if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128) \
{ \
} \
if (TARGET_POWERPC64 && ! TARGET_64BIT) \
{ \
- error ("-maix64 required: 64-bit computation with 32-bit addressing not yet supported"); \
+ error ("%<-maix64%> required: 64-bit computation with 32-bit addressing not yet supported"); \
} \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
if (global_options_set.x_rs6000_current_cmodel \
&& rs6000_current_cmodel != CMODEL_SMALL) \
- error ("-mcmodel incompatible with other toc options"); \
+ error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
} \
if (rs6000_current_cmodel != CMODEL_SMALL) \
candidates_list_and_hint (cpu, s, candidates);
fatal_error (
input_location,
- "Unsupported cpu name returned from kernel for -mcpu=native: %s\n"
+ "Unsupported cpu name returned from kernel for "
+ "%<-mcpu=native%>: %s\n"
"Please use an explicit cpu name. Valid cpu names are: %s",
cpu, s);
}
{ \
rs6000_current_abi = ABI_ELFv2; \
if (dot_symbols) \
- error ("-mcall-aixdesc incompatible with -mabi=elfv2"); \
+ error ("%<-mcall-aixdesc%> incompatible with %<-mabi=elfv2%>"); \
} \
if (rs6000_isa_flags & OPTION_MASK_EABI) \
{ \
if ((rs6000_isa_flags & OPTION_MASK_POWERPC64) == 0) \
{ \
rs6000_isa_flags |= OPTION_MASK_POWERPC64; \
- error ("-m64 requires a PowerPC64 cpu"); \
+ error ("%<-m64%> requires a PowerPC64 cpu"); \
} \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
if (global_options_set.x_rs6000_current_cmodel \
&& rs6000_current_cmodel != CMODEL_SMALL) \
- error ("-mcmodel incompatible with other toc options"); \
+ error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
} \
else \
{ \
rs6000_current_abi = ABI_ELFv2; \
if (dot_symbols) \
- error ("-mcall-aixdesc incompatible with -mabi=elfv2"); \
+ error ("%<-mcall-aixdesc%> incompatible with %<-mabi=elfv2%>"); \
} \
if (rs6000_isa_flags & OPTION_MASK_RELOCATABLE) \
{ \
if ((rs6000_isa_flags & OPTION_MASK_POWERPC64) == 0) \
{ \
rs6000_isa_flags |= OPTION_MASK_POWERPC64; \
- error ("-m64 requires a PowerPC64 cpu"); \
+ error ("%<-m64%> requires a PowerPC64 cpu"); \
} \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
if (global_options_set.x_rs6000_current_cmodel \
&& rs6000_current_cmodel != CMODEL_SMALL) \
- error ("-mcmodel incompatible with other toc options"); \
+ error ("%<-mcmodel incompatible with other toc options%>"); \
SET_CMODEL (CMODEL_SMALL); \
} \
else \
if (!TARGET_HARD_FLOAT)
{
if (rs6000_isa_flags_explicit & OPTION_MASK_VSX)
- msg = N_("-mvsx requires hardware floating point");
+ msg = N_("%<-mvsx%> requires hardware floating point");
else
{
rs6000_isa_flags &= ~ OPTION_MASK_VSX;
}
}
else if (TARGET_AVOID_XFORM > 0)
- msg = N_("-mvsx needs indexed addressing");
+ msg = N_("%<-mvsx%> needs indexed addressing");
else if (!TARGET_ALTIVEC && (rs6000_isa_flags_explicit
& OPTION_MASK_ALTIVEC))
{
if (rs6000_isa_flags_explicit & OPTION_MASK_VSX)
- msg = N_("-mvsx and -mno-altivec are incompatible");
+ msg = N_("%<-mvsx%> and %<-mno-altivec%> are incompatible");
else
- msg = N_("-mno-altivec disables vsx");
+ msg = N_("%<-mno-altivec%> disables vsx");
}
if (msg)
if ((TARGET_QUAD_MEMORY || TARGET_QUAD_MEMORY_ATOMIC) && !TARGET_POWERPC64)
{
if ((rs6000_isa_flags_explicit & OPTION_MASK_QUAD_MEMORY) != 0)
- warning (0, N_("-mquad-memory requires 64-bit mode"));
+ warning (0, N_("%<-mquad-memory%> requires 64-bit mode"));
if ((rs6000_isa_flags_explicit & OPTION_MASK_QUAD_MEMORY_ATOMIC) != 0)
- warning (0, N_("-mquad-memory-atomic requires 64-bit mode"));
+ warning (0, N_("%<-mquad-memory-atomic%> requires 64-bit mode"));
rs6000_isa_flags &= ~(OPTION_MASK_QUAD_MEMORY
| OPTION_MASK_QUAD_MEMORY_ATOMIC);
if (TARGET_QUAD_MEMORY && !WORDS_BIG_ENDIAN)
{
if ((rs6000_isa_flags_explicit & OPTION_MASK_QUAD_MEMORY) != 0)
- warning (0, N_("-mquad-memory is not available in little endian "
+ warning (0, N_("%<-mquad-memory%> is not available in little endian "
"mode"));
rs6000_isa_flags &= ~OPTION_MASK_QUAD_MEMORY;
if (!TARGET_VSX)
{
if ((rs6000_isa_flags_explicit & OPTION_MASK_FLOAT128_KEYWORD) != 0)
- error ("%qs requires VSX support", "-mfloat128");
+ error ("%qs requires VSX support", "%<-mfloat128%>");
TARGET_FLOAT128_TYPE = 0;
rs6000_isa_flags &= ~(OPTION_MASK_FLOAT128_KEYWORD
else if (!TARGET_FLOAT128_TYPE)
{
TARGET_FLOAT128_TYPE = 1;
- warning (0, "The -mfloat128 option may not be fully supported");
+ warning (0, "The %<-mfloat128%> option may not be fully supported");
}
}
&& (rs6000_isa_flags & ISA_3_0_MASKS_IEEE) != ISA_3_0_MASKS_IEEE)
{
if ((rs6000_isa_flags_explicit & OPTION_MASK_FLOAT128_HW) != 0)
- error ("%qs requires full ISA 3.0 support", "-mfloat128-hardware");
+ error ("%qs requires full ISA 3.0 support", "%<-mfloat128-hardware%>");
rs6000_isa_flags &= ~OPTION_MASK_FLOAT128_HW;
}
if (TARGET_FLOAT128_HW && !TARGET_64BIT)
{
if ((rs6000_isa_flags_explicit & OPTION_MASK_FLOAT128_HW) != 0)
- error ("%qs requires %qs", "-mfloat128-hardware", "-m64");
+ error ("%qs requires %qs", "%<-mfloat128-hardware%>", "-m64");
rs6000_isa_flags &= ~OPTION_MASK_FLOAT128_HW;
}
if (icode == CODE_FOR_rs6000_mffsl
&& rs6000_isa_flags & OPTION_MASK_SOFT_FLOAT)
{
- error ("__builtin_mffsl() not supported with -msoft-float");
+ error ("%<__builtin_mffsl%> not supported with %<-msoft-float%>");
return const0_rtx;
}
if (rs6000_isa_flags & OPTION_MASK_SOFT_FLOAT)
{
- error ("__builtin_mtfsb0 and __builtin_mtfsb1 not supported with -msoft-float");
+ error ("%<__builtin_mtfsb0%> and %<__builtin_mtfsb1%> not supported with "
+ "%<-msoft-float%>");
return const0_rtx;
}
if (rs6000_isa_flags & OPTION_MASK_SOFT_FLOAT)
{
- error ("__builtin_set_fpscr_rn not supported with -msoft-float");
+ error ("%<__builtin_set_fpscr_rn%> not supported with %<-msoft-float%>");
return const0_rtx;
}
if (TARGET_32BIT)
/* Builtin not supported in 32-bit mode. */
fatal_error (input_location,
- "__builtin_set_fpscr_drn is not supported in 32-bit mode.");
+ "%<__builtin_set_fpscr_drn%> is not supported "
+ "in 32-bit mode.");
if (rs6000_isa_flags & OPTION_MASK_SOFT_FLOAT)
{
- error ("__builtin_set_fpscr_drn not supported with -msoft-float");
+ error ("%<__builtin_set_fpscr_drn%> not supported with %<-msoft-float%>");
return const0_rtx;
}
error ("builtin function %qs requires ISA 3.0 IEEE 128-bit floating point",
name);
else if ((fnmask & RS6000_BTM_FLOAT128) != 0)
- error ("builtin function %qs requires the %qs option", name, "-mfloat128");
+ error ("builtin function %qs requires the %qs option", name,
+ "%<-mfloat128%>");
else if ((fnmask & (RS6000_BTM_POPCNTD | RS6000_BTM_POWERPC64))
== (RS6000_BTM_POPCNTD | RS6000_BTM_POWERPC64))
error ("builtin function %qs requires the %qs (or newer), and "
if (global_regs[29])
{
- error ("%qs uses register r29", "-fsplit-stack");
+ error ("%qs uses register r29", "%<-fsplit-stack%>");
inform (DECL_SOURCE_LOCATION (global_regs_decl[29]),
"conflicts with %qD", global_regs_decl[29]);
}
allocate = info->total_size;
if (allocate > (unsigned HOST_WIDE_INT) 1 << 31)
{
- sorry ("Stack frame larger than 2G is not supported for -fsplit-stack");
+ sorry ("Stack frame larger than 2G is not supported for "
+ "%<-fsplit-stack%>");
return;
}
if (morestack_ref == NULL_RTX)
if ((rs6000_isa_flags & OPTION_MASK_POWERPC64) == 0) \
{ \
rs6000_isa_flags |= OPTION_MASK_POWERPC64; \
- error ("-m64 requires a PowerPC64 cpu"); \
+ error ("%<-m64%> requires a PowerPC64 cpu"); \
} \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
if (global_options_set.x_rs6000_current_cmodel \
&& rs6000_current_cmodel != CMODEL_SMALL) \
- error ("-mcmodel incompatible with other toc options"); \
+ error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
} \
else \
return 1;
}
- error ("__builtin_rx_%s takes 'C', 'Z', 'S', 'O', 'I', or 'U'", which);
+ error ("%<__builtin_rx_%s%> takes 'C', 'Z', 'S', 'O', 'I', or 'U'", which);
if (!mvtc_inform_done)
- error ("use __builtin_rx_mvtc (0, ... ) to write arbitrary values to PSW");
+ error ("use %<__builtin_rx_mvtc%> (0, ... ) to write arbitrary values to PSW");
mvtc_inform_done = 1;
return 0;
if (rx_allow_string_insns)
emit_insn (gen_rmpa ());
else
- error ("-mno-allow-string-insns forbids the generation of the RMPA instruction");
+ error ("%<-mno-allow-string-insns%> forbids the generation "
+ "of the RMPA instruction");
return NULL_RTX;
case RX_BUILTIN_MVFC: return rx_expand_builtin_mvfc (arg, target);
case RX_BUILTIN_MVTC: return rx_expand_builtin_mvtc (exp);
if (!TARGET_VX && (ob_flags & B_VX))
{
- error_at (loc, "%qF requires -mvx", ob_fndecl);
+ error_at (loc, "%qF requires %<-mvx%>", ob_fndecl);
return error_mark_node;
}
bflags = bflags_for_builtin (fcode);
if ((bflags & B_HTM) && !TARGET_HTM)
{
- error ("builtin %qF is not supported without -mhtm "
- "(default with -march=zEC12 and higher).", fndecl);
+ error ("builtin %qF is not supported without %<-mhtm%> "
+ "(default with %<-march=zEC12%> and higher).", fndecl);
return const0_rtx;
}
if (((bflags & B_VX) || (bflags & B_VXE)) && !TARGET_VX)
{
- error ("builtin %qF requires -mvx "
- "(default with -march=z13 and higher).", fndecl);
+ error ("builtin %qF requires %<-mvx%> "
+ "(default with %<-march=z13%> and higher).", fndecl);
return const0_rtx;
}
output_asm_nops ("-mnop-mcount", /* brasl */ 3);
else if (cfun->static_chain_decl)
warning (OPT_Wcannot_profile, "nested functions cannot be profiled "
- "with -mfentry on s390");
+ "with %<-mfentry%> on s390");
else
output_asm_insn ("brasl\t0,%4", op);
}
|| opts->x_s390_function_return == indirect_branch_thunk_inline
|| opts->x_s390_function_return_reg == indirect_branch_thunk_inline
|| opts->x_s390_function_return_mem == indirect_branch_thunk_inline)
- error ("thunk-inline is only supported with -mindirect-branch-jump");
+ error ("thunk-inline is only supported with %<-mindirect-branch-jump%>");
if (opts->x_s390_indirect_branch != indirect_branch_keep)
{
error ("hardware vector support not available on %s",
processor_table[(int)opts->x_s390_arch].name);
if (TARGET_SOFT_FLOAT_P (opts->x_target_flags))
- error ("hardware vector support not available with -msoft-float");
+ error ("hardware vector support not available with "
+ "%<-msoft-float%>");
}
}
else
{
if (TARGET_HARD_DFP_P (opts_set->x_target_flags)
&& TARGET_HARD_DFP_P (opts->x_target_flags))
- error ("-mhard-dfp can%'t be used in conjunction with -msoft-float");
+ error ("%<-mhard-dfp%> can%'t be used in conjunction with "
+ "%<-msoft-float%>");
opts->x_target_flags &= ~MASK_HARD_DFP;
}
if (TARGET_BACKCHAIN_P (opts->x_target_flags)
&& TARGET_PACKED_STACK_P (opts->x_target_flags)
&& TARGET_HARD_FLOAT_P (opts->x_target_flags))
- error ("-mbackchain -mpacked-stack -mhard-float are not supported "
- "in combination");
+ error ("%<-mbackchain%> %<-mpacked-stack%> %<-mhard-float%> are not "
+ "supported in combination");
if (opts->x_s390_stack_size)
{
error ("stack size must not be greater than 64k");
}
else if (opts->x_s390_stack_guard)
- error ("-mstack-guard implies use of -mstack-size");
+ error ("%<-mstack-guard%> implies use of %<-mstack-size%>");
/* Our implementation of the stack probe requires the probe interval
to be used as displacement in an address operand. The maximum
because 31-bit PLT stubs assume that %r12 contains GOT address, which is
not the case when the code runs before the prolog. */
if (opts->x_flag_fentry && !TARGET_64BIT)
- error ("-mfentry is supported only for 64-bit CPUs");
+ error ("%<-mfentry%> is supported only for 64-bit CPUs");
}
static void
flag_prefetch_loop_arrays = 1;
if (!s390_pic_data_is_text_relative && !flag_pic)
- error ("-mno-pic-data-is-text-relative cannot be used without -fpic/-fPIC");
+ error ("%<-mno-pic-data-is-text-relative%> cannot be used without "
+ "%<-fpic%>/%<-fPIC%>");
if (TARGET_TPF)
{
else if (flag_exceptions)
{
if (flag_schedule_insns && global_options_set.x_flag_schedule_insns)
- warning (0, "ignoring -fschedule-insns because of exception "
+ warning (0, "ignoring %<-fschedule-insns%> because of exception "
"handling bug");
flag_schedule_insns = 0;
}
&& flag_omit_frame_pointer && !TARGET_ACCUMULATE_OUTGOING_ARGS)
{
warning (0, "unwind tables currently require either a frame pointer "
- "or -maccumulate-outgoing-args for correctness");
+ "or %<-maccumulate-outgoing-args%> for correctness");
TARGET_ACCUMULATE_OUTGOING_ARGS = 1;
}
if (!TARGET_FPU_ANY)
{
- error ("__builtin_saveregs not supported by this subtarget");
+ error ("%<__builtin_saveregs%> not supported by this subtarget");
return const0_rtx;
}
char* dash = strchr (str, '-');
if (!dash)
{
- warning (0, "value of -mfixed-range must have form REG1-REG2");
+ warning (0, "value of %<-mfixed-range%> must have form REG1-REG2");
return;
}
*dash = '\0';
appear in shared libraries, so relaxation is OK \
for RTP PIC. */ \
if (TARGET_RELAX && !(TARGET_VXWORKS_RTP && flag_pic)) \
- error ("-mrelax is only supported for RTP PIC"); \
+ error ("%<-mrelax%> is only supported for RTP PIC"); \
} \
while (0)
else if (! strcmp (q, "options"))
mask = MASK_DEBUG_OPTIONS;
else
- error ("unknown -mdebug-%s switch", q);
+ error ("unknown %<-mdebug-%s%> switch", q);
if (invert)
sparc_debug &= ~mask;
/* We force all 64bit archs to use 128 bit long double */
if (TARGET_ARCH64 && !TARGET_LONG_DOUBLE_128)
{
- error ("-mlong-double-64 not allowed with -m64");
+ error ("%<-mlong-double-64%> not allowed with %<-m64%>");
target_flags |= MASK_LONG_DOUBLE_128;
}
for (i = 8; i < 16; i++)
if (!call_used_regs [i])
{
- error ("-fcall-saved-REG is not supported for out registers");
+ error ("%<-fcall-saved-REG%> is not supported for out registers");
call_used_regs [i] = 1;
}
if (global_options_set.x_sparc_code_model)
{
if (TARGET_ARCH32)
- error ("-mcmodel= is not supported in 32-bit mode");
+ error ("%<-mcmodel=%> is not supported in 32-bit mode");
}
else
{
else if (strcmp (&spu_arch_string[0], "celledp") == 0)
spu_arch = PROCESSOR_CELLEDP;
else
- error ("bad value (%s) for -march= switch", spu_arch_string);
+ error ("bad value (%s) for %<-march=%> switch", spu_arch_string);
}
/* Determine processor to tune for. */
else if (strcmp (&spu_tune_string[0], "celledp") == 0)
spu_tune = PROCESSOR_CELLEDP;
else
- error ("bad value (%s) for -mtune= switch", spu_tune_string);
+ error ("bad value (%s) for %<-mtune=%> switch", spu_tune_string);
}
/* Change defaults according to the processor architecture. */
dash = strchr (str, '-');
if (!dash)
{
- warning (0, "value of -mfixed-range must have form REG1-REG2");
+ warning (0, "value of %<-mfixed-range%> must have form REG1-REG2");
return;
}
*dash = '\0';
visium_option_override (void)
{
if (flag_pic == 1)
- warning (OPT_fpic, "-fpic is not supported");
+ warning (OPT_fpic, "%<-fpic%> is not supported");
if (flag_pic == 2)
- warning (OPT_fPIC, "-fPIC is not supported");
+ warning (OPT_fPIC, "%<-fPIC%> is not supported");
/* MCM is the default in the GR5/GR6 era. */
target_flags |= MASK_MCM;
}
else if (!TARGET_SV_MODE)
{
- error ("an interrupt handler cannot be compiled with -muser-mode");
+ error ("an interrupt handler cannot be compiled with %<-muser-mode%>");
*no_add_attrs = true;
}
/* Check PIC settings. PIC is only supported when using L32R
instructions, and some targets need to always use PIC. */
if (flag_pic && TARGET_CONST16)
- error ("-f%s is not supported with CONST16 instructions",
+ error ("%<-f%s%> is not supported with CONST16 instructions",
(flag_pic > 1 ? "PIC" : "pic"));
else if (TARGET_FORCE_NO_PIC)
flag_pic = 0;
+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-08 Jakub Jelinek <jakub@redhat.com>
PR other/80058
&& TYPE_MODE (TREE_TYPE (prom)) != TYPE_MODE (arg_type)
&& (complain & tf_warning))
warning_at (loc, OPT_Wabi, "scoped enum %qT passed through ... as "
- "%qT before -fabi-version=6, %qT after", arg_type,
+ "%qT before %<-fabi-version=6%>, %qT after", arg_type,
TREE_TYPE (prom), ENUM_UNDERLYING_TYPE (arg_type));
if (!abi_version_at_least (6))
arg = prom;
pedwarn (DECL_SOURCE_LOCATION (cand->fn), 0,
" in call to %qD", cand->fn);
pedwarn (input_location, 0,
- " (you can disable this with -fno-deduce-init-list)");
+ " (you can disable this with "
+ "%<-fno-deduce-init-list%>)");
}
}
if (!warned && errorcount > oldcount)
{
inform (DECL_SOURCE_LOCATION (field), "unrestricted unions "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
warned = true;
}
}
{
if (abi_version_at_least (9))
warning_at (DECL_SOURCE_LOCATION (decl), OPT_Wabi,
- "alignment of %qD increased in -fabi-version=9 "
+ "alignment of %qD increased in %<-fabi-version=9%> "
"(GCC 5.2)", decl);
else
warning_at (DECL_SOURCE_LOCATION (decl), OPT_Wabi, "alignment "
- "of %qD will increase in -fabi-version=9", decl);
+ "of %qD will increase in %<-fabi-version=9%>",
+ decl);
}
break;
}
if (!ctx->quiet)
error_at (cp_expr_loc_or_loc (t, input_location),
"%<constexpr%> loop iteration count exceeds limit of %d "
- "(use -fconstexpr-loop-limit= to increase the limit)",
+ "(use %<-fconstexpr-loop-limit=%> to increase the limit)",
constexpr_loop_limit);
*non_constant_p = true;
break;
if (abi_version_crosses (6)
&& TYPE_MODE (prom) != TYPE_MODE (type))
warning (OPT_Wabi, "scoped enum %qT passed through ... as "
- "%qT before -fabi-version=6, %qT after",
+ "%qT before %<-fabi-version=6%>, %qT after",
type, prom, ENUM_UNDERLYING_TYPE (type));
if (!abi_version_at_least (6))
type = prom;
if (aligned_new_threshold > 1
&& !pow2p_hwi (aligned_new_threshold))
{
- error ("-faligned-new=%d is not a power of two", aligned_new_threshold);
+ error ("%<-faligned-new=%d%> is not a power of two",
+ aligned_new_threshold);
aligned_new_threshold = 1;
}
if (aligned_new_threshold == -1)
}
else if (cxx_dialect < cxx17)
pedwarn (loc, 0, "inline variables are only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
if (inlinep)
{
retrofit_lang_decl (decl);
gcc_rich_location richloc (declspecs->locations[ds_virtual]);
richloc.add_range (declspecs->locations[ds_constexpr]);
pedwarn (&richloc, OPT_Wpedantic, "member %qD can be declared both "
- "%<virtual%> and %<constexpr%> only in -std=c++2a or "
- "-std=gnu++2a", dname);
+ "%<virtual%> and %<constexpr%> only in %<-std=c++2a%> or "
+ "%<-std=gnu++2a%>", dname);
}
}
friendp = decl_spec_seq_has_spec_p (declspecs, ds_friend);
"trailing return type", name);
inform (typespec_loc,
"deduced return type only available "
- "with -std=c++14 or -std=gnu++14");
+ "with %<-std=c++14%> or %<-std=gnu++14%>");
}
else if (virtualp)
{
always be an error. */
error_at (typespec_loc,
"trailing return type only available "
- "with -std=c++11 or -std=gnu++11");
+ "with %<-std=c++11%> or %<-std=gnu++11%>");
else
error_at (typespec_loc, "%qs function with trailing "
"return type not declared with %<auto%> "
inform (DECL_SOURCE_LOCATION (*slot),
"previous mangling %q#D", *slot);
inform (DECL_SOURCE_LOCATION (decl),
- "a later -fabi-version= (or =0)"
+ "a later %<-fabi-version=%> (or =0)"
" avoids this error with a change in mangling");
*slot = decl;
}
case CPP0X_INITIALIZER_LISTS:
pedwarn (input_location, 0,
"extended initializer lists "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_EXPLICIT_CONVERSION:
pedwarn (input_location, 0,
"explicit conversion operators "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_VARIADIC_TEMPLATES:
pedwarn (input_location, 0,
"variadic templates "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_LAMBDA_EXPR:
pedwarn (input_location, 0,
"lambda expressions "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_AUTO:
pedwarn (input_location, 0,
- "C++11 auto only available with -std=c++11 or -std=gnu++11");
+ "C++11 auto only available with %<-std=c++11%> or "
+ "%<-std=gnu++11%>");
break;
case CPP0X_SCOPED_ENUMS:
pedwarn (input_location, 0,
- "scoped enums only available with -std=c++11 or -std=gnu++11");
+ "scoped enums only available with %<-std=c++11%> or "
+ "%<-std=gnu++11%>");
break;
case CPP0X_DEFAULTED_DELETED:
pedwarn (input_location, 0,
"defaulted and deleted functions "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_INLINE_NAMESPACES:
pedwarn (input_location, OPT_Wpedantic,
"inline namespaces "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_OVERRIDE_CONTROLS:
pedwarn (input_location, 0,
"override controls (override/final) "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_NSDMI:
pedwarn (input_location, 0,
"non-static data member initializers "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_USER_DEFINED_LITERALS:
pedwarn (input_location, 0,
"user-defined literals "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_DELEGATING_CTORS:
pedwarn (input_location, 0,
"delegating constructors "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_INHERITING_CTORS:
pedwarn (input_location, 0,
"inheriting constructors "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_ATTRIBUTES:
pedwarn (input_location, 0,
"c++11 attributes "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
case CPP0X_REF_QUALIFIER:
pedwarn (input_location, 0,
"ref-qualifiers "
- "only available with -std=c++11 or -std=gnu++11");
+ "only available with %<-std=c++11%> or %<-std=gnu++11%>");
break;
default:
gcc_unreachable ();
static int warned = 0;
if (! warned)
{
- error ("exception handling disabled, use -fexceptions to enable");
+ error ("exception handling disabled, use %<-fexceptions%> to enable");
warned = 1;
}
return 0;
if (for_decl && DECL_THUNK_P (for_decl))
warning_at (DECL_SOURCE_LOCATION (t), OPT_Wabi,
"the mangled name of a thunk for %qD changes between "
- "-fabi-version=%d and -fabi-version=%d",
+ "%<-fabi-version=%d%> and %<-fabi-version=%d%>",
t, flag_abi_version, warn_abi_version);
else if (for_decl)
warning_at (DECL_SOURCE_LOCATION (for_decl), OPT_Wabi,
"the mangled name of %qD changes between "
- "-fabi-version=%d and -fabi-version=%d",
+ "%<-fabi-version=%d%> and %<-fabi-version=%d%>",
for_decl, flag_abi_version, warn_abi_version);
else
warning_at (DECL_SOURCE_LOCATION (t), OPT_Wabi,
"the mangled name of the initialization guard variable "
- "for %qD changes between -fabi-version=%d and "
- "-fabi-version=%d",
+ "for %qD changes between %<-fabi-version=%d%> and "
+ "%<-fabi-version=%d%>",
t, flag_abi_version, warn_abi_version);
}
}
decl);
if (DECL_CLASS_TEMPLATE_P (decl) && cxx_dialect < cxx17)
inform (location, "class template argument deduction is only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
inform (DECL_SOURCE_LOCATION (decl), "%qD declared here", decl);
}
else if (TREE_CODE (id) == BIT_NOT_EXPR)
The user should have said "typename A<T>::X". */
if (cxx_dialect < cxx11 && id == ridpointers[(int)RID_CONSTEXPR])
inform (location, "C++11 %<constexpr%> only available with "
- "-std=c++11 or -std=gnu++11");
+ "%<-std=c++11%> or %<-std=gnu++11%>");
else if (cxx_dialect < cxx11 && id == ridpointers[(int)RID_NOEXCEPT])
inform (location, "C++11 %<noexcept%> only available with "
- "-std=c++11 or -std=gnu++11");
+ "%<-std=c++11%> or %<-std=gnu++11%>");
else if (cxx_dialect < cxx11
&& TREE_CODE (id) == IDENTIFIER_NODE
&& id_equal (id, "thread_local"))
inform (location, "C++11 %<thread_local%> only available with "
- "-std=c++11 or -std=gnu++11");
+ "%<-std=c++11%> or %<-std=gnu++11%>");
else if (!flag_concepts && id == ridpointers[(int)RID_CONCEPT])
- inform (location, "%<concept%> only available with -fconcepts");
+ inform (location, "%<concept%> only available with %<-fconcepts%>");
else if (processing_template_decl && current_class_type
&& TYPE_BINFO (current_class_type))
{
"GNU built-in suffix");
}
else if (!ext)
- inform (token->location, "use -fext-numeric-literals "
+ inform (token->location, "use %<-fext-numeric-literals%> "
"to enable more built-in suffixes");
if (kind == DK_ERROR)
&& cxx_dialect < cxx17
&& !in_system_header_at (input_location))
pedwarn (input_location, 0, "fold-expressions only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
}
else
/* Let the front end know that this expression was
if (cxx_dialect < cxx14)
pedwarn (loc, 0,
"%<~auto%> only available with "
- "-std=c++14 or -std=gnu++14");
+ "%<-std=c++14%> or %<-std=gnu++14%>");
cp_lexer_consume_token (parser->lexer);
return cp_expr (build_nt (BIT_NOT_EXPR, make_auto (), loc));
}
if (cxx_dialect < cxx14)
pedwarn (input_location, 0,
"%<~auto%> only available with "
- "-std=c++14 or -std=gnu++14");
+ "%<-std=c++14%> or %<-std=gnu++14%>");
cp_lexer_consume_token (parser->lexer);
cp_lexer_consume_token (parser->lexer);
*scope = NULL_TREE;
{
const char *saved_message = parser->type_definition_forbidden_message;
parser->type_definition_forbidden_message
- = G_("types may not be defined within __builtin_offsetof");
+ = G_("types may not be defined within %<__builtin_offsetof%>");
type = cp_parser_type_id (parser);
parser->type_definition_forbidden_message = saved_message;
}
{
error_at (LAMBDA_EXPR_LOCATION (lambda_expr),
"lambda-expression in unevaluated context"
- " only available with -std=c++2a or -std=gnu++2a");
+ " only available with %<-std=c++2a%> or %<-std=gnu++2a%>");
token->error_reported = true;
}
ok = false;
if (!token->error_reported)
{
error_at (token->location, "lambda-expression in template-argument"
- " only available with -std=c++2a or -std=gnu++2a");
+ " only available with %<-std=c++2a%> or %<-std=gnu++2a%>");
token->error_reported = true;
}
ok = false;
location_t loc = cp_lexer_peek_token (parser->lexer)->location;
if (cxx_dialect < cxx17)
pedwarn (loc, 0, "%<*this%> capture only available with "
- "-std=c++17 or -std=gnu++17");
+ "%<-std=c++17%> or %<-std=gnu++17%>");
cp_lexer_consume_token (parser->lexer);
cp_lexer_consume_token (parser->lexer);
add_capture (lambda_expr,
location_t loc = cp_lexer_peek_token (parser->lexer)->location;
if (cxx_dialect < cxx2a)
pedwarn (loc, 0, "pack init-capture only available with "
- "-std=c++2a or -std=gnu++2a");
+ "%<-std=c++2a%> or %<-std=gnu++2a%>");
cp_lexer_consume_token (parser->lexer);
init_pack_expansion = true;
}
if (cxx_dialect < cxx14)
pedwarn (input_location, 0,
"lambda capture initializers "
- "only available with -std=c++14 or -std=gnu++14");
+ "only available with %<-std=c++14%> or %<-std=gnu++14%>");
capture_init_expr = cp_parser_initializer (parser, &direct,
&non_constant, true);
explicit_init_p = true;
if (cxx_dialect < cxx14)
pedwarn (parser->lexer->next_token->location, 0,
"lambda templates are only available with "
- "-std=c++14 or -std=gnu++14");
+ "%<-std=c++14%> or %<-std=gnu++14%>");
else if (cxx_dialect < cxx2a)
pedwarn (parser->lexer->next_token->location, OPT_Wpedantic,
"lambda templates are only available with "
- "-std=c++2a or -std=gnu++2a");
+ "%<-std=c++2a%> or %<-std=gnu++2a%>");
cp_lexer_consume_token (parser->lexer);
= lambda_specs.locations[ds_constexpr];
else
error_at (lambda_specs.locations[ds_constexpr], "%<constexpr%> "
- "lambda only available with -std=c++17 or -std=gnu++17");
+ "lambda only available with %<-std=c++17%> or "
+ "%<-std=gnu++17%>");
}
p = obstack_alloc (&declarator_obstack, 0);
cp_token *tok = cp_lexer_consume_token (parser->lexer);
if (cxx_dialect < cxx17 && !in_system_header_at (tok->location))
pedwarn (tok->location, 0, "%<if constexpr%> only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
}
/* Look for the `('. */
if (cxx_dialect < cxx17)
pedwarn (cp_lexer_peek_token (parser->lexer)->location, 0,
"init-statement in selection statements only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
cp_parser_init_statement (parser, &decl);
}
{
pedwarn (cp_lexer_peek_token (parser->lexer)->location, 0,
"range-based %<for%> loops with initializer only "
- "available with -std=c++2a or -std=gnu++2a");
+ "available with %<-std=c++2a%> or %<-std=gnu++2a%>");
*decl = error_mark_node;
}
}
if (cxx_dialect < cxx11)
pedwarn (cp_lexer_peek_token (parser->lexer)->location, 0,
"range-based %<for%> loops only available with "
- "-std=c++11 or -std=gnu++11");
+ "%<-std=c++11%> or %<-std=gnu++11%>");
}
else
/* The ';' is not consumed yet because we told
if (cxx_dialect < cxx17)
pedwarn (loc, 0, "structured bindings only available with "
- "-std=c++17 or -std=gnu++17");
+ "%<-std=c++17%> or %<-std=gnu++17%>");
tree pushed_scope;
cp_declarator *declarator = make_declarator (cdk_decomp);
if (cxx_dialect < cxx2a)
pedwarn (token->location, 0,
- "%<explicit(bool)%> only available with -std=c++2a "
- "or -std=gnu++2a");
+ "%<explicit(bool)%> only available with %<-std=c++2a%> "
+ "or %<-std=gnu++2a%>");
/* Parse the constant-expression. */
expr = cp_parser_constant_expression (parser);
if (cxx_dialect < cxx17)
pedwarn (input_location, OPT_Wpedantic,
"static_assert without a message "
- "only available with -std=c++17 or -std=gnu++17");
+ "only available with %<-std=c++17%> or %<-std=gnu++17%>");
/* Eat the ')' */
cp_lexer_consume_token (parser->lexer);
message = build_string (1, "");
error_at (token->location,
"use of %<auto%> in lambda parameter declaration "
"only available with "
- "-std=c++14 or -std=gnu++14");
+ "%<-std=c++14%> or %<-std=gnu++14%>");
}
else if (cxx_dialect < cxx14)
error_at (token->location,
"use of %<auto%> in parameter declaration "
"only available with "
- "-std=c++14 or -std=gnu++14");
+ "%<-std=c++14%> or %<-std=gnu++14%>");
else if (!flag_concepts)
pedwarn (token->location, 0,
"use of %<auto%> in parameter declaration "
- "only available with -fconcepts");
+ "only available with %<-fconcepts%>");
}
else
type = make_auto ();
if (cxx_dialect < cxx2a)
pedwarn (cp_lexer_peek_token (parser->lexer)->location,
OPT_Wpedantic, "nested inline namespace definitions only "
- "available with -std=c++2a or -std=gnu++2a");
+ "available with %<-std=c++2a%> or %<-std=gnu++2a%>");
cp_lexer_consume_token (parser->lexer);
}
if (!nested_definition_count && cxx_dialect < cxx17)
pedwarn (input_location, OPT_Wpedantic,
- "nested namespace definitions only available with "
- "-std=c++17 or -std=gnu++17");
+ "nested namespace definitions only available with "
+ "%<-std=c++17%> or %<-std=gnu++17%>");
/* Nested namespace names can create new namespaces (unlike
other qualified-ids). */
&& !in_system_header_at (ell->location))
pedwarn (ell->location, 0,
"pack expansion in using-declaration only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
qscope = make_pack_expansion (qscope);
}
if (cxx_dialect < cxx17)
pedwarn (comma->location, 0,
"comma-separated list in using-declaration only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
goto again;
}
if (DECL_CONSTRUCTOR_P (current_function_decl))
pedwarn (input_location, 0,
"function-try-block body of %<constexpr%> constructor only "
- "available with -std=c++2a or -std=gnu++2a");
+ "available with %<-std=c++2a%> or %<-std=gnu++2a%>");
else
pedwarn (input_location, 0,
"function-try-block body of %<constexpr%> function only "
- "available with -std=c++2a or -std=gnu++2a");
+ "available with %<-std=c++2a%> or %<-std=gnu++2a%>");
}
/* Begin the function body. */
if (cxx_dialect < cxx2a)
pedwarn (loc, OPT_Wpedantic,
"C++ designated initializers only available with "
- "-std=c++2a or -std=gnu++2a");
+ "%<-std=c++2a%> or %<-std=gnu++2a%>");
/* Consume the `.'. */
cp_lexer_consume_token (parser->lexer);
/* Consume the identifier. */
by the standard until C++17. */
pedwarn (token->location, OPT_Wpedantic,
"ISO C++ forbids typename key in template template parameter;"
- " use -std=c++17 or -std=gnu++17");
+ " use %<-std=c++17%> or %<-std=gnu++17%>");
}
else
cp_parser_error (parser, "expected %<class%> or %<typename%>");
&& identifier != NULL_TREE)
pedwarn (loc, 0,
"default member initializers for bit-fields "
- "only available with -std=c++2a or "
- "-std=gnu++2a");
+ "only available with %<-std=c++2a%> or "
+ "%<-std=gnu++2a%>");
initializer = cp_parser_save_nsdmi (parser);
if (identifier == NULL_TREE)
&& cxx_dialect < cxx2a)
pedwarn (input_location, 0,
"%<try%> in %<constexpr%> function only "
- "available with -std=c++2a or -std=gnu++2a");
+ "available with %<-std=c++2a%> or %<-std=gnu++2a%>");
try_block = begin_try_block ();
cp_parser_compound_statement (parser, NULL, BCS_TRY_BLOCK, false);
&& !in_system_header_at (input_location))
pedwarn (input_location, 0,
"attribute using prefix only available "
- "with -std=c++17 or -std=gnu++17");
+ "with %<-std=c++17%> or %<-std=gnu++17%>");
cp_lexer_consume_token (parser->lexer);
cp_lexer_consume_token (parser->lexer);
&& tok->u.value == ridpointers[RID_REQUIRES])
{
error_at (cp_lexer_peek_token (parser->lexer)->location,
- "%<requires%> only available with -fconcepts");
+ "%<requires%> only available with %<-fconcepts%>");
/* Parse and discard the requires-clause. */
cp_lexer_consume_token (parser->lexer);
cp_parser_requires_clause (parser);
{
if (cxx_dialect < cxx14)
pedwarn (DECL_SOURCE_LOCATION (decl), 0,
- "variable templates only available with "
- "-std=c++14 or -std=gnu++14");
+ "variable templates only available with "
+ "%<-std=c++14%> or %<-std=gnu++14%>");
// Namespace-scope variable templates should have a template header.
++wanted;
"friend declarations");
else if (TREE_CODE (decl) == FUNCTION_DECL && (cxx_dialect == cxx98))
msg = G_("default template arguments may not be used in function templates "
- "without -std=c++11 or -std=gnu++11");
+ "without %<-std=c++11%> or %<-std=gnu++11%>");
else if (is_partial)
msg = G_("default template arguments may not be used in "
"partial specializations");
at_eof = 2;
fatal_error (input_location,
"template instantiation depth exceeds maximum of %d"
- " (use -ftemplate-depth= to increase the maximum)",
+ " (use %<-ftemplate-depth=%> to increase the maximum)",
max_tinst_depth);
return false;
}
fatal_error (input_location,
"template instantiation depth exceeds maximum of %d"
- " instantiating %q+D, possibly from virtual table generation"
- " (use -ftemplate-depth= to increase the maximum)",
- max_tinst_depth, decl);
+ " instantiating %q+D, possibly from virtual table generation"
+ " (use %<-ftemplate-depth=%> to increase the maximum)",
+ max_tinst_depth, decl);
if (TREE_CODE (decl) == FUNCTION_DECL)
/* Pretend that we defined it. */
DECL_INITIAL (decl) = error_mark_node;
if (cxx_dialect < cxx2a)
{
error ("non-type template parameters of class type only available "
- "with -std=c++2a or -std=gnu++2a");
+ "with %<-std=c++2a%> or %<-std=gnu++2a%>");
return true;
}
if (!complete_type_or_else (type, NULL_TREE))
if (p && ! compiling)
{
- warning (0, "-frepo must be used with -c");
+ warning (0, "%<-frepo%> must be used with %<-c%>");
flag_use_repository = 0;
return NULL;
}
{
if (! flag_rtti)
{
- error ("cannot use %<typeid%> with -fno-rtti");
+ error ("cannot use %<typeid%> with %<-fno-rtti%>");
return false;
}
if (!flag_rtti)
{
if (complain & tf_error)
- error ("%<dynamic_cast%> not permitted with -fno-rtti");
+ error ("%<dynamic_cast%> not permitted with %<-fno-rtti%>");
return error_mark_node;
}
bool w;
auto_diagnostic_group d;
if (flag_abi_version > 12)
- w = warning_at (loc, OPT_Wabi, "-fabi-version=13 (GCC 8.2) fixes the "
- "calling convention for %qT, which was accidentally "
- "changed in 8.1", t);
+ w = warning_at (loc, OPT_Wabi, "%<-fabi-version=13%> (GCC 8.2) fixes "
+ "the calling convention for %qT, which was "
+ "accidentally changed in 8.1", t);
else
- w = warning_at (loc, OPT_Wabi, "-fabi-version=12 (GCC 8.1) accident"
+ w = warning_at (loc, OPT_Wabi, "%<-fabi-version=12%> (GCC 8.1) accident"
"ally changes the calling convention for %qT", t);
if (w)
inform (location_of (t), " declared here");
auto_diagnostic_group d;
if (warning_at (loc, OPT_Wabi, "the calling convention for %qT changes in "
- "-fabi-version=13 (GCC 8.2)", t))
+ "%<-fabi-version=13%> (GCC 8.2)", t))
inform (location_of (t), " because all of its copy and move "
"constructors are deleted");
}
{
if (high < low)
{
- error ("-fdbg-cnt=%s:%d:%d has smaller upper limit than the lower",
+ error ("%<-fdbg-cnt=%s:%d:%d%> has smaller upper limit than the lower",
name, low, high);
return false;
}
if (low < 0)
{
- error ("Lower limit %d of -fdbg-cnt=%s must be a non-negative number", low,
- name);
+ error ("Lower limit %d of %<-fdbg-cnt=%s%> must be a non-negative "
+ "number", low, name);
return false;
}
if (high < 0)
{
- error ("Upper limit %d of -fdbg-cnt=%s must be a non-negative number", high,
- name);
+ error ("Upper limit %d of %<-fdbg-cnt=%s%> must be a non-negative "
+ "number", high, name);
return false;
}
char *buffer = XALLOCAVEC (char, start + 2);
sprintf (buffer, "%*c", start + 1, '^');
error ("cannot find a valid counter:value pair:");
- error ("-fdbg-cnt=%s", next);
+ error ("%<-fdbg-cnt=%s%>", next);
error (" %s", buffer);
}
}
static bool once;
if (!once)
{
- warning (0,
- "-gdwarf-6 is output as version 5 with incompatibilities");
+ warning (0, "%<-gdwarf-6%> is output as version 5 with "
+ "incompatibilities");
once = true;
}
dw2_asm_output_data (2, 5, "DWARF version number");
if (rtx handler = EH_RETURN_HANDLER_RTX)
emit_move_insn (handler, crtl->eh.ehr_handler);
else
- error ("__builtin_eh_return not supported on this target");
+ error ("%<__builtin_eh_return%> not supported on this target");
}
emit_label (around_label);
+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-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/66089
{
gfc_current_locus = old_loc;
gfc_error ("RECORD at %C is an extension, enable it with "
- "-fdec-structure");
+ "%<-fdec-structure%>");
return MATCH_ERROR;
}
m = gfc_match (" %n/", name);
{
if (!flag_cray_pointer)
{
- gfc_error ("Cray pointer declaration at %C requires -fcray-pointer "
- "flag");
+ gfc_error ("Cray pointer declaration at %C requires "
+ "%<-fcray-pointer%> flag");
return MATCH_ERROR;
}
return cray_pointer_decl ();
{
gfc_error ("The number of elements in the array constructor "
"at %L requires an increase of the allowed %d "
- "upper limit. See -fmax-array-constructor "
+ "upper limit. See %<-fmax-array-constructor%> "
"option", &expr->where, flag_max_array_constructor);
return false;
}
gfc_warning_now (OPT_Wintrinsics_std, "The intrinsic %qs at %L is not "
"included in the selected standard but %s and %qs will"
" be treated as if declared EXTERNAL. Use an"
- " appropriate -std=* option or define"
- " -fall-intrinsics to allow this intrinsic.",
+ " appropriate %<-std=%>* option or define"
+ " %<-fall-intrinsics%> to allow this intrinsic.",
sym->name, &loc, symstd, sym->name);
return false;
/* Excess precision other than "fast" requires front-end
support. */
if (flag_excess_precision_cmdline == EXCESS_PRECISION_STANDARD)
- sorry ("-fexcess-precision=standard for Fortran");
+ sorry ("%<-fexcess-precision=standard%> for Fortran");
flag_excess_precision_cmdline = EXCESS_PRECISION_FAST;
/* Fortran allows associative math - but we cannot reassociate if
if (gfc_range_check (e) != ARITH_OK)
{
gfc_error ("Integer too big for its kind at %C. This check can be "
- "disabled with the option -fno-range-check");
+ "disabled with the option %<-fno-range-check%>");
gfc_free_expr (e);
return MATCH_ERROR;
gfc_warning (OPT_Walign_commons,
"Padding of %d bytes required before %qs in "
"COMMON %qs at %L; reorder elements or use "
- "-fno-align-commons", (int)offset,
+ "%<-fno-align-commons%>", (int)offset,
s->sym->name, common->name, &common->where);
else
gfc_warning (OPT_Walign_commons,
"Padding of %d bytes required before %qs in "
"COMMON at %L; reorder elements or use "
- "-fno-align-commons", (int)offset,
+ "%<-fno-align-commons%>", (int)offset,
s->sym->name, &common->where);
}
}
if (arg && strcmp (arg, "|") == 0)
{ /* each command. */
#if defined (__MSDOS__) || defined (OS2) || defined (VMS)
- fatal_error (input_location, "-pipe not supported");
+ fatal_error (input_location, "%<-pipe%> not supported");
#endif
argbuf[i] = 0; /* Termination of
command args. */
|| strcmp (arg, "object") == 0)
save_temps_flag = SAVE_TEMPS_OBJ;
else
- fatal_error (input_location, "%qs is an unknown -save-temps option",
+ fatal_error (input_location, "%qs is an unknown %<-save-temps%> option",
decoded->orig_option_with_args_text);
break;
{
/* -save-temps overrides -pipe, so that temp files are produced */
if (save_temps_flag)
- warning (0, "-pipe ignored because -save-temps specified");
+ warning (0, "%<-pipe%> ignored because %<-save-temps%> specified");
use_pipes = 0;
}
if (!ret && length[0] != length[1])
{
- error ("%s: -fcompare-debug failure (length)", gcc_input_filename);
+ error ("%s: %<-fcompare-debug%> failure (length)", gcc_input_filename);
ret = 1;
}
{
if (memcmp (map[0], map[1], length[0]) != 0)
{
- error ("%s: -fcompare-debug failure", gcc_input_filename);
+ error ("%s: %<-fcompare-debug%> failure", gcc_input_filename);
ret = 1;
}
}
if (c0 != c1)
{
- error ("%s: -fcompare-debug failure",
+ error ("%s: %<-fcompare-debug%> failure",
gcc_input_filename);
ret = 1;
break;
if (!combine_inputs && have_c && have_o && lang_n_infiles > 1)
fatal_error (input_location,
- "cannot specify -o with -c, -S or -E with multiple files");
+ "cannot specify %<-o%> with %<-c%>, %<-S%> or %<-E%> "
+ "with multiple files");
/* No early exit needed from main; we can continue. */
return false;
{
if (verbose_flag)
inform (UNKNOWN_LOCATION,
- "recompiling with -fcompare-debug");
+ "recompiling with %<-fcompare-debug%>");
compare_debug = -compare_debug;
n_switches = n_switches_debug_check[1];
if (value < 0)
{
- error ("during -fcompare-debug recompilation");
+ error ("during %<-fcompare-debug%> recompilation");
this_file_error = 1;
}
false);
if (!temp_spec)
fatal_error (input_location,
- "-fuse-linker-plugin, but %s not found",
+ "%<-fuse-linker-plugin%>, but %s not found",
LTOPLUGINSONAME);
linker_plugin_file_spec = convert_white_space (temp_spec);
}
+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-09 Jakub Jelinek <jakub@redhat.com>
PR target/79645
{
/* -fltrans and -fwpa are mutually exclusive. Check for that here. */
if (flag_wpa && flag_ltrans)
- error ("-fwpa and -fltrans are mutually exclusive");
+ error ("%<-fwpa%> and %<-fltrans%> are mutually exclusive");
if (flag_ltrans)
{
lang_hooks.lto.append_data = lhd_append_data;
lang_hooks.lto.end_section = lhd_end_section;
if (flag_ltrans)
- error ("-flinker-output=rel and -fltrans are mutually exclussive");
+ error ("%<-flinker-output=rel%> and %<-fltrans%> are mutually "
+ "exclussive");
break;
case LTO_LINKER_OUTPUT_NOLTOREL: /* .o: incremental link producing asm */
if (tbaa_p)
inform (DECL_SOURCE_LOCATION (prevailing->decl),
"code may be misoptimized unless "
- "-fno-strict-aliasing is used");
+ "%<-fno-strict-aliasing is used%>");
mismatches.release ();
}
{
malformed:
error_at (UNKNOWN_LOCATION,
- "-fopenacc-dim operand is malformed at '%s'", pos);
+ "%<-fopenacc-dim%> operand is malformed at '%s'", pos);
}
}
case OPT_fasan_shadow_offset_:
if (!(flag_sanitize & SANITIZE_KERNEL_ADDRESS))
- error ("-fasan-shadow-offset should only be used "
- "with -fsanitize=kernel-address");
+ error ("%<-fasan-shadow-offset%> should only be used "
+ "with %<-fsanitize=kernel-address%>");
if (!set_asan_shadow_offset (opt->arg))
error ("unrecognized shadow offset %qs", opt->arg);
break;
if (hint)
error_at (loc,
- "unrecognized argument to -f%ssanitize%s= option: %q.*s;"
- " did you mean %qs?",
+ "unrecognized argument to %<-f%ssanitize%s=%> "
+ "option: %q.*s; did you mean %qs?",
value ? "" : "no-",
suffix, (int) len, p, hint);
else
error_at (loc,
- "unrecognized argument to -f%ssanitize%s= option: %q.*s",
- value ? "" : "no-",
+ "unrecognized argument to %<-f%ssanitize%s=%> option: "
+ "%q.*s", value ? "" : "no-",
suffix, (int) len, p);
}
case OPT_gdwarf:
if (arg && strlen (arg) != 0)
{
- error_at (loc, "%<-gdwarf%s%> is ambiguous; "
- "use %<-gdwarf-%s%> for DWARF version "
- "or %<-gdwarf -g%s%> for debug level", arg, arg, arg);
+ error_at (loc, "%<-gdwarf%s%> is ambiguous; "
+ "use %<-gdwarf-%s%> for DWARF version "
+ "or %<-gdwarf%> %<-g%s%> for debug level", arg, arg, arg);
break;
}
else
strcpy (new_option + 1, arg);
option_index = find_opt (new_option, lang_mask);
if (option_index == OPT_SPECIAL_unknown)
- error_at (loc, "-Werror=%s: no option -%s", arg, new_option);
+ error_at (loc, "%<-Werror=%s%>: no option -%s", arg, new_option);
else if (!(cl_options[option_index].flags & CL_WARNING))
- error_at (loc, "-Werror=%s: -%s is not an option that controls warnings",
- arg, new_option);
+ error_at (loc, "%<-Werror=%s%>: -%s is not an option that controls "
+ "warnings", arg, new_option);
else
{
const diagnostic_t kind = value ? DK_ERROR : DK_WARNING;
if (!*phase_name)
{
if (is_enable)
- error ("unrecognized option -fenable");
+ error ("unrecognized option %<-fenable%>");
else
- error ("unrecognized option -fdisable");
+ error ("unrecognized option %<-fdisable%>");
free (argstr);
return;
}
if (!pass || pass->static_pass_number == -1)
{
if (is_enable)
- error ("unknown pass %s specified in -fenable", phase_name);
+ error ("unknown pass %s specified in %<-fenable%>", phase_name);
else
- error ("unknown pass %s specified in -fdisable", phase_name);
+ error ("unknown pass %s specified in %<-fdisable%>", phase_name);
free (argstr);
return;
}
if (!key_start)
{
- error ("malformed option -fplugin-arg-%s (missing -<key>[=<value>])",
+ error ("malformed option %<-fplugin-arg-%s%> (missing -<key>[=<value>])",
arg);
return;
}
plugin->argv[plugin->argc - 1].value = value;
}
else
- error ("plugin %s should be specified before -fplugin-arg-%s "
+ error ("plugin %s should be specified before %<-fplugin-arg-%s%> "
"in the command line", name, arg);
/* We don't need the plugin's name anymore. Just release it. */
{
if (!plugindir_string)
fatal_error (input_location,
- "-iplugindir <dir> option not passed from the gcc driver");
+ "%<-iplugindir%> <dir> option not passed from the gcc driver");
return plugindir_string;
}
rtx
default_expand_builtin_saveregs (void)
{
- error ("__builtin_saveregs not supported by this target");
+ error ("%<__builtin_saveregs%> not supported by this target");
return const0_rtx;
}
/* -fpic and -fpie also usually make a PCH invalid. */
if (data[0] != flag_pic)
- return _("created and used with different settings of -fpic");
+ return _("created and used with different settings of %<-fpic%>");
if (data[1] != flag_pie)
- return _("created and used with different settings of -fpie");
+ return _("created and used with different settings of %<-fpie%>");
data += 2;
/* Check target_flags. */
+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.
+
2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
* gcc.target/s390/zvector/vec-addc-u128.c: New test.
void foo()
{
b + d; /* { dg-error "invalid operands to binary" } */
- d += e; /* { dg-message "use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts.*cannot convert '__vector.4. unsigned int' to '__vector.4. int' in assignment" } */
+ d += e; /* { dg-message "use '-flax-vector-conversions' to permit conversions between vectors with differing element types or numbers of subparts.*cannot convert '__vector.4. unsigned int' to '__vector.4. int' in assignment" } */
d2 += d;
}
test (A &b, B c)
{
int && [ d ] = c; // { dg-error "structured binding declaration cannot have type 'int'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
char & [ e, f, ff ] { b }; // { dg-error "structured binding declaration cannot have type 'char'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
- auto&[g,h,i]=b; // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
+ auto&[g,h,i]=b; // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } }
decltype (auto) [ j ] = c; // { dg-error "structured binding declaration cannot have type 'decltype.auto.'" "" { target c++14 } }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
// { dg-error "expected primary-expression before 'decltype'" "" { target c++11_down } .-2 }
auto & & && & [ m, n, o ] = b; // { dg-error "multiple ref-qualifiers" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
constexpr auto [ p ] = c; // { dg-error "structured binding declaration cannot be 'constexpr'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
friend auto [ q ] = c; // { dg-error "'friend' used outside of class" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
typedef auto [ r ] = c; // { dg-error "structured binding declaration cannot be 'typedef'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
inline auto [ s ] = c; // { dg-error "structured binding declaration cannot be 'inline'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
__restrict auto [ t ] = c; // { dg-error "invalid use of 'restrict'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
long long auto [ u ] = c; // { dg-error "'long long' specified with 'auto'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
virtual auto [ v ] = c; // { dg-error "'virtual' outside class declaration" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
explicit auto [ w ] = c; // { dg-error "'explicit' outside class declaration" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
static auto [ x ] = c; // { dg-error "structured binding declaration cannot be 'static'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
extern auto [ y ] { c }; // { dg-error "structured binding declaration cannot be 'extern'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
}
void
{
auto [ d, e, f ] = arr; // { dg-error "only 3 names provided" }
// { dg-message "while 'int .4.' decomposes into 4 elements" "" { target *-*-* } .-1 }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-2 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-2 }
auto & [ g, h, i, j, k ] = arr; // { dg-error "5 names provided" }
// { dg-message "while 'int .4.' decomposes into 4 elements" "" { target *-*-* } .-1 }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-2 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-2 }
auto [ l, m ] = b; // { dg-error "only 2 names provided" }
// { dg-message "while 'A' decomposes into 3 elements" "" { target *-*-* } .-1 }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-2 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-2 }
auto & [ n, o, p, q ] = b; // { dg-error "4 names provided" }
// { dg-message "while 'A' decomposes into 3 elements" "" { target *-*-* } .-1 }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-2 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-2 }
auto [] { c }; // { dg-error "empty structured binding declaration" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
auto [ r, s ] = c; // { dg-error "2 names provided" }
// { dg-message "while 'B' decomposes into 1 element" "" { target *-*-* } .-1 }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-2 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-2 }
}
test (A &a, B &b, C &c, D &d, E &e, F &f, G &g, H &h, I &i)
{
auto [ j ] = a; // { dg-error "cannot decompose class type 'A' because it has an anonymous struct member" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
auto [ k ] { b }; // { dg-error "cannot decompose class type 'B' because it has an anonymous union member" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
auto [ l, l2 ] = c; // { dg-error "cannot decompose inaccessible member 'C::b' of 'C'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
- auto [ m ] = d; // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
+ auto [ m ] = d; // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } }
auto [ n ] { e }; // { dg-error "cannot decompose inaccessible member 'E::a' of 'E'" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
- auto [ o ] { f }; // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
+ auto [ o ] { f }; // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } }
auto & [ p ] { g }; // { dg-error "cannot decompose class type 'G': both it and its base class 'F' have non-static data members" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
- auto [ q ] { h }; // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
+ auto [ q ] { h }; // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } }
auto [ r ] { i }; // { dg-error "cannot decompose class type 'I': its base classes 'F' and 'H' have non-static data members" }
- // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+ // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
}
template<int> void foo()
{
auto[i] = a; // { dg-warning "incomplete" }
-} // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+} // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
void f()
{
auto [x] = a; // { dg-warning "incomplete" }
-} // { dg-warning "structured bindings only available with -std=c..17 or -std=gnu..17" "" { target c++14_down } .-1 }
+} // { dg-warning "structured bindings only available with '-std=c..17' or '-std=gnu..17'" "" { target c++14_down } .-1 }
struct A { int i; };
/* { dg-do compile } */
/* { dg-options "-O2 -fnon-call-exceptions -ffast-math -fsignaling-nans" } */
-/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 0 } */
+/* { dg-warning "'-fassociative-math' disabled" "" { target *-*-* } 0 } */
template <class T>
class ggStaticArray {
// { dg-options "-std=c++98" }
constexpr int a = 1; // { dg-bogus "did you mean" }
-// { dg-error ".constexpr. does not name a type" "" { target *-*-* } .-1 }
-// { dg-message "C\\+\\+11 .constexpr. only available with -std=c\\+\\+11 or -std=gnu\\+\\+11" "" { target *-*-* } .-2 }
+// { dg-error "'constexpr' does not name a type" "" { target *-*-* } .-1 }
+// { dg-message "C\\+\\+11 'constexpr' only available with '-std=c\\+\\+11' or '-std=gnu\\+\\+11'" "" { target *-*-* } .-2 }
/* If the user typos "constexpr" (here as "consexpr"), don't offer it as a
spelling suggestion in C++98 mode. */
consexpr int a = 1; // { dg-bogus "did you mean" }
-// { dg-error ".consexpr. does not name a type" "" { target *-*-* } .-1 }
+// { dg-error "'consexpr' does not name a type" "" { target *-*-* } .-1 }
decltype i = 0; // { dg-bogus "did you mean" }
-// { dg-error ".decltype. does not name a type" "" { target *-*-* } .-1 }
+// { dg-error "'decltype' does not name a type" "" { target *-*-* } .-1 }
int j = 0;
for (int i = 1; i <= 10; i++) /* { dg-bogus "warning" "warning in place of error" } */
/* { dg-error "'for' loop initial declarations are only allowed in C99 or C11 mode" "declaration in for loop" { target *-*-* } .-1 } */
- /* { dg-message "note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code" "note" { target *-*-* } .-2 }} */
+ /* { dg-message "note: use option '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code" "note" { target *-*-* } .-2 }} */
j += i;
}
/* { dg-do preprocess } */
/* { dg-options "-fdirectives-only -Wunused-macros" } */
-/* { dg-error "-fdirectives-only is incompatible with -Wunused_macros\n" "-Wunused-macros check" { target *-*-* } 0 } */
+/* { dg-error "'-fdirectives-only' is incompatible with '-Wunused-macros'\n" "'-Wunused-macros' check" { target *-*-* } 0 } */
/* { dg-do preprocess } */
/* { dg-options "-fdirectives-only -traditional" } */
-/* { dg-error "-fdirectives-only is incompatible with -traditional\n" "-traditional check" { target *-*-* } 0 } */
+/* { dg-error "'-fdirectives-only' is incompatible with '-traditional'\n" "'-traditional' check" { target *-*-* } 0 } */
/* { dg-do preprocess } */
/* { dg-options "-fself-test=fake-value" } */
-/* { dg-message "self-tests incompatible with -E" "" { target *-*-* } 0 } */
+/* { dg-message "self-tests incompatible with '-E'" "" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-Wformat-extra-args" } */
-/* { dg-warning "-Wformat-extra-args ignored without -Wformat" "ignored" { target *-*-* } 0 } */
+/* { dg-warning "'-Wformat-extra-args' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-Wformat-nonliteral" } */
-/* { dg-warning "-Wformat-nonliteral ignored without -Wformat" "ignored" { target *-*-* } 0 } */
+/* { dg-warning "'-Wformat-nonliteral' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-Wformat-security" } */
-/* { dg-warning "-Wformat-security ignored without -Wformat" "ignored" { target *-*-* } 0 } */
+/* { dg-warning "'-Wformat-security' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-Wformat-y2k" } */
-/* { dg-warning "-Wformat-y2k ignored without -Wformat" "ignored" { target *-*-* } 0 } */
+/* { dg-warning "'-Wformat-y2k' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-Wformat-zero-length" } */
-/* { dg-warning "-Wformat-zero-length ignored without -Wformat" "ignored" { target *-*-* } 0 } */
+/* { dg-warning "'-Wformat-zero-length' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-Wformat-contains-nul" } */
-/* { dg-warning "-Wformat-contains-nul ignored without -Wformat" "ignored" { target *-*-* } 0 } */
+/* { dg-warning "'-Wformat-contains-nul' ignored without '-Wformat'" "ignored" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-MG -MD -c" } */
-/* { dg-error "may only be used with -M" "-MG incompatible with -c" { target *-*-* } 0 } */
+/* { dg-error "may only be used with .-M." ".-MG. incompatible with .-c." { target *-*-* } 0 } */
int anything;
/* { dg-do compile } */
/* { dg-options "-O -ffast-math -ftrapping-math" } */
-/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 0 } */
+/* { dg-warning ".-fassociative-math. disabled" "" { target *-*-* } 0 } */
long
foo (int i)
e = (typeof (e)) a;
/* Different signed SIMD assignment. */
- f = a; /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */
+ f = a; /* { dg-message "note: use .-flax-vector-conversions. to permit conversions between vectors with differing element types or numbers of subparts" } */
/* { dg-error "incompatible types when assigning" "" { target *-*-* } .-1 } */
/* Casted different signed SIMD assignment. */
/* Ensure that we don't need a typedef to initialize a vector type. */
#define vector __attribute__ ((vector_size (8)))
vector char x = (vector char) {1,2,3,4,5,6,7,8}; /* { dg-bogus "initializer" } */
-vector char y = (vector short) {1,2,3,4}; /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */
+vector char y = (vector short) {1,2,3,4}; /* { dg-message "note: use .-flax-vector-conversions. to permit conversions between vectors with differing element types or numbers of subparts" } */
/* { dg-error "incompatible types when initializing" "" { target *-*-* } .-1 } */
/* Ensure that we don't need a typedef to initialize a vector type. */
#define vector __attribute__ ((vector_size (8)))
vector char x = (vector char) {1,2,3,4,5,6,7,8}; /* { dg-bogus "initializer" } */
-vector char y = (vector short) {1,2,3,4}; /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */
+vector char y = (vector short) {1,2,3,4}; /* { dg-message "note: use .-flax-vector-conversions. to permit conversions between vectors with differing element types or numbers of subparts" } */
/* { dg-error "incompatible types when initializing" "" { target *-*-* } .-1 } */
/* { dg-do compile } */
/* { dg-options "-fsanitize=addres,nul,this-is-not-a-sanitizer-option" } */
-/* { dg-error "unrecognized argument to -fsanitize= option: .addres.; did you mean .address." "" { target *-*-* } 0 } */
-/* { dg-error "unrecognized argument to -fsanitize= option: .nul.; did you mean .null." "" { target *-*-* } 0 } */
-/* { dg-error "unrecognized argument to -fsanitize= option: .this-is-not-a-sanitizer-option." "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized argument to '-fsanitize=' option: 'addres'; did you mean 'address'" "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized argument to '-fsanitize=' option: 'nul'; did you mean 'null'" "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized argument to '-fsanitize=' option: 'this-is-not-a-sanitizer-option'" "" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-fsanitize=al" } */
/* { dg-bogus "did you mean" "" { target *-*-* } 0 } */
-/* { dg-error "unrecognized argument to -fsanitize= option: .al." "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized argument to '-fsanitize=' option: 'al'" "" { target *-*-* } 0 } */
/* Ensure we don't offer non-recoverable "-fsanitize-recover=thread"
as a suggestion. */
/* { dg-bogus "did you mean" "" { target *-*-* } 0 } */
-/* { dg-error "unrecognized argument to -fsanitize-recover= option: .threed." "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized argument to '-fsanitize-recover=' option: 'threed'" "" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-fno-sanitize=threed" } */
-/* { dg-error "unrecognized argument to -fno-sanitize= option: .threed.; did you mean .thread." "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized argument to '-fno-sanitize=' option: 'threed'; did you mean 'thread'" "" { target *-*-* } 0 } */
/* { dg-do compile } */
/* { dg-options "-O2 -funsafe-math-optimizations -ftrapping-math -fdump-tree-recip -fdump-tree-lim2" } */
-/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 0 } */
+/* { dg-warning "'-fassociative-math' disabled" "" { target *-*-* } 0 } */
double F[2] = { 0., 0. }, e = 0.;
/* { dg-options "-O1 -funsafe-math-optimizations -ftrapping-math -fdump-tree-recip -fdump-tree-optimized" } */
/* { dg-do compile } */
-/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 0 } */
+/* { dg-warning "'-fassociative-math' disabled" "" { target *-*-* } 0 } */
/* Test the reciprocal optimizations together with trapping math. */
/* { dg-final { scan-assembler-not "endbr" } } */
/* { dg-final { scan-assembler-not "notrack call\[ \t]+" } } */
-int func (int a) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use -fcf-protection option to enable it" } */
-int (*fptr) (int a) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use -fcf-protection option to enable it" } */
+int func (int a) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use '-fcf-protection' option to enable it" } */
+int (*fptr) (int a) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use '-fcf-protection' option to enable it" } */
int foo (int arg)
{
int __attribute__ ((nocf_check))
func (int arg)
-{ /* { dg-warning "'nocf_check' attribute ignored. Use -fcf-protection option to enable it" } */
- int (*fptrl) (int a) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use -fcf-protection option to enable it" } */
+{ /* { dg-warning "'nocf_check' attribute ignored. Use '-fcf-protection' option to enable it" } */
+ int (*fptrl) (int a) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use '-fcf-protection' option to enable it" } */
return arg*(*fptrl)(arg);
}
static __attribute__((noinline, nocf_check)) int
fn3 (int x)
-{ /* { dg-warning "'nocf_check' attribute ignored. Use -fcf-protection option to enable it" } */
+{ /* { dg-warning "'nocf_check' attribute ignored. Use '-fcf-protection' option to enable it" } */
return x + 12;
}
int (*foo)(int);
-typedef int (*type1_t) (int) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use -fcf-protection option to enable it" } */
+typedef int (*type1_t) (int) __attribute__ ((nocf_check)); /* { dg-warning "'nocf_check' attribute ignored. Use '-fcf-protection' option to enable it" } */
typedef int (*type2_t) (int);
static __attribute__((noinline)) int
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O -mvsx -mno-altivec" } */
-/* { dg-warning "-mvsx and -mno-altivec are incompatible" "" { target *-*-* } 0 } */
+/* { dg-warning "'-mvsx' and '-mno-altivec' are incompatible" "" { target *-*-* } 0 } */
double
foo (double *x, double *y)
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O -mdejagnu-cpu=power7 -mno-altivec" } */
-/* { dg-warning "-mno-altivec disables vsx" "" { target *-*-* } 0 } */
+/* { dg-warning "'-mno-altivec' disables vsx" "" { target *-*-* } 0 } */
double
foo (double *x, double *y)
}
else
inform (UNKNOWN_LOCATION,
- "-frecord-gcc-switches is not supported by "
+ "%<-frecord-gcc-switches%> is not supported by "
"the current target");
}
|| flag_graphite_identity
|| flag_loop_parallelize_all)
sorry ("Graphite loop optimizations cannot be used (isl is not available) "
- "(-fgraphite, -fgraphite-identity, -floop-nest-optimize, "
- "-floop-parallelize-all)");
+ "(%<-fgraphite%>, %<-fgraphite-identity%>, "
+ "%<-floop-nest-optimize%>, %<-floop-parallelize-all%>)");
#endif
if (flag_cf_protection != CF_NONE
}
else
warning_at (UNKNOWN_LOCATION, 0,
- "-f%sleading-underscore not supported on this "
+ "%<-f%sleading-underscore%> not supported on this "
"target machine", flag_leading_underscore ? "" : "no-");
}
else if (debug_variable_location_views == -1 && dwarf_version != 5)
{
warning_at (UNKNOWN_LOCATION, 0,
- "without -gdwarf-5, -gvariable-location-views=incompat5 "
- "is equivalent to -gvariable-location-views");
+ "without %<-gdwarf-5%>, "
+ "%<-gvariable-location-views=incompat5%> "
+ "is equivalent to %<-gvariable-location-views%>");
debug_variable_location_views = 1;
}
&& !debug_variable_location_views)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-ginternal-reset-location-views is forced disabled "
- "without -gvariable-location-views");
+ "%<-ginternal-reset-location-views%> is forced disabled "
+ "without %<-gvariable-location-views%>");
debug_internal_reset_location_views = 0;
}
else if (debug_inline_points && !debug_nonbind_markers_p)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-ginline-points is forced disabled without "
- "-gstatement-frontiers");
+ "%<-ginline-points%> is forced disabled without "
+ "%<-gstatement-frontiers%>");
debug_inline_points = 0;
}
if (flag_function_sections)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-ffunction-sections not supported for this target");
+ "%<-ffunction-sections%> not supported for this target");
flag_function_sections = 0;
}
if (flag_data_sections)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fdata-sections not supported for this target");
+ "%<-fdata-sections%> not supported for this target");
flag_data_sections = 0;
}
}
if (flag_prefetch_loop_arrays > 0 && !targetm.code_for_prefetch)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fprefetch-loop-arrays not supported for this target");
+ "%<-fprefetch-loop-arrays%> not supported for this target");
flag_prefetch_loop_arrays = 0;
}
else if (flag_prefetch_loop_arrays > 0 && !targetm.have_prefetch ())
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fprefetch-loop-arrays not supported for this target "
- "(try -march switches)");
+ "%<-fprefetch-loop-arrays%> not supported for this target "
+ "(try %<-march%> switches)");
flag_prefetch_loop_arrays = 0;
}
if (flag_prefetch_loop_arrays > 0 && optimize_size)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fprefetch-loop-arrays is not supported with -Os");
+ "%<-fprefetch-loop-arrays%> is not supported with %<-Os%>");
flag_prefetch_loop_arrays = 0;
}
if (flag_associative_math && (flag_trapping_math || flag_signed_zeros))
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fassociative-math disabled; other options take "
+ "%<-fassociative-math%> disabled; other options take "
"precedence");
flag_associative_math = 0;
}
if (!FRAME_GROWS_DOWNWARD && flag_stack_protect)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fstack-protector not supported for this target");
+ "%<-fstack-protector%> not supported for this target");
flag_stack_protect = 0;
}
if (!flag_stack_protect)
&& !FRAME_GROWS_DOWNWARD)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fsanitize=address and -fsanitize=kernel-address "
+ "%<-fsanitize=address%> and %<-fsanitize=kernel-address%> "
"are not supported for this target");
flag_sanitize &= ~SANITIZE_ADDRESS;
}
&& targetm.asan_shadow_offset == NULL)
{
warning_at (UNKNOWN_LOCATION, 0,
- "-fsanitize=address not supported for this target");
+ "%<-fsanitize=address%> not supported for this target");
flag_sanitize &= ~SANITIZE_ADDRESS;
}
{
if (no_backend)
{
- error_at (UNKNOWN_LOCATION, "self-tests incompatible with -E");
+ error_at (UNKNOWN_LOCATION, "self-tests incompatible with %<-E%>");
return;
}
#if CHECKING_P
__builtin_unreachable internally, for example when IPA figures
out a call cannot happen in a legal program. In such cases,
we must make sure arguments are stripped off. */
- error ("__builtin_unreachable or __builtin_trap call with "
- "arguments");
+ error ("%<__builtin_unreachable%> or %<__builtin_trap%> call "
+ "with arguments");
return true;
}
break;
return from the function the inline has been inlined into. */
inline_forbidden_reason
= G_("function %q+F can never be inlined because "
- "it uses __builtin_return or __builtin_apply_args");
+ "it uses %<__builtin_return%> or %<__builtin_apply_args%>");
*handled_ops_p = true;
return t;
&& always_inline == NULL)
{
if (do_warning)
- warning (OPT_Winline, "function %q+F can never be inlined because it "
- "is suppressed using -fno-inline", fn);
+ warning (OPT_Winline, "function %q+F can never be inlined because it "
+ "is suppressed using %<-fno-inline%>", fn);
inlinable = false;
}
if (MAY_HAVE_DEBUG_BIND_INSNS)
inform (DECL_SOURCE_LOCATION (cfun->decl),
"variable tracking size limit exceeded with "
- "-fvar-tracking-assignments, retrying without");
+ "%<-fvar-tracking-assignments%>, retrying without");
else
inform (DECL_SOURCE_LOCATION (cfun->decl),
"variable tracking size limit exceeded");