From 0441885cad1ff7eb9b1713472f8c70990f57314e Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 26 Nov 2002 17:40:56 +0000 Subject: [PATCH] * cp-tree.h (DECL_LANG_FLAG_4): Document more uses. (template_parms_equal): Remove prototype. * typeck.c (buuld_indirect_ref): Reformat. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59528 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 8 +++++++- gcc/cp/cp-tree.h | 2 +- gcc/cp/typeck.c | 4 ++-- 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 + + * 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 * tree.c (cp_build_qualified_type_real): Correct handling of @@ -7611,7 +7617,7 @@ Sun Feb 4 15:52:44 2001 Richard Kenner (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); -- 2.7.4