diff options
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 119196408e8..b3b567e0f6c 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2634,7 +2634,6 @@ start_objects (int method_type, int initp) DECL_GLOBAL_CTOR_P (current_function_decl) = 1; else DECL_GLOBAL_DTOR_P (current_function_decl) = 1; - DECL_LANG_SPECIFIC (current_function_decl)->decl_flags.u2sel = 1; body = begin_compound_stmt (BCS_FN_BODY); @@ -3911,27 +3910,4 @@ mark_used (tree decl) processing_template_decl = saved_processing_template_decl; } -/* Given function PARM_DECL PARM, return its index in the function's list - of parameters, beginning with 1. */ - -int -parm_index (tree parm) -{ - int index; - tree arg; - - for (index = 1, arg = DECL_ARGUMENTS (DECL_CONTEXT (parm)); - arg; - ++index, arg = TREE_CHAIN (arg)) - { - if (DECL_NAME (parm) == DECL_NAME (arg)) - break; - if (DECL_ARTIFICIAL (arg)) - --index; - } - - gcc_assert (arg); - return index; -} - #include "gt-cp-decl2.h" |