diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-26 17:40:56 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-26 17:40:56 +0000 |
commit | 0441885cad1ff7eb9b1713472f8c70990f57314e (patch) | |
tree | 50eff245598f3a4855aacb5ebee852fccc4b7b5d | |
parent | 67be5043854e990ba73917c601965874eaa9fe09 (diff) | |
download | ppe42-gcc-0441885cad1ff7eb9b1713472f8c70990f57314e.tar.gz ppe42-gcc-0441885cad1ff7eb9b1713472f8c70990f57314e.zip |
* 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
-rw-r--r-- | gcc/cp/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5557d2bb5b1..bd596d5dfc6 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 262f6a1fd69..db2f082a3f3 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 c0e3fa66472..1366ea0b8c6 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); |