c-decl.c (duplicate_decls, [...]): Remove trailing period from diagnostics.

* c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
	trailing period from diagnostics.
	* c-lex.c (cb_file_change): Similarly.
	* cppmacro.c (check_trad_stringification): Similarly.
	* gcc.c (do_spec_1): Similarly.
	* genattr.c (main): Similarly.
	* genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
	* gencodes.c (main): Similarly.
	* genconfig.c (main): Similarly.
	* genconstants.c (main): Similarly.
	* genemit.c (main): Similarly.
	* genextract.c (main): Similarly.
	* genopinit.c (main): Similarly.
	* genoutput.c (main): Similarly.
	* genpeep.c (main): Similarly.
	* genrecog.c (main): Similarly.
	* mips-tfile.c (add_file, error): Similarly.
	* profile.c (init_branch_prob): Similarly.
	* reload1.c (spill_failure): Similarly.
	* stmt.c (parse_output_constraint): Similarly.
	* varasm.c (assemble_variable): Similarly.
cp:
	* class.c (finish_struct): Similarly.
	* decl.c (check_tag_decl): Similarly.
	* lex.c (cxx_set_yydebug): Similarly.
	* typeck2.c (friendly_abort): Similarly.
java:
	* expr.c (expand_byte_code): Similarly.
	* jcf-parse.c (load_class, jcf_parse): Similarly.
	* jcf-write.c (generate_classfile): Similarly.
	* lex.c (java_lex): Similarly.

From-SVN: r47517
This commit is contained in:
Neil Booth 2001-12-01 18:42:49 +00:00 committed by Neil Booth
parent 2203610302
commit 357351e5a7
33 changed files with 79 additions and 41 deletions

View File

@ -1,3 +1,27 @@
2001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
* c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
trailing period from diagnostics.
* c-lex.c (cb_file_change): Similarly.
* cppmacro.c (check_trad_stringification): Similarly.
* gcc.c (do_spec_1): Similarly.
* genattr.c (main): Similarly.
* genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
* gencodes.c (main): Similarly.
* genconfig.c (main): Similarly.
* genconstants.c (main): Similarly.
* genemit.c (main): Similarly.
* genextract.c (main): Similarly.
* genopinit.c (main): Similarly.
* genoutput.c (main): Similarly.
* genpeep.c (main): Similarly.
* genrecog.c (main): Similarly.
* mips-tfile.c (add_file, error): Similarly.
* profile.c (init_branch_prob): Similarly.
* reload1.c (spill_failure): Similarly.
* stmt.c (parse_output_constraint): Similarly.
* varasm.c (assemble_variable): Similarly.
2001-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* m68k.c (init_FPA_table): Provide static prototype.

View File

@ -1621,13 +1621,13 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
if (TREE_CHAIN (t) == 0
&& TYPE_MAIN_VARIANT (type) != void_type_node)
{
error ("A parameter list with an ellipsis can't match an empty parameter name list declaration.");
error ("A parameter list with an ellipsis can't match an empty parameter name list declaration");
break;
}
if (simple_type_promotes_to (type) != NULL_TREE)
{
error ("An argument type that has a default promotion can't match an empty parameter name list declaration.");
error ("An argument type that has a default promotion can't match an empty parameter name list declaration");
break;
}
}
@ -5300,7 +5300,7 @@ parmlist_tags_warning ()
}
if (! already)
{
warning ("its scope is only this definition or declaration, which is probably not what you want.");
warning ("its scope is only this definition or declaration, which is probably not what you want");
already = 1;
}
}

View File

@ -297,7 +297,7 @@ cb_file_change (pfile, new_map)
{
warning_with_file_and_line
(input_filename, lineno,
"This file contains more '%c's than '%c's.",
"This file contains more '%c's than '%c's",
indent_level > input_file_stack->indent_level ? '{' : '}',
indent_level > input_file_stack->indent_level ? '}' : '{');
}

View File

@ -3772,7 +3772,7 @@ c_set_yydebug (value)
#if YYDEBUG != 0
yydebug = value;
#else
warning ("YYDEBUG not defined.");
warning ("YYDEBUG not defined");
#endif
}

View File

@ -1,3 +1,10 @@
2001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
* class.c (finish_struct): Remove trailing periods from messages.
* decl.c (check_tag_decl): Similarly.
* lex.c (cxx_set_yydebug): Similarly.
* typeck2.c (friendly_abort): Similarly.
2001-11-29 Mark Mitchell <mark@codesourcery.com>
PR c++/3048

View File

