]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-decl.c (duplicate_decls, [...]): Remove trailing period from diagnostics.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sat, 1 Dec 2001 18:42:49 +0000 (18:42 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 1 Dec 2001 18:42:49 +0000 (18:42 +0000)
* 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

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 86821ff516e73423fa66446accec189c2098a204..fe9fc31dd152824ad046d5f50becf74fa6777282 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 04b975023ae42ae33b31b7e54d14534141bdfa24..63b2680f308022de7dea08b5232b474270db3aa1 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 3867ef2069ee4c1a8a68364ff94a182193e6906a..d207833a7c970223c194e7e183fb23d274b810cf 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 6e797511e7d0ae8f0c10da147f0abfa0ec168e33..c67d24429178ac120695dc96ffdd746c47146446 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 be2515372f897ae7effde8ebf96d9896e34685f1..4d66a5db7a57ceba0c9d5c62dbc1a00288dd1ec4 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 e843c32b4585b341bbb285c7ecb7c0cf267e0cb8..736273b8c96e2252d4a7ed8c1c993b33f1fd0355 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 9f4d82d8bd630d4ed51c8c3a6ba092c1a1b86aa7..c10a0c7c1c70f900a110a35d9621e7aa0de114be 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 ba93ca5f5faaee73bc34c5231ed5ae4aed16305e..1a748a513ba8312b11d81b80577f9ef79d296c15 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 37252ee0bbe1999daeba57b307ff02b7cc8d82b3..03d8f2df1a5008594bdaa62401afd7d7d8dbfed0 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 21d3cb1296b5224dda7b3ae73ed13d8b9e404708..d6f021b67b59e52f04d2927be2100d540b138e99 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 b83557d4ac8b61cf500d2a98e741ee718ba35086..7b3a85e89bd56517cd59408ec4331ebc3629383f 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 4f9c712b6091100d0e1215be29a507217888a24d..03b0b1f5668e7765686122423e9977a832b69930 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 1c75b2d21cc86ab312b085d50dcae2b8a495018c..d2c91fcf0c117f8c57efc324aab0d595a5b2b1bd 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 89d4b75ef19d00fdc0dc18f1e10fd0e683b2872f..d5d5c4bfda95efce63e179accc38638f15835997 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 01107ff7eb3789a0d468f8d56b604c40dcbb7c60..2dc045955386b2b92fdc8bc4adc198009c9a4ae8 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 1e58a785aae3c48d826a5c0756799893e6470a01..9043caea569337df707d30019367b844cc566b2f 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 751071949ac9d6ebf106523b21b616c15dde4f43..605e84b536b7b6f3659eeb8090b87467395384d4 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 ae77ac9ba7babbd938776adb6e10d6f8b9e7f55d..79e87552e932a6b35de5a9a19ec55eacee20bc26 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 4bf05111b371bad92fef0bfd69713d8d4de0cc10..1942ab9cfcc8334572c621d49236ce3248f37d06 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 dc422d762d40ae9ac8211c2ae8b62d4d83bdecc2..760b8353d11e0317c016b221bd8539fa44fcafd1 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 73911aeec0f992ec0b0e5e08bfdde6c5ad9aac09..53322776c1f92b43bdf07a0030b499ca62c290a1 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 05c156a2f853f1bf0d9d813deebcd2452a5bd6d4..2d81ada942a7b07fa938a97e4477f34a53b9b7bb 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 fe1a42bbc5425ff40959978a0271e9c49b2ea378..e721e41e100ff24858e31f299b5e4dfff3abe834 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 d84e110e09e901014a635d2351939bd8d66d66e8..1c0f009f8c0bf4cd492e248b385339615e0450ec 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 cf9bef46bf37ab3c7c287e268b917bbdbd3bd7a5..182d247f8903a476996be5cc91c3d445765eea3a 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 ec76e81ae12f312eab3f772be01f2346baea977b..b52d7b1fdbec143c8a31ab76fcba4ad07919d5c8 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 2d3e333100faebc6541631b9b92747a85948c769..1b9ff7ba7eb210434b7b69dd7dc0c0277a69d181 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 779bbcbd3827aee84835489e87cf07ca423c469e..38e1716f2631b2d69a5c2db71f7c0fad4c3ed48b 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 9b2234a2e34d984109fe7934298b1e3e79dec050..70f580a76b70e0723d64703d62fb46e0138fb685 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 1aea55969bd0ec2d65baa6f7f3f07ea2936ed238..caad5df588a94c240399e05960aca1b1e3cfcaca 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 1f20a489f62e477bdbd5e987040e2ab94322da8d..a14e963b7597365a4efcda60d7c3d1fd398185cb 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 2615df09a2431ddd0250390c96b5ec819290ee34..2b176bb9e9a58b90d2d59b85a774481a51186fc5 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 9737518e8aae893847f9d5c9f04ee870938a4050..875430f7fc0ba3d4b88fd3d524624957ad98bf18 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);