* c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Dec 2001 18:42:49 +0000 (18:42 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Dec 2001 18:42:49 +0000 (18:42 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47517 138bc75d-0d04-0410-961f-82ee72b054a4

33 files changed:
gcc/ChangeLog
gcc/c-decl.c
gcc/c-lex.c
gcc/c-parse.in
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/lex.c
gcc/cp/typeck2.c
gcc/cppmacro.c
gcc/gcc.c
gcc/genattr.c
gcc/genattrtab.c
gcc/gencodes.c
gcc/genconfig.c
gcc/genconstants.c
gcc/genemit.c
gcc/genextract.c
gcc/genflags.c
gcc/genopinit.c
gcc/genoutput.c
gcc/genpeep.c
gcc/genrecog.c
gcc/java/ChangeLog
gcc/java/expr.c
gcc/java/jcf-parse.c
gcc/java/jcf-write.c
gcc/java/lex.c
gcc/mips-tfile.c
gcc/profile.c
gcc/reload1.c
gcc/stmt.c
gcc/varasm.c

index 86821ff..fe9fc31 100644 (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.
index 04b9750..63b2680 100644 (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;
        }
     }
index 3867ef2..d207833 100644 (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 ? '}' : '{');
        }
index 6e79751..c67d244 100644 (file)
@@ -3772,7 +3772,7 @@ c_set_yydebug (value)
 #if YYDEBUG != 0
   yydebug = value;
 #else
-  warning ("YYDEBUG not defined.");
+  warning ("YYDEBUG not defined");
 #endif
 }
 
index be25153..4d66a5d 100644 (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
index e843c32..736273b 100644 (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)
     {
index 9f4d82d..c10a0c7 100644 (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.  */;
index ba93ca5..1a748a5 100644 (file)
@@ -905,7 +905,7 @@ cxx_set_yydebug (value)
   extern int yydebug;
   yydebug = value;
 #else
-  warning ("YYDEBUG not defined.");
+  warning ("YYDEBUG not defined");
 #endif
 }
 
index 37252ee..03d8f2d 100644 (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;
index 21d3cb1..d6f021b 100644 (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;
            }
index b83557d..7b3a85e 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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);
index 4f9c712..03b0b1f 100644 (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);
index 1c75b2d..d2c91fc 100644 (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);
index 89d4b75..d5d5c4b 100644 (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);
index 01107ff..2dc0459 100644 (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);
index 1e58a78..9043cae 100644 (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);
index 7510719..605e84b 100644 (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);
index ae77ac9..79e8755 100644 (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);
index 4bf0511..1942ab9 100644 (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);
index dc422d7..760b835 100644 (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);
index 73911ae..5332277 100644 (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);
index 05c156a..2d81ada 100644 (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);
index fe1a42b..e721e41 100644 (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);
index d84e110..1c0f009 100644 (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.
index cf9bef4..182d247 100644 (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);
     }
 }
index ec76e81..b52d7b1 100644 (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,
index 2d3e333..1b9ff7b 100644 (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");
index 779bbcb..38e1716 100644 (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++;
        }
 
index 9b2234a..70f580a 100644 (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");
 }
 \f
 
index 1aea559..caad5df 100644 (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
index 1f20a48..a14e963 100644 (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);
     }
index 2615df0..2b176bb 100644 (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 '%':
index 9737518..875430f 100644 (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);