@ -5258,7 +5258,7 @@ finish_struct (t, attributes)
if (current_class_type)
popclass ();
else
error ("trying to finish struct, but kicked out due to previous parse errors.");
error ("trying to finish struct, but kicked out due to previous parse errors");
if (processing_template_decl)
{

View File

@ -7054,7 +7054,7 @@ check_tag_decl (declspecs)
--end example] */
if (saw_typedef)
{
error ("Missing type-name in typedef-declaration.");
error ("missing type-name in typedef-declaration");
return NULL_TREE;
}
/* Anonymous unions are objects, so they can have specifiers. */;

View File

@ -905,7 +905,7 @@ cxx_set_yydebug (value)
extern int yydebug;
yydebug = value;
#else
warning ("YYDEBUG not defined.");
warning ("YYDEBUG not defined");
#endif
}

View File

@ -267,7 +267,7 @@ friendly_abort (where, file, line, func)
/* Say nothing. */;
else if (where > 0)
{
error ("Internal error #%d.", where);
error ("Internal error #%d", where);
/* Uncount this error, so internal_error will do the right thing. */
--errorcount;

View File

@ -1480,7 +1480,7 @@ check_trad_stringification (pfile, macro, string)
&& !memcmp (p, NODE_NAME (node), len))
{
cpp_warning (pfile,
"macro argument \"%s\" would be stringified with -traditional.",
"macro argument \"%s\" would be stringified with -traditional",
NODE_NAME (node));
break;
}

View File

@ -4255,7 +4255,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
switch (c = *p++)
{
case 0:
fatal ("Invalid specification! Bug in cc.");
fatal ("Invalid specification! Bug in cc");
case 'b':
obstack_grow (&obstack, input_basename, basename_length);

View File

@ -208,7 +208,7 @@ main (argc, argv)
progname = "genattr";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);
@ -297,7 +297,7 @@ main (argc, argv)
}
else if (unit->multiplicity != multiplicity
|| unit->simultaneity != simultaneity)
fatal ("Differing specifications given for `%s' function unit.",
fatal ("Differing specifications given for `%s' function unit",
unit->name);
extend_range (&unit->ready_cost, ready_cost, ready_cost);

View File

@ -1438,7 +1438,7 @@ make_canonical (attr, exp)
if (! strcmp (XSTR (exp, 0), "*"))
{
if (attr == 0 || attr->default_val == 0)
fatal ("(attr_value \"*\") used in invalid context.");
fatal ("(attr_value \"*\") used in invalid context");
exp = attr->default_val->value;
}
@ -1827,7 +1827,7 @@ operate_exp (op, left, right)
}
else
fatal ("Badly formed attribute value.");
fatal ("Badly formed attribute value");
/* NOTREACHED */
return NULL;
}
@ -2454,7 +2454,7 @@ make_length_attrs ()
return;
if (! length_attr->is_numeric)
fatal ("length attribute must be numeric.");
fatal ("length attribute must be numeric");
length_attr->is_const = 0;
length_attr->is_special = 1;
@ -6065,7 +6065,7 @@ main (argc, argv)
progname = "genattrtab";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -54,7 +54,7 @@ main (argc, argv)
progname = "gencodes";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -275,7 +275,7 @@ main (argc, argv)
progname = "genconfig";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -61,7 +61,7 @@ main (argc, argv)
progname = "genconstants";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader (argv[1]) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -787,7 +787,7 @@ main (argc, argv)
progname = "genemit";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -360,7 +360,7 @@ main (argc, argv)
progname = "genextract";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -228,7 +228,7 @@ main (argc, argv)
obstack_init (&obstack);
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -317,7 +317,7 @@ main (argc, argv)
progname = "genopinit";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -951,7 +951,7 @@ main (argc, argv)
progname = "genoutput";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -383,7 +383,7 @@ main (argc, argv)
progname = "genpeep";
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -2687,7 +2687,7 @@ main (argc, argv)
memset (&peephole2_tree, 0, sizeof peephole2_tree);
if (argc <= 1)
fatal ("No input file name.");
fatal ("No input file name");
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);

View File

@ -1,3 +1,10 @@
2001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
* expr.c (expand_byte_code): Remove trailing periods from messages.
* jcf-parse.c (load_class, jcf_parse): Similarly.
* jcf-write.c (generate_classfile): Similarly.
* lex.c (java_lex): Similarly.
2001-11-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* class.c (add_interface_do): Set BINFO_VPTR_FIELD.

View File

