]> gcc.gnu.org Git - gcc.git/commitdiff
lex.c (whitespace_cr): Compress consecutive calls to warning().
authorGabriel Dos Reis <gdr@codesourcery.com>
Sun, 12 Mar 2000 17:19:22 +0000 (17:19 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 12 Mar 2000 17:19:22 +0000 (17:19 +0000)
2000-03-11  Gabriel Dos Reis  <gdr@codesourcery.com>

        * lex.c (whitespace_cr): Compress consecutive calls to warning().
        (do_identifier): Ditto for error().

        * pt.c (convert_nontype_argument): Ditto for cp_error().
        (convert_template_argument): Ditto for cp_pedwarn().

From-SVN: r32492

gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/cp/parse.c
gcc/cp/pt.c

index f495735965a054953ac8a52852eaf0787ea280ef..37be27878c642a81e4cf3475e752ce4b8619c9eb 100644 (file)
@@ -1,3 +1,11 @@
+2000-03-11  Gabriel Dos Reis  <gdr@codesourcery.com>
+
+       * lex.c (whitespace_cr): Compress consecutive calls to warning().
+       (do_identifier): Ditto for error().
+
+       * pt.c (convert_nontype_argument): Ditto for cp_error().
+       (convert_template_argument): Ditto for cp_pedwarn().
+
 2000-03-11  Jason Merrill  <jason@casey.cygnus.com>
 
        * exception.cc (__check_null_eh_spec): New fn.
@@ -1240,7 +1248,7 @@ Wed Jan 26 22:19:14 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
        (__class_type_info::do_find_public_subobj): Likewise.
        * tinfo2.cc (__dynamic_cast): Remap BOFF parameter.     
 
-2000-01-19  Gabriel Dos Reis  <gdr@codesourcery.coom>
+2000-01-19  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * typeck.c (build_unary_op): Use cp_pedwarn, not pedwarn.
 
@@ -1252,7 +1260,7 @@ Wed Jan 26 22:19:14 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
        * class.c (dump_class_hierarchy): Make format agree with argument;
        cast pointer to unsigned long and print with %lx.
        
-2000-01-19  Gabriel Dos Reis  <gdr@codesourcery>
+2000-01-19  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * decl2.c (lang_decode_option): Set default line-wrap length to 72.
        
index 45037aa8ada075a057ad1af8429b63be1903766d..35106dc1ba4f6d289faf8aff635ef22ec1547e45 100644 (file)
@@ -2183,8 +2183,7 @@ whitespace_cr (c)
         are undefined.  */
       if (pedantic && !newline_warning)
        {
-         warning ("carriage return in source file");
-         warning ("(we only warn about the first carriage return)");
+         warning ("carriage return in source file (we only warn about the first carriage return)");
          newline_warning = 1;
        }
       return 1;
@@ -3495,8 +3494,7 @@ do_identifier (token, parsing, args)
 
              if (! undeclared_variable_notice)
                {
-                 error ("(Each undeclared identifier is reported only once");
-                 error ("for each function it appears in.)");
+                 error ("(Each undeclared identifier is reported only once for each function it appears in.)");
                  undeclared_variable_notice = 1;
                }
            }
index 2d5610d6a5e36cd70f7039e536d531374a0aa137..4e5d05b69f840b89efd20b9a5164a62c6b3df394 100644 (file)
@@ -1,6 +1,7 @@
 
 /*  A Bison parser, made from parse.y
-    by GNU Bison version 1.28  */
+ by  GNU Bison version 1.27
+  */
 
 #define YYBISON 1  /* Identify Bison output.  */
 
@@ -4030,8 +4031,8 @@ static const short yycheck[] = {     4,
     78,    79,    80,    81,    82,    83,    84,    85
 };
 /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
-#line 3 "/usr/lib/bison.simple"
-/* This file comes from bison-1.28.  */
+#line 3 "/BASE/dosreis/share/bison.simple"
+/* This file comes from bison-1.27.  */
 
 /* Skeleton output parser for bison,
    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -4244,7 +4245,7 @@ __yy_memcpy (char *to, char *from, unsigned int count)
 #endif
 #endif
 \f
-#line 217 "/usr/lib/bison.simple"
+#line 216 "/BASE/dosreis/share/bison.simple"
 
 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
    into yyparse.  The argument should have type void *.
@@ -8229,7 +8230,7 @@ case 878:
     break;}
 }
    /* the action file gets copied in in place of this dollarsign */
-#line 543 "/usr/lib/bison.simple"
+#line 542 "/BASE/dosreis/share/bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
index 28d08a5a513bb7672512d847af01e0357fec32f2..a286f53283c8224abe240e9a08b23d8523861331 100644 (file)
@@ -2742,9 +2742,8 @@ convert_nontype_argument (type, expr)
 
       if (TREE_CODE (referent) == STRING_CST)
        {
-         cp_error ("string literal %E is not a valid template argument", 
+         cp_error ("string literal %E is not a valid template argument because it is the address of an object with static linkage", 
                    referent);
-         error ("because it is the address of an object with static linkage");
          return NULL_TREE;
        }
 
@@ -3160,8 +3159,7 @@ convert_template_argument (parm, arg, args, complain, i, in_decl)
   if (requires_type && ! is_type && TREE_CODE (arg) == SCOPE_REF
       && TREE_CODE (TREE_OPERAND (arg, 0)) == TEMPLATE_TYPE_PARM)
     {
-      cp_pedwarn ("to refer to a type member of a template parameter,");
-      cp_pedwarn ("  use `typename %E'", arg);
+      cp_pedwarn ("to refer to a type member of a template parameter, use `typename %E'", arg);
       
       arg = make_typename_type (TREE_OPERAND (arg, 0),
                                TREE_OPERAND (arg, 1),
@@ -4300,10 +4298,8 @@ push_tinst_level (d)
        return 0;
 
       last_template_error_tick = tinst_level_tick;
-      error ("template instantiation depth exceeds maximum of %d",
-            max_tinst_depth);
-      error (" (use -ftemplate-depth-NN to increase the maximum)");
-      cp_error ("  instantiating `%D'", d);
+      cp_error ("template instantiation depth exceeds maximum of %d (use -ftemplate-depth-NN to increase the maximum) instantiating `%D'",
+            max_tinst_depth, d);
 
       print_template_context (0);
 
This page took 0.111151 seconds and 5 git commands to generate.