+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
+ diagnostics with lowercase letters.
+ * cgraphunit.c (verify_cgraph_node): Start diagnostics with
+ lowercase letters.
+ * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
+ diagnostic.
+ * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
+ * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
+ lowercase letters.
+ * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
+ Remove trailing ' ' from diagnostic.
+ * config/avr/avr.c (print_operand_address): Start diagnostic with
+ a lowercase letter and remove trailing '.'.
+ * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
+ * config/bfin/bfin.c (bfin_option_override): Start diagnostics
+ with lowercase letters. Use %' in diagnostics. Remove trailing
+ '.' from diagnostics.
+ (bfin_handle_longcall_attribute): Use %' in diagnostic.
+ * config/cris/cris.c (cris_split_movdx,
+ cris_expand_pic_call_address): Start diagnostics with lowercase
+ letters.
+ (cris_asm_output_label_ref): Use %' in diagnostic.
+ * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
+ letter.
+ * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
+ lowercase letter.
+ * config/darwin-c.c (version_as_macro): Start diagnostic with a
+ lowercase letter.
+ * config/darwin-driver.c (darwin_default_min_version): Use %' in
+ diagnostic.
+ * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
+ diagnostic.
+ * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
+ * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
+ diagnostics.
+ * config/i386/i386.c (ix86_option_override_internal): Write
+ diagnostic as a single sentence without trailing '.'. Use %' in
+ diagnostics.
+ (ix86_function_sseregparm, classify_argument): Start diagnostics
+ with lowercase letters.
+ (ix86_expand_prologue): Use %' in diagnostic.
+ * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
+ diagnostic.
+ * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
+ lowercase letter.
+ * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
+ diagnostic.
+ * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
+ * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
+ '`' in help text.
+ * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
+ lowercase letter.
+ * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
+ lowercase letters.
+ * config/microblaze/microblaze.c (microblaze_handle_option):
+ Remove trailing '.' from diagnostic.
+ (print_operand): Start diagnostic with a lowercase letter.
+ * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
+ lowercase letters. Avoid '`' in diagnostics.
+ * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
+ lowercase letters. Avoid '`' in diagnostics.
+ * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
+ lowercase letters. Avoid '`' in diagnostics.
+ * config/picochip/picochip.c (picochip_option_override,
+ picochip_emit_save_register, picochip_function_arg,
+ picochip_output_label, picochip_output_internal_label,
+ picochip_asm_output_opcode, picochip_output_cbranch,
+ picochip_output_compare, picochip_output_branch,
+ picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
+ diagnostics. Start diagnostics with lowercase letters. Use %' in
+ diagnostics.
+ * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
+ "SPE" capitalization. Start diagnostic with a lowercase letter.
+ (rs6000_handle_option): Start diagnostics with lowercase letters.
+ (def_builtin): Remove trailing '.' from diagnostic.
+ (rs6000_savres_routine_name): Start diagnostic with a lowercase
+ letter.
+ * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
+ diagnostic.
+ * config/rx/rx.c (rx_handle_option): Start diagnostic with a
+ lowercase letter.
+ * config/s390/s390.c (s390_option_override) Start diagnostics with
+ lowercase letters. Use %' in diagnostic.
+ * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
+ lowercase letters.
+ * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
+ diagnostic.
+ * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
+ diagnostic.
+ * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
+ diagnostic.
+ * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
+ * config/spu/spu.c (spu_option_override): Start diagnostics with
+ lowercase letters. Use %qs for quoting in diagnostics.
+ (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
+ Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
+ * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
+ from diagnostic.
+ * convert.c (convert_to_integer, convert_to_vector): Use %' in
+ diagnostics.
+ * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
+ letter and use "cannot" spelling.
+ * expmed.c (extract_fixed_bit_field): Start diagnostic with
+ lowercase letter and format as a single sentence without '.'.
+ * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
+ Use %' in diagnostics.
+ * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
+ Use %' in diagnostics.
+ * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
+ Use %' in diagnostics.
+ * graph.c (clean_graph_dump_file): Use %' in diagnostic.
+ * graphite-poly.c (graphite_read_scop_file): Start diagnostics
+ with lowercase letters and remove tailing '.' and '\n'.
+ * lto-cgraph.c (input_profile_summary): Start diagnostic with
+ lowercase letter and remove trailing '.'.
+ (input_cgraph): Start diagnostics with lowercase letters and
+ remove trailing '\n'.
+ * opts.c (finish_options, common_handle_option): Start diagnostics
+ with lowercase letters and remove trailing '.'. Fix typo in
+ diagnostic.
+ * passes.c (position_pass): Start diagnostic with lowercase
+ letter.
+ * plugin.c (add_new_plugin, parse_plugin_arg_opt,
+ register_callback, try_init_one_plugin): Start diagnostics with
+ lowercase letters.
+ * reload1.c (spill_failure): Use %' in diagnostic.
+ (gen_reload): Start diagnostic with a lowercase letter.
+ * stor-layout.c (place_field): Start diagnostic with a lowercase
+ letter.
+ * toplev.c (open_auxiliary_file): Use %' in diagnostic.
+ * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
+ verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
+ Start diagnostics with lowercase letters, remove trailing '.' and
+ use %' in diagnostics.
+ * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
+ (verify_ssa): Don't split diagnostic across two error calls.
+ Spell out "number" and use %' in diagnostic.
+ * value-prof.c (visit_hist, check_counter): Start diagnostics with
+ lowercase letters.
+
2010-11-10 Uros Bizjak <ubizjak@gmail.com>
PR middle-end/46419
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * c-common.c (handle_mode_attribute): Use %' and word "signedness"
+ in diagnostic.
+ * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
+ letter.
+ * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
+ Remove trailing '.' from diagnostics.
+ * c.opt (Wwrite-strings_: Avoid '`' in help text.
+
2010-11-10 Joseph Myers <joseph@codesourcery.com>
* c-common.c (parse_optimize_options): Pass global_dc to
if (ALL_FIXED_POINT_MODE_P (mode)
&& TYPE_UNSIGNED (type) != UNSIGNED_FIXED_POINT_MODE_P (mode))
{
- error ("signness of type and machine mode %qs don't match", p);
+ error ("signedness of type and machine mode %qs don%'t match", p);
return NULL_TREE;
}
/* For fixed-point modes, we need to pass saturating info. */
switch (c_language)
{
case clk_c:
- warning(0, "The C parser does not support -dy, option ignored");
+ warning(0, "the C parser does not support -dy, option ignored");
break;
case clk_objc:
warning(0,
- "The Objective-C parser does not support -dy, option ignored");
+ "the Objective-C parser does not support -dy, option ignored");
break;
case clk_cxx:
- warning(0, "The C++ parser does not support -dy, option ignored");
+ warning(0, "the C++ parser does not support -dy, option ignored");
break;
case clk_objcxx:
warning(0,
- "The Objective-C++ parser does not support -dy, option ignored");
+ "the Objective-C++ parser does not support -dy, option ignored");
break;
default:
gcc_unreachable ();
token = pragma_lex (&x);
else
GCC_BAD ("%<#pragma GCC target (string [,string]...)%> does "
- "not have a final %<)%>.");
+ "not have a final %<)%>");
}
if (token != CPP_EOF)
token = pragma_lex (&x);
else
GCC_BAD ("%<#pragma GCC optimize (string [,string]...)%> does "
- "not have a final %<)%>.");
+ "not have a final %<)%>");
}
if (token != CPP_EOF)
Wwrite-strings
C ObjC C++ ObjC++ Var(warn_write_strings) Warning
-In C++, nonzero means warn about deprecated conversion from string literals to `char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard.
+In C++, nonzero means warn about deprecated conversion from string literals to 'char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard.
Wpointer-sign
C ObjC Var(warn_pointer_sign) Init(-1) Warning
if (loops_state_satisfies_p (LOOPS_HAVE_PREHEADERS)
&& EDGE_COUNT (loop->header->preds) != 2)
{
- error ("loop %d's header does not have exactly 2 entries", i);
+ error ("loop %d%'s header does not have exactly 2 entries", i);
err = 1;
}
if (loops_state_satisfies_p (LOOPS_HAVE_SIMPLE_LATCHES))
{
if (!single_succ_p (loop->latch))
{
- error ("loop %d's latch does not have exactly 1 successor", i);
+ error ("loop %d%'s latch does not have exactly 1 successor", i);
err = 1;
}
if (single_succ (loop->latch) != loop->header)
{
- error ("loop %d's latch does not have header as successor", i);
+ error ("loop %d%'s latch does not have header as successor", i);
err = 1;
}
if (loop->latch->loop_father != loop)
{
- error ("loop %d's latch does not belong directly to it", i);
+ error ("loop %d%'s latch does not belong directly to it", i);
err = 1;
}
}
if (loop->header->loop_father != loop)
{
- error ("loop %d's header does not belong directly to it", i);
+ error ("loop %d%'s header does not belong directly to it", i);
err = 1;
}
if (loops_state_satisfies_p (LOOPS_HAVE_MARKED_IRREDUCIBLE_REGIONS)
&& (loop_latch_edge (loop)->flags & EDGE_IRREDUCIBLE_LOOP))
{
- error ("loop %d's latch is marked as part of irreducible region", i);
+ error ("loop %d%'s latch is marked as part of irreducible region", i);
err = 1;
}
}
exit = get_exit_descriptions (e);
if (!exit)
{
- error ("Exit %d->%d not recorded",
+ error ("exit %d->%d not recorded",
e->src->index, e->dest->index);
err = 1;
}
if (eloops != 0)
{
- error ("Wrong list of exited loops for edge %d->%d",
+ error ("wrong list of exited loops for edge %d->%d",
e->src->index, e->dest->index);
err = 1;
}
if (n_exits != htab_elements (current_loops->exits))
{
- error ("Too many loop exits recorded");
+ error ("too many loop exits recorded");
err = 1;
}
}
if (node->count < 0)
{
- error ("Execution count is negative");
+ error ("execution count is negative");
error_found = true;
}
if (node->global.inlined_to && node->local.externally_visible)
{
- error ("Externally visible inline clone");
+ error ("externally visible inline clone");
error_found = true;
}
if (node->global.inlined_to && node->address_taken)
{
- error ("Inline clone with address taken");
+ error ("inline clone with address taken");
error_found = true;
}
if (node->global.inlined_to && node->needed)
{
- error ("Inline clone is needed");
+ error ("inline clone is needed");
error_found = true;
}
for (e = node->indirect_calls; e; e = e->next_callee)
size_t num_files;
if (!lto_wrapper)
- fatal ("COLLECT_LTO_WRAPPER must be set.");
+ fatal ("COLLECT_LTO_WRAPPER must be set");
num_lto_c_args++;
/* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
- Copyright (C) 2000, 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2002, 2004, 2005, 2007, 2010
+ Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
This file is part of GCC.
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
#define LINK_SPEC "%{G*} %{relax:-relax} \
- %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
+ %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
%{Wl,*:%*} \
%{assert*} %{R*} %{rpath*} %{defsym*} \
%{shared:-Bshareable %{h*} %{soname*}} \
if (user_convention)
{
if (user_pcs > ARM_PCS_AAPCS_LOCAL)
- sorry ("Non-AAPCS derived PCS variant");
+ sorry ("non-AAPCS derived PCS variant");
else if (base_rules && user_pcs != ARM_PCS_AAPCS)
- error ("Variadic functions must use the base AAPCS variant");
+ error ("variadic functions must use the base AAPCS variant");
}
if (base_rules)
/* Definitions for StrongARM running FreeBSD using the ELF format
- Copyright (C) 2001, 2004, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2004, 2007, 2010 Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
This file is part of GCC.
#undef LINK_SPEC
#define LINK_SPEC " \
- %{p:%nconsider using `-pg' instead of `-p' with gprof(1) } \
+ %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
%{v:-V} \
%{assert*} %{R*} %{rpath*} %{defsym*} \
%{shared:-Bshareable %{h*} %{soname*}} \
output_addr_const (file, XEXP (x,0));
fprintf (file,"+" HOST_WIDE_INT_PRINT_DEC ")", 2 * INTVAL (XEXP (x,1)));
if (AVR_3_BYTE_PC)
- if (warning ( 0, "Pointer offset from symbol maybe incorrect."))
+ if (warning (0, "pointer offset from symbol maybe incorrect"))
{
output_addr_const (stderr, addr);
fprintf(stderr,"\n");
mpmem-wrap-around
Target Report
-Make the linker relaxation machine assume that a program counter wrap-around occures.
+Make the linker relaxation machine assume that a program counter wrap-around occurs.
error ("-mshared-library-id= specified without -mid-shared-library");
if (stack_limit_rtx && TARGET_STACK_CHECK_L1)
- error ("Can't use multiple stack checking methods together.");
+ error ("can%'t use multiple stack checking methods together");
if (TARGET_ID_SHARED_LIBRARY && TARGET_FDPIC)
- error ("ID shared libraries and FD-PIC mode can't be used together.");
+ error ("ID shared libraries and FD-PIC mode can%'t be used together");
/* 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... */
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;
&& lookup_attribute ("longcall", TYPE_ATTRIBUTES (*node))))
{
warning (OPT_Wattributes,
- "can't apply both longcall and shortcall attributes to the same function");
+ "can%'t apply both longcall and shortcall attributes to the same function");
*no_add_attrs = true;
}
}
}
else
- internal_error ("Unknown src");
+ internal_error ("unknown src");
}
/* Reg-to-mem copy or clear mem. */
else if (MEM_P (dest)
}
else
- internal_error ("Unknown dest");
+ internal_error ("unknown dest");
val = get_insns ();
end_sequence ();
else
/* Can't possibly get a GOT-needing-fixup for a function-call,
right? */
- fatal_insn ("Unidentifiable call op", op);
+ fatal_insn ("unidentifiable call op", op);
*opp = replace_equiv_address (*opp, op);
}
/* Sanity check. */
if (!TARGET_V32 && !crtl->uses_pic_offset_table)
- internal_error ("emitting PIC operand, but PIC register isn't set up");
+ internal_error ("emitting PIC operand, but PIC register "
+ "isn%'t set up");
}
else
assemble_name (file, buf);
MAYBE_AS_NO_MUL_BUG_ABORT \
"%{v:-v}\
%(asm_subtarget)\
- %{march=*:%{cpu=*:%eDo not specify both -march=... and -mcpu=...}}\
+ %{march=*:%{cpu=*:%edo not specify both -march=... and -mcpu=...}}\
%{march=v32:--march=v32} %{mcpu=v32:--march=v32}"
/* For the cris-*-elf subtarget. */
#undef FUNCTION_PROFILER
#define FUNCTION_PROFILER(STREAM, LABELNO) \
{ \
- sorry ("Profiler support for CRX"); \
+ sorry ("profiler support for CRX"); \
}
/*****************************************************************************/
return result;
fail:
- error ("Unknown value %qs of -mmacosx-version-min",
+ error ("unknown value %qs of -mmacosx-version-min",
darwin_macosx_version_min);
return "1000";
}
return;
parse_failed:
- warning (0, "couldn't understand kern.osversion %q.*s",
+ warning (0, "couldn%'t understand kern.osversion %q.*s",
(int) osversion_len, osversion);
return;
}
sz = (sz + pagesize - 1) / pagesize * pagesize;
if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0)
- fatal_error ("couldn't unmap pch_address_space: %m");
+ fatal_error ("couldn%'t unmap pch_address_space: %m");
if (ret)
{
/* Definitions for Intel 386 running FreeBSD with ELF format
- Copyright (C) 1996, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1996, 2000, 2002, 2004, 2007, 2010
+ Free Software Foundation, Inc.
Contributed by Eric Youngdale.
Modified for stabs-in-ELF by H.J. Lu.
Adapted from GNU/Linux version by John Polstra.
#undef LINK_SPEC
#define LINK_SPEC "\
- %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
+ %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
%{v:-V} \
%{assert*} %{R*} %{rpath*} %{defsym*} \
%{shared:-Bshareable %{h*} %{soname*}} \
off_t p = lseek(fd, 0, SEEK_CUR);
if (p == (off_t) -1)
- fatal_error ("can't get position in PCH file: %m");
+ fatal_error ("can%'t get position in PCH file: %m");
/* Cygwin requires that the underlying file be at least
as large as the requested mapping. */
if ((size_t) p < sz)
{
if ( ftruncate (fd, sz) == -1 )
- fatal_error ("can't extend PCH file: %m");
+ fatal_error ("can%'t extend PCH file: %m");
}
base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
munmap (base, sz);
if (lseek (fd, p, SEEK_SET) == (off_t) -1 )
- fatal_error ("can't set position in PCH file: %m");
+ fatal_error ("can%'t set position in PCH file: %m");
return base;
}
error ("bad value (%s) for %stune=%s %s",
ix86_tune_string, prefix, suffix, sw);
else if (!strcmp (ix86_tune_string, "x86-64"))
- warning (OPT_Wdeprecated, "%stune=x86-64%s is deprecated. Use "
- "%stune=k8%s or %stune=generic%s instead as appropriate.",
+ warning (OPT_Wdeprecated, "%stune=x86-64%s is deprecated; use "
+ "%stune=k8%s or %stune=generic%s instead as appropriate",
prefix, suffix, prefix, suffix, prefix, suffix);
}
else
if (!TARGET_64BIT && flag_pic)
{
if (flag_fentry > 0)
- sorry ("-mfentry isn't supported for 32-bit in combination with -fpic");
+ sorry ("-mfentry isn%'t supported for 32-bit in combination "
+ "with -fpic");
flag_fentry = 0;
}
else if (TARGET_SEH)
{
if (flag_fentry == 0)
- sorry ("-mno-fentry isn't compatible with SEH");
+ sorry ("-mno-fentry isn%'t compatible with SEH");
flag_fentry = 1;
}
else if (flag_fentry < 0)
if (warn)
{
if (decl)
- error ("Calling %qD with attribute sseregparm without "
+ error ("calling %qD with attribute sseregparm without "
"SSE/SSE2 enabled", decl);
else
- error ("Calling %qT with attribute sseregparm without "
+ error ("calling %qT with attribute sseregparm without "
"SSE/SSE2 enabled", type);
}
return 0;
{
warned = true;
inform (input_location,
- "The ABI of passing struct with"
+ "the ABI of passing struct with"
" a flexible array member has"
" changed in GCC 4.4");
}
{
warned = true;
inform (input_location,
- "The ABI of passing union with long double"
+ "the ABI of passing union with long double"
" has changed in GCC 4.4");
}
return 0;
{
warned = true;
inform (input_location,
- "The ABI of passing structure with complex float"
+ "the ABI of passing structure with complex float"
" member has changed in GCC 4.4");
}
classes[1] = X86_64_SSESF_CLASS;
/* Check if profiling is active and we shall use profiling before
prologue variant. If so sorry. */
if (crtl->profile && flag_fentry != 0)
- sorry ("ms_hook_prologue attribute isn't compatible "
+ sorry ("ms_hook_prologue attribute isn%'t compatible "
"with -mfentry for 32-bit");
/* In ix86_asm_output_function_label we emitted:
#ifndef CC1_CPU_SPEC
#define CC1_CPU_SPEC_1 "\
%{msse5:-mavx \
-%n'-msse5' was removed.\n}"
+%n'-msse5' was removed\n}"
#ifndef HAVE_LOCAL_CPU_DETECT
#define CC1_CPU_SPEC CC1_CPU_SPEC_1
#undef LINK_SPEC
#define LINK_SPEC "--format:NLM --extensions:GNU" \
- " %{static:%{!nostdlib:%{!nodefaultlib:%eStatic linking is not supported.\n}}}"
+ " %{static:%{!nostdlib:%{!nodefaultlib:%estatic linking is not supported\n}}}"
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC "%L %G"
an error as long as we don't try to import it too. */
&& !DECL_VIRTUAL_P (decl))
error ("definition of static data member %q+D of "
- "dllimport'd class", decl);
+ "dllimport%'d class", decl);
return false;
}
/* Definitions for Intel IA-64 running FreeBSD using the ELF format
- Copyright (C) 2001, 2004, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2004, 2007, 2010 Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
This file is part of GCC.
{ "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
#define LINK_SPEC " \
- %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
+ %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
%{assert*} %{R*} %{rpath*} %{defsym*} \
%{shared:-Bshareable %{h*} %{soname*}} \
%{symbolic:-Bsymbolic} \
-; Copyright (C) 2005, 2006, 2008 Free Software Foundation, Inc.
+; Copyright (C) 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
;
; This file is part of GCC.
;
msched-max-memory-insns-hard-limit
Target Report Var(mflag_sched_mem_insns_hard_limit) Init(0)
-Disallow more than `msched-max-memory-insns' in instruction group. Otherwise, limit is `soft' (prefer non-memory operations when limit is reached)
+Disallow more than 'msched-max-memory-insns' in instruction group. Otherwise, limit is 'soft' (prefer non-memory operations when limit is reached)
msel-sched-dont-check-control-spec
Target Report Var(mflag_sel_sched_dont_check_control_spec) Init(0)
else if (GET_CODE (op) == CONST_DOUBLE)
{
if ((CONST_DOUBLE_LOW (op) != 0) || (CONST_DOUBLE_HIGH (op) != 0))
- output_operand_lossage ("Only 0.0 can be loaded as an immediate");
+ output_operand_lossage ("only 0.0 can be loaded as an immediate");
else
fprintf (file, "0");
}
if (TREE_CODE (*node) == POINTER_TYPE
&& !gave_pointer_note)
{
- inform (input_location, "To describe a pointer to a VLIW function, use syntax like this:");
+ inform (input_location, "to describe a pointer to a VLIW function, use syntax like this:");
inform (input_location, " typedef int (__vliw *vfuncptr) ();");
gave_pointer_note = 1;
}
if (TREE_CODE (*node) == ARRAY_TYPE
&& !gave_array_note)
{
- inform (input_location, "To describe an array of VLIW function pointers, use syntax like this:");
+ inform (input_location, "to describe an array of VLIW function pointers, use syntax like this:");
inform (input_location, " typedef int (__vliw *vfuncptr[]) ();");
gave_array_note = 1;
}
warning (0, "-mno-clearbss is deprecated; use -fno-zero-initialized-in-bss");
break;
case OPT_mxl_stack_check:
- warning (0, "-mxl_stack_check is deprecated; use -fstack-check.");
+ warning (0, "-mxl_stack_check is deprecated; use -fstack-check");
break;
}
return true;
break;
case ADDRESS_INVALID:
case ADDRESS_PLT:
- fatal_insn ("Invalid address", op);
+ fatal_insn ("invalid address", op);
}
}
}
#define LINK_SPEC \
"%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}\
%{!shared:%{p:-L/lib/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{pg:-L/lib/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{!static:%{rdynamic:-E}}}\
-z %{mlinker-opt:-O} %{!shared:-u main}\
#else
#define LINK_SPEC \
"%{!shared:%{p:-L/lib/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{pg:-L/lib/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{!static:%{rdynamic:-E}}}\
-z %{mlinker-opt:-O} %{!shared:-u main}\
#undef LINK_SPEC
#define LINK_SPEC \
"%{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{pg:-L/lib/libp -L/usr/lib/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{!static:%{rdynamic:-E}}}\
-z %{mlinker-opt:-O} %{!shared:-u main -u __gcc_plt_call}\
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GNU_LD)
#define LINK_SPEC \
"%{!shared:%{p:-L/lib/pa20_64/libp -L/usr/lib/pa20_64/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{pg:-L/lib/pa20_64/libp -L/usr/lib/pa20_64/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{!static:%{rdynamic:-E}}}\
%{mhp-ld:+Accept TypeMismatch -z} %{mlinker-opt:-O}\
#else
#define LINK_SPEC \
"%{!shared:%{p:-L/lib/pa20_64/libp -L/usr/lib/pa20_64/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{pg:-L/lib/pa20_64/libp -L/usr/lib/pa20_64/libp %{!static:\
- %nWarning: consider linking with `-static' as system libraries with\n\
+ %nwarning: consider linking with '-static' as system libraries with\n\
%n profiling support are only provided in archive format}}}\
%{!shared:%{!static:%{rdynamic:-E}}}\
%{!mgnu-ld:+Accept TypeMismatch -z} %{mlinker-opt:-O}\
unit ISA options. Any unrecognised AE types will end up being
passed to the compiler, which should reject them as invalid. */
if (picochip_ae_type_string != NULL)
- error ("invalid AE type specified (%s)\n", picochip_ae_type_string);
+ error ("invalid AE type specified (%s)", picochip_ae_type_string);
/* Override any specific capabilities of the instruction set. These
take precedence over any capabilities inferred from the AE type,
else if (strcmp (picochip_mul_type_string, "none") == 0)
{ /* Do nothing. Unit types already set to false. */ }
else
- error ("Invalid mul type specified (%s) - expected mac, mul or none",
+ error ("invalid mul type specified (%s) - expected mac, mul or none",
picochip_mul_type_string);
}
default:
internal_error
- ("unexpected mode %s encountered in picochip_emit_save_register\n",
+ ("unexpected mode %s encountered in picochip_emit_save_register",
GET_MODE_NAME (GET_MODE (reg)));
}
default:
warning
- (0, "Defaulting to stack for %s register creation\n",
+ (0, "defaulting to stack for %s register creation",
GET_MODE_NAME (mode));
break;
}
{
if (picochip_current_vliw_state.num_cfi_labels_deferred == 2)
{
- internal_error ("LCFI labels have already been deferred.");
+ internal_error ("LCFI labels have already been deferred");
}
strcpy (picochip_current_vliw_state.cfi_label_name[
picochip_current_vliw_state.num_cfi_labels_deferred], name);
(strcmp (prefix, "LM")) == 0 && picochip_vliw_continuation)
{
if (strlen (picochip_current_vliw_state.lm_label_name) != 0)
- internal_error ("LM label has already been deferred.");
+ internal_error ("LM label has already been deferred");
sprintf (picochip_current_vliw_state.lm_label_name,
"picoMark_%s%ld", prefix, num);
made to pack it into a VLIW. */
if (strchr (ptr, '\n') != NULL && picochip_vliw_continuation)
internal_error
- ("picochip_asm_output_opcode - Found multiple lines in VLIW packet %s\n",
+ ("picochip_asm_output_opcode - Found multiple lines in VLIW packet %s",
ptr);
}
else if (c == '%')
internal_error
- ("picochip_asm_output_opcode - can't output unknown operator %c\n",
+ ("picochip_asm_output_opcode - can%'t output unknown operator %c",
*ptr);
else
fputc (c, f);
(HImode != GET_MODE (operands[2]) &&
GET_CODE (operands[2]) != CONST_INT))
{
- internal_error ("%s: At least one operand can't be handled",
+ internal_error ("%s: at least one operand can%'t be handled",
__FUNCTION__);
}
(HImode != GET_MODE (operands[2]) &&
GET_CODE (operands[2]) != CONST_INT))
{
- internal_error ("%s: At least one operand can't be handled",
+ internal_error ("%s: at least one operand can%'t be handled",
__FUNCTION__);
}
case GTU:
return ("BLO %l0 %>");
default:
- internal_error ("Unknown short branch in %s (type %d)\n",
+ internal_error ("unknown short branch in %s (type %d)",
__FUNCTION__, (int) INTVAL (operands[1]));
return "UNKNOWN_BRANCH";
}
return ("JMPLO %l0 %>");
default:
- internal_error ("Unknown long branch in %s (type %d)\n",
+ internal_error ("unknown long branch in %s (type %d)",
__FUNCTION__, (int) INTVAL (operands[1]));
return "UNKNOWN_BRANCH";
}
return '1';
default:
- internal_error ("Too many ALU instructions emitted (%d)\n",
+ internal_error ("too many ALU instructions emitted (%d)",
picochip_current_vliw_state.num_alu_insns_so_far);
return 'X';
}
if (TARGET_ALTIVEC)
error ("AltiVec not supported in this target");
if (TARGET_SPE)
- error ("Spe not supported in this target");
+ error ("SPE not supported in this target");
}
/* Disable Cell microcode if we are optimizing for the Cell
if (i == ARRAY_SIZE (recip_options))
{
- error ("Unknown option for -mrecip=%s", q);
+ error ("unknown option for -mrecip=%s", q);
invert = false;
mask = 0;
}
else if (! strcmp (arg, "d64"))
{
rs6000_darwin64_abi = 1;
- warning (0, "Using darwin64 ABI");
+ warning (0, "using darwin64 ABI");
}
else if (! strcmp (arg, "d32"))
{
rs6000_darwin64_abi = 0;
- warning (0, "Using old darwin ABI");
+ warning (0, "using old darwin ABI");
}
else if (! strcmp (arg, "ibmlongdouble"))
{
rs6000_explicit_options.ieee = true;
rs6000_ieeequad = 0;
- warning (0, "Using IBM extended precision long double");
+ warning (0, "using IBM extended precision long double");
}
else if (! strcmp (arg, "ieeelongdouble"))
{
rs6000_explicit_options.ieee = true;
rs6000_ieeequad = 1;
- warning (0, "Using IEEE extended precision long double");
+ warning (0, "using IEEE extended precision long double");
}
else
rs6000_long_double_type_size = RS6000_DEFAULT_LONG_DOUBLE_SIZE;
if (value != 64 && value != 128)
{
- error ("Unknown switch -mlong-double-%s", arg);
+ error ("unknown switch -mlong-double-%s", arg);
rs6000_long_double_type_size = RS6000_DEFAULT_LONG_DOUBLE_SIZE;
return false;
}
{
tree t;
if (rs6000_builtin_decls[code])
- fatal_error ("internal error: builtin function to %s already processed.",
+ fatal_error ("internal error: builtin function to %s already processed",
name);
rs6000_builtin_decls[code] = t =
}
}
else if (DEFAULT_ABI == ABI_DARWIN)
- sorry ("Out-of-line save/restore routines not supported on Darwin");
+ sorry ("out-of-line save/restore routines not supported on Darwin");
sprintf (savres_routine_name, "%s%d%s", prefix, regno, suffix);
#define LINK_START_FREEBSD_SPEC ""
#define LINK_OS_FREEBSD_SPEC "\
- %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
+ %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
%{v:-V} \
%{assert*} %{R*} %{rpath*} %{defsym*} \
%{shared:-Bshareable %{h*} %{soname*}} \
case OPT_fpu:
if (rx_cpu_type == RX200)
- error ("The RX200 cpu does not have FPU hardware");
+ error ("the RX200 cpu does not have FPU hardware");
break;
default:
if (target_flags_explicit & MASK_HARD_DFP)
{
if (!TARGET_CPU_DFP)
- error ("Hardware decimal floating point instructions"
+ error ("hardware decimal floating point instructions"
" not available on %s", s390_arch_string);
if (!TARGET_ZARCH)
- error ("Hardware decimal floating point instructions"
+ error ("hardware decimal floating point instructions"
" not available in ESA/390 mode");
}
else
if ((target_flags_explicit & MASK_SOFT_FLOAT) && TARGET_SOFT_FLOAT)
{
if ((target_flags_explicit & MASK_HARD_DFP) && TARGET_HARD_DFP)
- error ("-mhard-dfp can't be used in conjunction with -msoft-float");
+ error ("-mhard-dfp can%'t be used in conjunction with -msoft-float");
target_flags &= ~MASK_HARD_DFP;
}
break;
}
if (scratch1 == scratch0)
- error ("Need a second call-clobbered general purpose register");
+ error ("need a second call-clobbered general purpose register");
for (i = FIRST_TARGET_REG; i <= LAST_TARGET_REG; i++)
if (call_used_regs[i] && ! fixed_regs[i])
{
break;
}
if (scratch2 == scratch0)
- error ("Need a call-clobbered target register");
+ error ("need a call-clobbered target register");
}
this_value = plus_constant (this_rtx, delta);
/* Routines for GCC for a Symbian OS targeted SH backend, shared by
both the C and C++ compilers.
- Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc.
Contributed by RedHat.
Most of this code is stolen from i386/winnt.c.
{
/* Already done, but do a sanity check to prevent assembler errors. */
if (!DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl))
- error ("failure in redeclaration of %q+D: dllimport'd symbol lacks external linkage",
+ error ("failure in redeclaration of %q+D: dllimport%'d symbol lacks external linkage",
decl);
}
else
/* Routines for C compiler part of GCC for a Symbian OS targeted SH backend.
- Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc.
Contributed by RedHat.
Most of this code is stolen from i386/winnt.c.
&& TREE_PUBLIC (decl)
&& !DECL_EXTERNAL (decl))
{
- error ("definition of static data member %q+D of dllimport'd class",
+ error ("definition of static data member %q+D of dllimport%'d class",
decl);
return false;
}
/* Routines for C++ support for GCC for a Symbian OS targeted SH backend.
- Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc.
Contributed by RedHat.
Most of this code is stolen from i386/winnt.c.
&& !DECL_EXTERNAL (decl))
{
if (!DECL_VIRTUAL_P (decl))
- error ("definition of static data member %q+D of dllimport'd class",
+ error ("definition of static data member %q+D of dllimport%'d class",
decl);
return false;
}
/* Definitions for Sun SPARC64 running FreeBSD using the ELF format
- Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2010
+ Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
This file is part of GCC.
#define LINK_SPEC "%(link_arch) \
%{!mno-relax:%{!r:-relax}} \
- %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
+ %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
%{assert*} %{R*} %{rpath*} %{defsym*} \
%{shared:-Bshareable %{h*} %{soname*}} \
%{symbolic:-Bsymbolic} \
else if (strcmp (&spu_arch_string[0], "celledp") == 0)
spu_arch = PROCESSOR_CELLEDP;
else
- error ("Unknown architecture '%s'", &spu_arch_string[0]);
+ error ("unknown architecture %qs", &spu_arch_string[0]);
}
/* Determine processor to tune for. */
else if (strcmp (&spu_tune_string[0], "celledp") == 0)
spu_tune = PROCESSOR_CELLEDP;
else
- error ("Unknown architecture '%s'", &spu_tune_string[0]);
+ error ("unknown architecture %qs", &spu_tune_string[0]);
}
/* Change defaults according to the processor architecture. */
int range = p - SPU_BTI_7;
if (!CONSTANT_P (op))
- error ("%s expects an integer literal in the range [%d, %d].",
+ error ("%s expects an integer literal in the range [%d, %d]",
d->name,
spu_builtin_range[range].low, spu_builtin_range[range].high);
/* The default for v is 0 which is valid in every range. */
if (v < spu_builtin_range[range].low
|| v > spu_builtin_range[range].high)
- error ("%s expects an integer literal in the range [%d, %d]. ("
- HOST_WIDE_INT_PRINT_DEC ")",
+ error ("%s expects an integer literal in the range [%d, %d]. (%wd)",
d->name,
spu_builtin_range[range].low, spu_builtin_range[range].high,
v);
|| (GET_CODE (op) == SYMBOL_REF
&& SYMBOL_REF_FUNCTION_P (op))
|| (v & ((1 << lsbits) - 1)) != 0)
- warning (0, "%d least significant bits of %s are ignored.", lsbits,
+ warning (0, "%d least significant bits of %s are ignored", lsbits,
d->name);
}
}
if (count <= (TARGET_LONG_CALLS ? 3 : 2))
{
- error ("bogus JARL construction: %d\n", count);
+ error ("bogus JARL construction: %d", count);
return NULL;
}
case VECTOR_TYPE:
if (!tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (expr))))
{
- error ("can't convert between vector values of different size");
+ error ("can%'t convert between vector values of different size");
return error_mark_node;
}
return build1 (VIEW_CONVERT_EXPR, type, expr);
case VECTOR_TYPE:
if (!tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (expr))))
{
- error ("can't convert between vector values of different size");
+ error ("can%'t convert between vector values of different size");
return error_mark_node;
}
return build1 (VIEW_CONVERT_EXPR, type, expr);
default:
- error ("can't convert value to a vector");
+ error ("can%'t convert value to a vector");
return error_mark_node;
}
}
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * cvt.c (cp_convert_to_pointer): Use %' in diagnostic.
+ * decl.c (layout_var_decl, maybe_commonize_var, grokdeclarator):
+ Use %' in diagnostics.
+ * decl2.c (check_classfn): Use %' in diagnostic.
+ * init.c (build_java_class_ref): Use %' in diagnostic.
+ (build_delete): Remove trailing '.' from diagnostic.
+ * method.c (do_build_copy_assign, walk_field_subobs): Use %' in
+ diagnostics.
+ * name-lookup.c (pushdecl_maybe_friend): Use %' in diagnostic.
+ * parser.c (cp_parser_exception_specification_opt): Remove
+ trailing '.' from diagnostic.
+ (cp_parser_objc_interstitial_code): Use %qs for quoting in
+ diagnostic.
+ * pt.c (check_valid_ptrmem_cst_expr): Use %< and %> for quoting in
+ diagnostic.
+ * repo.c (reopen_repo_file_for_write): Use %' in diagnostic.
+
2010-11-10 Nathan Froyd <froydnj@codesourcery.com>
PR c++/46065
intype = complete_type (intype);
if (!COMPLETE_TYPE_P (intype))
{
- error ("can't convert from incomplete type %qT to %qT",
+ error ("can%'t convert from incomplete type %qT to %qT",
intype, type);
return error_mark_node;
}
/* An automatic variable with an incomplete type: that is an error.
Don't talk about array types here, since we took care of that
message in grokdeclarator. */
- error ("storage size of %qD isn't known", decl);
+ error ("storage size of %qD isn%'t known", decl);
TREE_TYPE (decl) = error_mark_node;
}
#if 0
constant_expression_warning (DECL_SIZE (decl));
else
{
- error ("storage size of %qD isn't constant", decl);
+ error ("storage size of %qD isn%'t constant", decl);
TREE_TYPE (decl) = error_mark_node;
}
}
DECL_COMMON (decl) = 0;
warning_at (input_location, 0,
"sorry: semantics of inline function static "
- "data %q+#D are wrong (you'll wind up "
+ "data %q+#D are wrong (you%'ll wind up "
"with multiple copies)", decl);
warning_at (DECL_SOURCE_LOCATION (decl), 0,
" you can work around this by removing "
else if (friendp)
{
if (initialized)
- error ("can't initialize friend function %qs", name);
+ error ("can%'t initialize friend function %qs", name);
if (virtualp)
{
/* Cannot be both friend and virtual. */
if (decl_context == NORMAL)
error ("friend declaration not in class definition");
if (current_function_decl && funcdef_flag)
- error ("can't define friend function %qs in a local "
+ error ("can%'t define friend function %qs in a local "
"class definition",
name);
}
&& !comp_template_parms (template_parms,
DECL_TEMPLATE_PARMS (function)))
{
- error ("template parameter lists provided don't match the "
+ error ("template parameter lists provided don%'t match the "
"template parameters of %qD", function);
return error_mark_node;
}
}
if (!field)
{
- error ("can't find %<class$%> in %qT", type);
+ error ("can%'t find %<class$%> in %qT", type);
return error_mark_node;
}
}
cxx_incomplete_type_diagnostic (addr, type, DK_WARNING);
inform (input_location, "neither the destructor nor the class-specific "
"operator delete will be called, even if they are "
- "declared when the class is defined.");
+ "declared when the class is defined");
}
complete_p = false;
}
if (CP_TYPE_CONST_P (expr_type))
{
- error ("non-static const member %q#D, can't use default "
+ error ("non-static const member %q#D, can%'t use default "
"assignment operator", field);
continue;
}
else if (TREE_CODE (expr_type) == REFERENCE_TYPE)
{
- error ("non-static reference member %q#D, can't use "
+ error ("non-static reference member %q#D, can%'t use "
"default assignment operator", field);
continue;
}
if (CP_TYPE_CONST_P (mem_type) && !CLASS_TYPE_P (mem_type))
{
if (msg)
- error ("non-static const member %q#D, can't use default "
+ error ("non-static const member %q#D, can%'t use default "
"assignment operator", field);
}
else if (TREE_CODE (mem_type) == REFERENCE_TYPE)
{
if (msg)
- error ("non-static reference member %q#D, can't use "
+ error ("non-static reference member %q#D, can%'t use "
"default assignment operator", field);
}
else
/* OK */;
else
{
- warning (0, "extern declaration of %q#D doesn't match", x);
+ warning (0, "extern declaration of %q#D doesn%'t match", x);
warning (0, "global declaration %q+#D", oldglobal);
}
}
/* Enable this once a lot of code has transitioned to noexcept? */
if (cxx_dialect == cxx0x && !in_system_header)
warning (OPT_Wdeprecated, "dynamic exception specifications are "
- "deprecated in C++0x; use %<noexcept%> instead.");
+ "deprecated in C++0x; use %<noexcept%> instead");
#endif
/* Consume the `throw'. */
else if (token->type == CPP_OPEN_BRACE || token->type == CPP_CLOSE_BRACE)
{
cp_lexer_consume_token (parser->lexer);
- error ("stray `%s' between Objective-C++ methods",
+ error ("stray %qs between Objective-C++ methods",
token->type == CPP_OPEN_BRACE ? "{" : "}");
}
/* Finally, try to parse a block-declaration, or a function-definition. */
{
error ("%qE is not a valid template argument for type %qT",
expr, type);
- error ("it must be a pointer-to-member of the form `&X::Y'");
+ error ("it must be a pointer-to-member of the form %<&X::Y%>");
}
return false;
}
if (repo_file == 0)
{
- error ("can't create repository information file %qs", repo_name);
+ error ("can%'t create repository information file %qs", repo_name);
flag_use_repository = 0;
}
{
char *buffer = XALLOCAVEC (char, arg - start + 2);
sprintf (buffer, "%*c", (int)(1 + (arg - start)), '^');
- error ("Can not find a valid counter:value pair:");
+ error ("cannot find a valid counter:value pair:");
error ("-fdbg-cnt=%s", start);
error (" %s", buffer);
}
{
informed_about_misalignment = true;
inform (input_location,
- "When a volatile object spans multiple type-sized locations,"
+ "when a volatile object spans multiple type-sized locations,"
" the compiler must choose between using a single mis-aligned access to"
" preserve the volatility, or using multiple aligned accesses to avoid"
- " runtime faults. This code may fail at runtime if the hardware does"
- " not allow this access.");
+ " runtime faults; this code may fail at runtime if the hardware does"
+ " not allow this access");
}
}
}
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * trans-array.c (gfc_trans_deferred_array): Use "front-end"
+ spelling in diagnostic.
+ * trans.c (gfc_allocate_array_with_status): Add missing space in
+ diagnostic.
+
2010-11-10 Joseph Myers <joseph@codesourcery.com>
* cpp.c (asm_file_name): Don't declare here.
/* Make sure the frontend gets these right. */
if (!(sym->attr.pointer || sym->attr.allocatable || sym_has_alloc_comp))
- fatal_error ("Possible frontend bug: Deferred array size without pointer, "
+ fatal_error ("Possible front-end bug: Deferred array size without pointer, "
"allocatable attribute or derived type without allocatable "
"components.");
else
error = gfc_trans_runtime_error (true, NULL,
"Attempting to allocate already allocated"
- "variable");
+ " variable");
if (status != NULL_TREE && !integer_zerop (status))
{
{
if (fwrite (&ptr, sizeof (void *), 1, state->f)
!= 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
}
else
{
htab_find_with_hash (saving_htab, ptr, POINTER_HASH (ptr));
if (fwrite (&new_ptr->new_addr, sizeof (void *), 1, state->f)
!= 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
}
}
}
for (rt = gt_pch_scalar_rtab; *rt; rt++)
for (rti = *rt; rti->base != NULL; rti++)
if (fwrite (rti->base, rti->stride, 1, f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
/* Write out all the global pointers, after translation. */
write_pch_globals (gt_ggc_rtab, &state);
long o;
o = ftell (state.f) + sizeof (mmi);
if (o == -1)
- fatal_error ("can't get position in PCH file: %m");
+ fatal_error ("can%'t get position in PCH file: %m");
mmi.offset = mmap_offset_alignment - o % mmap_offset_alignment;
if (mmi.offset == mmap_offset_alignment)
mmi.offset = 0;
mmi.offset += o;
}
if (fwrite (&mmi, sizeof (mmi), 1, state.f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
if (mmi.offset != 0
&& fseek (state.f, mmi.offset, SEEK_SET) != 0)
- fatal_error ("can't write padding to PCH file: %m");
+ fatal_error ("can%'t write padding to PCH file: %m");
ggc_pch_prepare_write (state.d, state.f);
for (rt = gt_pch_scalar_rtab; *rt; rt++)
for (rti = *rt; rti->base != NULL; rti++)
if (fread (rti->base, rti->stride, 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
/* Read in all the global pointers, in 6 easy loops. */
for (rt = gt_ggc_rtab; *rt; rt++)
for (i = 0; i < rti->nelt; i++)
if (fread ((char *)rti->base + rti->stride * i,
sizeof (void *), 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
for (rt = gt_pch_cache_rtab; *rt; rt++)
for (rti = *rt; rti->base != NULL; rti++)
for (i = 0; i < rti->nelt; i++)
if (fread ((char *)rti->base + rti->stride * i,
sizeof (void *), 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
if (fread (&mmi, sizeof (mmi), 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
result = host_hooks.gt_pch_use_address (mmi.preferred_base, mmi.size,
fileno (f), mmi.offset);
{
if (fseek (f, mmi.offset, SEEK_SET) != 0
|| fread (mmi.preferred_base, mmi.size, 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
}
else if (fseek (f, mmi.offset + mmi.size, SEEK_SET) != 0)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
ggc_pch_read (f, mmi.preferred_base);
}
if (fwrite (x, size, 1, f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
/* If SIZE is not the same as OBJECT_SIZE(order), then we need to pad the
object out to OBJECT_SIZE(order). This happens for strings. */
if (padding <= sizeof(emptyBytes))
{
if (fwrite (emptyBytes, 1, padding, f) != padding)
- fatal_error ("can't write PCH file");
+ fatal_error ("can%'t write PCH file");
}
else
{
/* Larger than our buffer? Just default to fseek. */
if (fseek (f, padding, SEEK_CUR) != 0)
- fatal_error ("can't write PCH file");
+ fatal_error ("can%'t write PCH file");
}
}
&& fseek (f, ROUND_UP_VALUE (d->d.totals[order] * OBJECT_SIZE (order),
G.pagesize),
SEEK_CUR) != 0)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
}
void
ggc_pch_finish (struct ggc_pch_data *d, FILE *f)
{
if (fwrite (&d->d, sizeof (d->d), 1, f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
free (d);
}
/* Allocate the appropriate page-table entries for the pages read from
the PCH file. */
if (fread (&d, sizeof (d), 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
for (i = 0; i < NUM_ORDERS; i++)
{
size_t size, bool is_string ATTRIBUTE_UNUSED)
{
if (fseek (f, (size_t) newx - d->orig_base + d->start_offset, SEEK_SET) != 0)
- fatal_error ("can't seek PCH file: %m");
+ fatal_error ("can%'t seek PCH file: %m");
if (fwrite (x, size, 1, f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
}
void
{
/* Write out the allocation bitmap. */
if (fseek (f, d->start_offset + d->d.total, SEEK_SET) != 0)
- fatal_error ("can't seek PCH file: %m");
+ fatal_error ("can%'t seek PCH file: %m");
if (fwrite (d->alloc_bits, d->alloc_size, 1, f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
/* Done with the PCH, so write out our footer. */
if (fwrite (&d->d, sizeof (d->d), 1, f) != 1)
- fatal_error ("can't write PCH file: %m");
+ fatal_error ("can%'t write PCH file: %m");
free (d->alloc_bits);
free (d);
char *p;
if (fread (&d, sizeof (d), 1, f) != 1)
- fatal_error ("can't read PCH file: %m");
+ fatal_error ("can%'t read PCH file: %m");
alloc_size = CEIL (d.total, BYTES_PER_ALLOC_BIT * 8);
alloc_size = ROUND_UP (alloc_size, MAX_ALIGNMENT);
/* Output routines for graphical representation.
- Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2007, 2008
+ Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2007, 2008, 2010
Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
fp = fopen (buf, "w");
if (fp == NULL)
- fatal_error ("can't open %s: %m", buf);
+ fatal_error ("can%'t open %s: %m", buf);
gcc_assert (graph_dump_format == vcg);
fputs ("graph: {\nport_sharing: no\n", fp);
if (strcmp (tmp, "SCoP 1"))
{
- error ("The file is not in OpenScop format.\n");
+ error ("the file is not in OpenScop format");
return false;
}
if (strcmp (language, "Gimple"))
{
- error ("The language is not recognized\n");
+ error ("the language is not recognized");
return false;
}
if ((size_t) params != scop->nb_params)
{
- error ("Parameters number in the scop file is different from the"
- " internal scop parameter number.");
+ error ("parameters number in the scop file is different from the"
+ " internal scop parameter number");
return false;
}
if (nb_statements != VEC_length (poly_bb_p, SCOP_BBS (scop)))
{
- error ("Number of statements in the OpenScop file does not match"
- " the graphite internal statements number.");
+ error ("number of statements in the OpenScop file does not match"
+ " the graphite internal statements number");
return false;
}
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * expr.c (expand_java_field_op): Use %' in diagnostic.
+ * jcf-parse.c (java_parse_file): Use %' in diagnostics.
+ * jvspec.c (lang_specific_driver): Use %' in diagnostic.
+ * lang.c (java_post_options): Use %' in diagnostics.
+
2010-11-06 Joern Rennecke <amylaar@spamcop.net>
PR middle-end/46314
if (FIELD_FINAL (field_decl))
{
if (DECL_CONTEXT (field_decl) != current_class)
- error ("assignment to final field %q+D not in field's class",
+ error ("assignment to final field %q+D not in field%'s class",
field_decl);
/* We used to check for assignments to final fields not
occurring in the class initializer or in a constructor
int avail = 2000;
finput = fopen (main_input_filename, "r");
if (finput == NULL)
- fatal_error ("can't open %s: %m", input_filename);
+ fatal_error ("can%'t open %s: %m", input_filename);
list = XNEWVEC (char, avail);
next = list;
for (;;)
/* Close previous descriptor, if any */
if (finput && fclose (finput))
- fatal_error ("can't close input file %s: %m", main_input_filename);
+ fatal_error ("can%'t close input file %s: %m", main_input_filename);
finput = fopen (filename, "rb");
if (finput == NULL)
- fatal_error ("can't open %s: %m", filename);
+ fatal_error ("can%'t open %s: %m", filename);
#ifdef IO_BUFFER_SIZE
setvbuf (finput, xmalloc (IO_BUFFER_SIZE),
}
if (saw_D && ! main_class_name)
- fatal_error ("can't specify %<-D%> without %<--main%>");
+ fatal_error ("can%'t specify %<-D%> without %<--main%>");
if (main_class_name && ! verify_class_name (main_class_name))
fatal_error ("%qs is not a valid class name", main_class_name);
filename = "stdin";
if (dependency_tracking)
- error ("can't do dependency tracking with input from stdin");
+ error ("can%'t do dependency tracking with input from stdin");
}
else
{
{
dot = strrchr (filename, '.');
if (dot == NULL)
- error ("couldn't determine target name for dependency tracking");
+ error ("couldn%'t determine target name for dependency tracking");
else
{
char *buf = XNEWVEC (char, dot - filename +
|| profile_info->sum_all != lto_input_sleb128 (ib)
|| profile_info->run_max != lto_input_sleb128 (ib)
|| profile_info->sum_max != lto_input_sleb128 (ib))
- sorry ("Combining units with different profiles is not supported.");
+ sorry ("combining units with different profiles is not supported");
/* We allow some units to have profile and other to not have one. This will
just make unprofiled units to be size optimized that is sane. */
}
ib = lto_create_simple_input_block (file_data, LTO_section_cgraph,
&data, &len);
if (!ib)
- fatal_error ("Cannot find LTO cgraph in %s\n", file_data->file_name);
+ fatal_error ("cannot find LTO cgraph in %s", file_data->file_name);
input_profile_summary (ib);
file_data->cgraph_node_encoder = lto_cgraph_encoder_new ();
nodes = input_cgraph_1 (file_data, ib);
ib = lto_create_simple_input_block (file_data, LTO_section_varpool,
&data, &len);
if (!ib)
- fatal_error ("Cannot find LTO varpool in %s\n", file_data->file_name);
+ fatal_error ("cannot find LTO varpool in %s", file_data->file_name);
varpool = input_varpool_1 (file_data, ib);
lto_destroy_simple_input_block (file_data, LTO_section_varpool,
ib, data, len);
ib = lto_create_simple_input_block (file_data, LTO_section_refs,
&data, &len);
if (!ib)
- fatal_error("Cannot find LTO section refs in %s\n", file_data->file_name);
+ fatal_error("cannot find LTO section refs in %s", file_data->file_name);
input_refs (ib, nodes, varpool);
lto_destroy_simple_input_block (file_data, LTO_section_refs,
ib, data, len);
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * lto.c (lto_resolution_read): Start diagnostics with lowercase
+ letters and remove trailing '.'.
+ (lto_file_finalize): Start diagnostic with a lowercase letter.
+
2010-11-02 Ian Lance Taylor <iant@google.com>
* lto-object.c: New file.
t = fscanf (resolution, "%u %x %26s %*[^\n]\n", &index, &id, r_str);
if (t != 3)
- internal_error ("Invalid line in the resolution file.");
+ internal_error ("invalid line in the resolution file");
if (index > max_index)
max_index = index;
}
}
if (j == lto_resolution_str_len)
- internal_error ("Invalid resolution in the resolution file.");
+ internal_error ("invalid resolution in the resolution file");
if (!(nd && nd->key == id))
{
nd = splay_tree_lookup (file_ids, id);
if (nd == NULL)
- internal_error ("Resolution sub id %x not in object file", id);
+ internal_error ("resolution sub id %x not in object file", id);
}
file_data = (struct lto_file_decl_data *)nd->value;
data = lto_get_section_data (file_data, LTO_section_decls, NULL, &len);
if (data == NULL)
{
- internal_error ("Cannot read LTO decls from %s", file_data->file_name);
+ internal_error ("cannot read LTO decls from %s", file_data->file_name);
return;
}
lto_read_decls (file_data, data, file_data->resolutions);
+2010-11-10 Joseph Myers <joseph@codesourcery.com>
+
+ * objc-act.c (objc_init): Use %' in diagnostic.
+ (objc_set_method_opt): Remove trailing '.' from diagnostic.
+
2010-11-10 Joseph Myers <joseph@codesourcery.com>
* objc-act.c (dump_base_name): Don't declare here.
register char * const dumpname = concat (dump_base_name, ".decl", NULL);
gen_declaration_file = fopen (dumpname, "w");
if (gen_declaration_file == 0)
- fatal_error ("can't open %s: %m", dumpname);
+ fatal_error ("can%'t open %s: %m", dumpname);
free (dumpname);
}
if (!objc_interface_context
|| TREE_CODE (objc_interface_context) != PROTOCOL_INTERFACE_TYPE)
{
- error ("@optional/@required is allowed in @protocol context only.");
+ error ("@optional/@required is allowed in @protocol context only");
objc_method_optional_flag = false;
}
}
if (!opts->x_flag_unit_at_a_time)
{
if (opts->x_flag_section_anchors && opts_set->x_flag_section_anchors)
- error ("Section anchors must be disabled when unit-at-a-time "
- "is disabled.");
+ error ("section anchors must be disabled when unit-at-a-time "
+ "is disabled");
opts->x_flag_section_anchors = 0;
if (opts->x_flag_toplevel_reorder == 1)
- error ("Toplevel reorder must be disabled when unit-at-a-time "
- "is disabled.");
+ error ("toplevel reorder must be disabled when unit-at-a-time "
+ "is disabled");
opts->x_flag_toplevel_reorder = 0;
}
{
if (opts->x_flag_lto_partition_balanced
&& opts->x_flag_lto_partition_1to1)
- error ("Only one -flto-partitoin value can be specified");
+ error ("only one -flto-partition value can be specified");
if (!opts->x_flag_whopr && !opts->x_flag_wpa && !opts->x_flag_ltrans)
error ("-flto-partition has no effect without -fwhopr");
}
#ifdef ENABLE_PLUGIN
add_new_plugin (arg);
#else
- error ("Plugin support is disabled. Configure with --enable-plugin.");
+ error ("plugin support is disabled; configure with --enable-plugin");
#endif
break;
#ifdef ENABLE_PLUGIN
parse_plugin_arg_opt (arg);
#else
- error ("Plugin support is disabled. Configure with --enable-plugin.");
+ error ("plugin support is disabled; configure with --enable-plugin");
#endif
break;
pass = new_pass;
break;
default:
- error ("Invalid pass positioning operation");
+ error ("invalid pass positioning operation");
return false;
}
{
plugin = (struct plugin_name_args *) *slot;
if (strcmp (plugin->full_name, plugin_name))
- error ("Plugin %s was specified with different paths:\n%s\n%s",
+ error ("plugin %s was specified with different paths:\n%s\n%s",
plugin->base_name, plugin->full_name, plugin_name);
return;
}
{
if (key_parsed)
{
- error ("Malformed option -fplugin-arg-%s (multiple '=' signs)",
+ error ("malformed option -fplugin-arg-%s (multiple '=' signs)",
arg);
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. */
default:
if (event < PLUGIN_EVENT_FIRST_DYNAMIC || event >= event_last)
{
- error ("Unknown callback event registered by plugin %s",
+ error ("unknown callback event registered by plugin %s",
plugin_name);
return;
}
struct callback_info *new_callback;
if (!callback)
{
- error ("Plugin %s registered a null callback function "
+ error ("plugin %s registered a null callback function "
"for event %s", plugin_name, plugin_event_name[event]);
return;
}
dl_handle = dlopen (plugin->full_name, RTLD_NOW | RTLD_GLOBAL);
if (!dl_handle)
{
- error ("Cannot load plugin %s\n%s", plugin->full_name, dlerror ());
+ error ("cannot load plugin %s\n%s", plugin->full_name, dlerror ());
return false;
}
if ((err = dlerror ()) != NULL)
{
- error ("Cannot find %s in plugin %s\n%s", str_plugin_init_func_name,
+ error ("cannot find %s in plugin %s\n%s", str_plugin_init_func_name,
plugin->full_name, err);
return false;
}
/* Call the plugin-provided initialization routine with the arguments. */
if ((*plugin_init) (plugin, &gcc_version))
{
- error ("Fail to initialize plugin %s", plugin->full_name);
+ error ("fail to initialize plugin %s", plugin->full_name);
return false;
}
spill_failure (rtx insn, enum reg_class rclass)
{
if (asm_noperands (PATTERN (insn)) >= 0)
- error_for_asm (insn, "can't find a register in class %qs while "
+ error_for_asm (insn, "can%'t find a register in class %qs while "
"reloading %<asm%>",
reg_class_names[rclass]);
else
return insn;
}
- fatal_insn ("Failure trying to reload:", set);
+ fatal_insn ("failure trying to reload:", set);
}
/* If IN is a simple operand, use gen_move_insn. */
else if (OBJECT_P (in) || GET_CODE (in) == SUBREG)
if (warn_packed_bitfield_compat == 1)
inform
(input_location,
- "Offset of packed bit-field %qD has changed in GCC 4.4",
+ "offset of packed bit-field %qD has changed in GCC 4.4",
field);
}
else
filename = concat (aux_base_name, ".", ext, NULL);
file = fopen (filename, "w");
if (!file)
- fatal_error ("can't open %s for writing: %m", filename);
+ fatal_error ("can%'t open %s for writing: %m", filename);
free (filename);
return file;
}
if (!POINTER_TYPE_P (TREE_TYPE (x))
|| !is_gimple_mem_ref_addr (x))
{
- error ("Invalid first operand of MEM_REF.");
+ error ("invalid first operand of MEM_REF");
return x;
}
if (TREE_CODE (TREE_OPERAND (t, 1)) != INTEGER_CST
|| !POINTER_TYPE_P (TREE_TYPE (TREE_OPERAND (t, 1))))
{
- error ("Invalid offset operand of MEM_REF.");
+ error ("invalid offset operand of MEM_REF");
return TREE_OPERAND (t, 1);
}
if (TREE_CODE (x) == ADDR_EXPR
break;
case MODIFY_EXPR:
- error ("MODIFY_EXPR not expected while having tuples.");
+ error ("MODIFY_EXPR not expected while having tuples");
return *tp;
case ADDR_EXPR:
TREE_TYPE (TREE_OPERAND (t, 1))))
{
error ("invalid operand to pointer plus, second operand is not an "
- "integer with type of sizetype.");
+ "integer with type of sizetype");
return t;
}
/* FALLTHROUGH */
&& (TREE_CODE (op) == SSA_NAME
|| is_gimple_min_invariant (op)))
{
- error ("Conversion of an SSA_NAME on the left hand side.");
+ error ("conversion of an SSA_NAME on the left hand side");
debug_generic_stmt (expr);
return true;
}
else if (TREE_CODE (op) == SSA_NAME
&& TYPE_SIZE (TREE_TYPE (expr)) != TYPE_SIZE (TREE_TYPE (op)))
{
- error ("Conversion of register to a different size.");
+ error ("conversion of register to a different size");
debug_generic_stmt (expr);
return true;
}
{
if (!is_gimple_mem_ref_addr (TREE_OPERAND (expr, 0)))
{
- error ("Invalid address operand in MEM_REF.");
+ error ("invalid address operand in MEM_REF");
debug_generic_stmt (expr);
return true;
}
if (TREE_CODE (TREE_OPERAND (expr, 1)) != INTEGER_CST
|| !POINTER_TYPE_P (TREE_TYPE (TREE_OPERAND (expr, 1))))
{
- error ("Invalid offset operand in MEM_REF.");
+ error ("invalid offset operand in MEM_REF");
debug_generic_stmt (expr);
return true;
}
if (!TMR_BASE (expr)
|| !is_gimple_mem_ref_addr (TMR_BASE (expr)))
{
- error ("Invalid address operand in in TARGET_MEM_REF.");
+ error ("invalid address operand in in TARGET_MEM_REF");
return true;
}
if (!TMR_OFFSET (expr)
|| TREE_CODE (TMR_OFFSET (expr)) != INTEGER_CST
|| !POINTER_TYPE_P (TREE_TYPE (TMR_OFFSET (expr))))
{
- error ("Invalid offset operand in TARGET_MEM_REF.");
+ error ("invalid offset operand in TARGET_MEM_REF");
debug_generic_stmt (expr);
return true;
}
if (!DECL_STATIC_CHAIN (fn))
{
- error ("static chain with function that doesn't use one");
+ error ("static chain with function that doesn%'t use one");
return true;
}
}
if (TREE_CODE (gimple_phi_result (stmt)) != SSA_NAME)
{
- error ("Invalid PHI result");
+ error ("invalid PHI result");
return true;
}
|| (!is_gimple_reg (gimple_phi_result (stmt))
&& !is_gimple_addressable (arg)))
{
- error ("Invalid PHI argument");
+ error ("invalid PHI argument");
debug_generic_stmt (arg);
return true;
}
if (!useless_type_conversion_p (type, TREE_TYPE (arg)))
{
- error ("Incompatible types in PHI argument %u", i);
+ error ("incompatible types in PHI argument %u", i);
debug_generic_stmt (type);
debug_generic_stmt (TREE_TYPE (arg));
return true;
if (!pointer_set_contains (visited, node->stmt))
{
- error ("Dead STMT in EH table");
+ error ("dead STMT in EH table");
debug_gimple_stmt (node->stmt);
eh_error_found = true;
}
if (TREE_CODE (SSA_NAME_VAR (ssa_name)) == RESULT_DECL
&& DECL_BY_REFERENCE (SSA_NAME_VAR (ssa_name)))
{
- error ("RESULT_DECL should be read only when DECL_BY_REFERENCE is set.");
+ error ("RESULT_DECL should be read only when DECL_BY_REFERENCE is set");
goto err;
}
op = gimple_op (stmt, i);
if (op && TREE_CODE (op) == SSA_NAME && --count < 0)
{
- error ("nr of operands and imm-links don't agree");
- error ("in statement");
+ error ("number of operands and imm-links don%'t agree"
+ " in statement");
print_gimple_stmt (stderr, stmt, 0, TDF_VOPS|TDF_MEMSYMS);
goto err;
}
histogram_value hist = *(histogram_value *) slot;
if (!pointer_set_contains (visited, hist))
{
- error ("Dead histogram");
+ error ("dead histogram");
dump_histogram_value (stderr, hist);
debug_gimple_stmt (hist->hvalue.stmt);
error_found = true;
: DECL_SOURCE_LOCATION (current_function_decl);
if (flag_profile_correction)
{
- inform (locus, "Correcting inconsistent value profile: "
+ inform (locus, "correcting inconsistent value profile: "
"%s profiler overall count (%d) does not match BB count "
"(%d)", name, (int)*all, (int)bb_count);
*all = bb_count;
}
else
{
- error_at (locus, "Corrupted value profile: %s "
+ error_at (locus, "corrupted value profile: %s "
"profiler overall count (%d) does not match BB count (%d)",
name, (int)*all, (int)bb_count);
return true;