@ -2747,7 +2747,7 @@ expand_byte_code (jcf, method)
if (dead_code_index != -1)
{
/* We've just reached the end of a region of dead code. */
warning ("Unreachable bytecode from %d to before %d.",
warning ("Unreachable bytecode from %d to before %d",
dead_code_index, PC);
dead_code_index = -1;
}
@ -2784,7 +2784,7 @@ expand_byte_code (jcf, method)
if (dead_code_index != -1)
{
/* We've just reached the end of a region of dead code. */
warning ("Unreachable bytecode from %d to the end of the method.",
warning ("Unreachable bytecode from %d to the end of the method",
dead_code_index);
}
}

View File

@ -682,7 +682,7 @@ load_class (class_or_name, verbose)
}
if (!class_loaded && verbose)
error ("Cannot find file for class %s.", IDENTIFIER_POINTER (saved));
error ("Cannot find file for class %s", IDENTIFIER_POINTER (saved));
}
/* Parse the .class file JCF. */
@ -750,7 +750,7 @@ jcf_parse (jcf)
-fforce-classes-archive-check was specified. */
if (!jcf->right_zip
&& (!flag_emit_class_files || flag_force_classes_archive_check))
fatal_error ("The `java.lang.Object' that was found in `%s' didn't have the special zero-length `gnu.gcj.gcj-compiled' attribute. This generally means that your classpath is incorrect set. Use `info gcj \"Input Options\"' to see the info page describing how to set the classpath.", jcf->filename);
fatal_error ("The `java.lang.Object' that was found in `%s' didn't have the special zero-length `gnu.gcj.gcj-compiled' attribute. This generally means that your classpath is incorrectly set. Use `info gcj \"Input Options\"' to see the info page describing how to set the classpath.", jcf->filename);
}
else
all_class_list = tree_cons (NULL_TREE,

View File

@ -2952,7 +2952,7 @@ generate_classfile (clas, state)
tree init = DECL_INITIAL (part);
static tree ConstantValue_node = NULL_TREE;
if (TREE_TYPE (part) != TREE_TYPE (init))
fatal_error ("field initializer type mismatch.");
fatal_error ("field initializer type mismatch");
ptr = append_chunk (NULL, 8, state);
if (ConstantValue_node == NULL_TREE)
ConstantValue_node = get_identifier ("ConstantValue");

View File

@ -1312,7 +1312,7 @@ java_lex (java_lval)
if (c == '\n' || c == UEOF) /* ULT */
{
lineno--; /* Refer to the line the terminator was seen */
java_lex_error ("String not terminated at end of line.", 0);
java_lex_error ("String not terminated at end of line", 0);
lineno++;
}

View File

@ -2526,7 +2526,7 @@ add_file (file_start, file_end_p1)
(shash_t **) 0);
if (file_end_p1 - file_start > (long) PAGE_USIZE-2)
fatal ("Filename goes over one page boundary.");
fatal ("Filename goes over one page boundary");
/* Push the start of the filename. We assume that the filename
will be stored at string offset 1. */
@ -5608,7 +5608,7 @@ error VPARAMS ((const char *format, ...))
void
fancy_abort ()
{
fatal ("Internal abort.");
fatal ("Internal abort");
}

View File

@ -972,7 +972,7 @@ init_branch_prob (filename)
strip_off_ending (da_file_name, len);
strcat (da_file_name, ".da");
if ((da_file = fopen (da_file_name, "rb")) == 0)
warning ("file %s not found, execution counts assumed to be zero.",
warning ("file %s not found, execution counts assumed to be zero",
da_file_name);
/* The first word in the .da file gives the number of instrumented

View File

@ -1888,11 +1888,11 @@ spill_failure (insn, class)
{
static const char *const reg_class_names[] = REG_CLASS_NAMES;
if (asm_noperands (PATTERN (insn)) >= 0)
error_for_asm (insn, "Can't find a register in class `%s' while reloading `asm'.",
error_for_asm (insn, "Can't find a register in class `%s' while reloading `asm'",
reg_class_names[class]);
else
{
error ("Unable to find a register to spill in class `%s'.",
error ("Unable to find a register to spill in class `%s'",
reg_class_names[class]);
fatal_insn ("This is the insn:", insn);
}

View File

@ -1390,7 +1390,7 @@ parse_output_constraint (constraint_p,
{
case '+':
case '=':
error ("operand constraint contains '+' or '=' at illegal position.");
error ("operand constraint contains incorrectly positioned '+' or '='");
return false;
case '%':

View File

@ -1597,7 +1597,7 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
if (align > MAX_OFILE_ALIGNMENT)
{
warning_with_decl (decl,
"alignment of `%s' is greater than maximum object file alignment. Using %d.",
"alignment of `%s' is greater than maximum object file alignment. Using %d",
MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
align = MAX_OFILE_ALIGNMENT;
}
@ -1648,7 +1648,7 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
#if !defined(ASM_OUTPUT_ALIGNED_COMMON) && !defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) && !defined(ASM_OUTPUT_ALIGNED_BSS)
if ((unsigned HOST_WIDE_INT) DECL_ALIGN (decl) / BITS_PER_UNIT > rounded)
warning_with_decl
(decl, "requested alignment for %s is greater than implemented alignment of %d.",rounded);
(decl, "requested alignment for %s is greater than implemented alignment of %d",rounded);
#endif
asm_emit_uninitialised (decl, name, size, rounded);