aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2002-11-26 17:40:56 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2002-11-26 17:40:56 +0000
commit688f66887f02643378b9405cb9e2161102a1cd7e (patch)
tree50eff245598f3a4855aacb5ebee852fccc4b7b5d /gcc/cp
parent5326cd3d2294654972d8c53dd9f4806b5afb72da (diff)
downloadgcc-688f66887f02643378b9405cb9e2161102a1cd7e.zip
gcc-688f66887f02643378b9405cb9e2161102a1cd7e.tar.gz
gcc-688f66887f02643378b9405cb9e2161102a1cd7e.tar.bz2
cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
* cp-tree.h (DECL_LANG_FLAG_4): Document more uses. (template_parms_equal): Remove prototype. * typeck.c (buuld_indirect_ref): Reformat. From-SVN: r59528
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog8
-rw-r--r--gcc/cp/cp-tree.h2
-rw-r--r--gcc/cp/typeck.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 5557d2b..bd596d5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-26 Nathan Sidwell <nathan@codesourcery.com>
+
+ * cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
+ (template_parms_equal): Remove prototype.
+ * typeck.c (buuld_indirect_ref): Reformat.
+
2002-11-25 Mark Mitchell <mark@codesourcery.com>
* tree.c (cp_build_qualified_type_real): Correct handling of
@@ -7611,7 +7617,7 @@ Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
(cp_make_fname_decl): Use size_int, not build_int_2.
(push_inline_template_parms_recursive): Likewise.
(end_template_parm_list): Likewise.
- (for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
+ (for_each_template_parm): Do not use walk_tree_without_duplicates.
(tsubst_template_parms): Use size_int, not build_int_2.
(tsubst): Likewise.
* rtti.c (get_vmi_pseudo_type_info): Likewise.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 262f6a1..db2f082 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -101,6 +101,7 @@ struct diagnostic_context;
DECL_IMPLICIT_TYPEDEF_P (in a TYPE_DECL)
3: DECL_IN_AGGR_P.
4: DECL_C_BIT_FIELD (in a FIELD_DECL)
+ DECL_MAYBE_TEMPLATE (in a FUNCTION_DECL)
5: DECL_INTERFACE_KNOWN.
6: DECL_THIS_STATIC (in VAR_DECL or FUNCTION_DECL).
7: DECL_DEAD_FOR_LOCAL (in VAR_DECL).
@@ -4001,7 +4002,6 @@ extern int push_tinst_level PARAMS ((tree));
extern void pop_tinst_level PARAMS ((void));
extern int more_specialized_class PARAMS ((tree, tree));
extern int is_member_template PARAMS ((tree));
-extern int template_parms_equal PARAMS ((tree, tree));
extern int comp_template_parms PARAMS ((tree, tree));
extern int template_class_depth PARAMS ((tree));
extern int is_specialization_of PARAMS ((tree, tree));
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index c0e3fa6..1366ea0 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -2327,8 +2327,8 @@ build_indirect_ref (ptr, errorstring)
return error_mark_node;
}
else if (TREE_CODE (pointer) == ADDR_EXPR
- && !flag_volatile
- && same_type_p (t, TREE_TYPE (TREE_OPERAND (pointer, 0))))
+ && !flag_volatile
+ && same_type_p (t, TREE_TYPE (TREE_OPERAND (pointer, 0))))
/* The POINTER was something like `&x'. We simplify `*&x' to
`x'. */
return TREE_OPERAND (pointer, 0);