aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-07-17 20:12:21 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-07-17 20:12:21 +0000
commiteb1dfbb2fb30682e7048332e2c99187497db6c02 (patch)
tree039fb91b57a3220b33a7ad55edc6af0d1c8d74c3 /gcc/cp
parent78ff95dc17c157fafe2169b9e0bb47c2417dce85 (diff)
downloadgcc-eb1dfbb2fb30682e7048332e2c99187497db6c02.zip
gcc-eb1dfbb2fb30682e7048332e2c99187497db6c02.tar.gz
gcc-eb1dfbb2fb30682e7048332e2c99187497db6c02.tar.bz2
c-decl.c: Fix typos in several comments.
* c-decl.c: Fix typos in several comments. Remove all #if 0 blocks; reindent as needed. Remove unused argument to declare_parm_level; all callers changed. * c-parse.in: Update calls to declare_parm_level. Avoid issuing a double warning in some circumstances. * c-typeck.c: Update calls to declare_parm_level. * c-tree.h: Update prototype of declare_parm_level. * c-pragma.c (apply_pragma_weak): Don't complain about a redundant #pragma weak. * objc/objc-act.c (forward_declare_categories, build_selector_reference_decl, build_class_reference_decl, build_objc_string_decl, synth_forward_declarations, build_protocol_reference): Set TREE_PUBLIC on synthetic forward decl to 0, consistent with eventual definition. Correct comments to match. cp: * pt.c (get_bindings): Make definition consistent with forward declaration. From-SVN: r69519
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog25
-rw-r--r--gcc/cp/pt.c2
2 files changed, 16 insertions, 11 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 82db5a4..a7a5826 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-17 Zack Weinberg <zack@codesourcery.com>
+
+ * pt.c (get_bindings): Make definition consistent with
+ forward declaration.
+
2003-07-17 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7809
@@ -6,7 +11,7 @@
2003-07-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/10668
- * typeck.c (build_class_member_access_expr): Improve diagnostic.
+ * typeck.c (build_class_member_access_expr): Improve diagnostic.
2003-07-16 Mark Mitchell <mark@codesourcery.com>
@@ -43,7 +48,7 @@
(tsubst_expr): Tweak use of DECL_PRETTY_FUNCTION_P.
* semantics.c (finish_id_expression): Use
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
-
+
2003-07-16 Neil Booth <neil@daikokuya.co.uk>
* lang-options.h: Remove.
@@ -95,7 +100,7 @@
* friend.c (do_friend): Likewise.
* init.c (build_offset_ref): Likewise.
* lex.c (unqualified_fn_lookup_error): Use pedwarn. Do not create
- LOOKUP_EXPRs
+ LOOKUP_EXPRs
* mangle.c (write_expression): Remove support for LOOKUP_EXPR.
* parser.c (cp_parser_postfix_expression): Modify Koenig lookup
test.
@@ -116,7 +121,7 @@
(finish_fname): Likewise.
(finish_id_expression): Likewise.
* tree.c (is_aggr_type_2): Remove.
-
+
2003-07-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/11531
@@ -133,8 +138,8 @@
PR c++/11509
* pt.c (dependent_scope_ref_p): New function.
(value_dependent_expression_p): Use it.
- (type_dependent_expression_p): Likewise.
-
+ (type_dependent_expression_p): Likewise.
+
* pt.c (tsubst_friend_function): Use reregister_specialization.
PR c++/7019
@@ -152,7 +157,7 @@
PR c++/11510
* call.c (op_error): Properly format REALPART_EXPR and
- IMAGPART_EXPR.
+ IMAGPART_EXPR.
* error.c (dump_expr): Likewise.
2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
@@ -185,7 +190,7 @@
* search.c (lookup_base): Use DECL_SELF_REFERENCE_P.
* pt.c (reregister_specialization): Fix thinko in previous change.
-
+
* cp-tree.h (cp_id_kind): New type.
(unqualified_name_lookup_error): Change prototype.
(unqualified_fn_lookup_error): New function.
@@ -225,7 +230,7 @@
(regenerate_decl_from_template): Use reregister_specialization.
* semantics.c (perform_koenig_lookup): New function.
(finish_id_expression): Likewise.
-
+
2003-07-13 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (push_access_scope_real): Remove.
@@ -306,7 +311,7 @@
* cp-tree.h (break_out_calls): Remove declaration.
* tree.c (break_out_calls): Remove.
* typeck.c (build_modify_expr): Avoid invalid sharing of trees.
-
+
2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
PR c++ 9483
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 6c4a5a8..bbce47e 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -10028,7 +10028,7 @@ get_bindings_real (tree fn,
/* For most uses, we want to check the return type. */
-tree
+static tree
get_bindings (tree fn, tree decl, tree explicit_args)
{
return get_bindings_real (fn, decl, explicit_args, 1, DEDUCE_EXACT, -1);