aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2000-03-12 17:19:22 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2000-03-12 17:19:22 +0000
commitb4f4233d52069bed9f8d639aab84e1663ca08a8b (patch)
tree835c707fd832fdeb30083c53ea10364ca2b8f2b9 /gcc
parent8be1ddcacc974c896a22785d7c833a3987a7c5e6 (diff)
downloadgcc-b4f4233d52069bed9f8d639aab84e1663ca08a8b.zip
gcc-b4f4233d52069bed9f8d639aab84e1663ca08a8b.tar.gz
gcc-b4f4233d52069bed9f8d639aab84e1663ca08a8b.tar.bz2
lex.c (whitespace_cr): Compress consecutive calls to warning().
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog12
-rw-r--r--gcc/cp/lex.c6
-rw-r--r--gcc/cp/parse.c11
-rw-r--r--gcc/cp/pt.c12
4 files changed, 22 insertions, 19 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f495735..37be278 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 45037aa..35106dc 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -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;
}
}
diff --git a/gcc/cp/parse.c b/gcc/cp/parse.c
index 2d5610d..4e5d05b 100644
--- a/gcc/cp/parse.c
+++ b/gcc/cp/parse.c
@@ -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
-#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"
yyvsp -= yylen;
yyssp -= yylen;
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 28d08a5..a286f53 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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);