Searched refs:old_decl (Results 1 – 11 of 11) sorted by relevance
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | tree-inline.c | 2759 tree_function_versioning (tree old_decl, tree new_decl, varray_type tree_map, in tree_function_versioning() argument 2771 gcc_assert (TREE_CODE (old_decl) == FUNCTION_DECL in tree_function_versioning() 2773 DECL_POSSIBLY_INLINED (old_decl) = 1; in tree_function_versioning() 2775 old_version_node = cgraph_node (old_decl); in tree_function_versioning() 2783 DECL_ABSTRACT_ORIGIN (new_decl) = DECL_ORIGIN (old_decl); in tree_function_versioning() 2789 if (DECL_RTL (old_decl) != NULL) in tree_function_versioning() 2791 SET_DECL_RTL (new_decl, copy_rtx (DECL_RTL (old_decl))); in tree_function_versioning() 2793 gen_rtx_SYMBOL_REF (GET_MODE (XEXP (DECL_RTL (old_decl), 0)), in tree_function_versioning() 2801 id.src_fn = old_decl; in tree_function_versioning() 2805 id.src_cfun = DECL_STRUCT_FUNCTION (old_decl); in tree_function_versioning() [all …]
|
| H A D | c-decl.c | 1937 tree old_decl = b->decl; in warn_if_shadowing() local 1939 if (old_decl == error_mark_node) in warn_if_shadowing() 1945 else if (TREE_CODE (old_decl) == PARM_DECL) in warn_if_shadowing() 1948 else if (DECL_FILE_SCOPE_P (old_decl)) in warn_if_shadowing() 1952 if (TREE_CODE (old_decl) == FUNCTION_DECL in warn_if_shadowing() 1963 else if (TREE_CODE (old_decl) == FUNCTION_DECL in warn_if_shadowing() 1964 && DECL_BUILT_IN (old_decl)) in warn_if_shadowing() 1974 warning (OPT_Wshadow, "%Jshadowed declaration is here", old_decl); in warn_if_shadowing() 6001 tree decl1, old_decl; in start_function() local 6070 old_decl = lookup_name_in_scope (DECL_NAME (decl1), current_scope); in start_function() [all …]
|
| H A D | ipa-pure-const.c | 559 tree old_decl = current_function_decl; in analyze_function() local 576 current_function_decl = old_decl; in analyze_function()
|
| H A D | cgraphunit.c | 1842 tree old_decl = old_version_node->decl; in cgraph_function_versioning() local 1846 if (!tree_versionable_function_p (old_decl)) in cgraph_function_versioning() 1851 new_decl = copy_node (old_decl); in cgraph_function_versioning() 1860 tree_function_versioning (old_decl, new_decl, tree_map, false); in cgraph_function_versioning()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | c-decl.c | 5802 tree decl1, old_decl; local 5865 old_decl = lookup_name_current_level (DECL_NAME (decl1)); 5866 if (old_decl != 0 && TREE_CODE (TREE_TYPE (old_decl)) == FUNCTION_TYPE 5867 && !DECL_BUILT_IN (old_decl) 5869 == TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (old_decl)))) 5872 TREE_TYPE (decl1) = TREE_TYPE (old_decl); 5873 current_function_prototype_file = DECL_SOURCE_FILE (old_decl); 5874 current_function_prototype_line = DECL_SOURCE_LINE (old_decl); 5879 if (old_decl == 0) 5880 old_decl = IDENTIFIER_IMPLICIT_DECL (DECL_NAME (decl1)); [all …]
|
| /openbsd-src/gnu/gcc/gcc/cp/ |
| H A D | decl.c | 1069 tree old_decl) in check_redeclaration_exception_specification() argument 1078 old_type = TREE_TYPE (old_decl); in check_redeclaration_exception_specification() 1087 if ((pedantic || ! DECL_IN_SYSTEM_HEADER (old_decl)) in check_redeclaration_exception_specification() 1088 && ! DECL_IS_BUILTIN (old_decl) in check_redeclaration_exception_specification() 1094 error ("from previous declaration %q+F", old_decl); in check_redeclaration_exception_specification() 6289 tree old_decl; in grokfndecl() local 6291 old_decl = check_classfn (ctype, decl, in grokfndecl() 6296 if (old_decl) in grokfndecl() 6301 if (TREE_CODE (old_decl) == TEMPLATE_DECL) in grokfndecl() 6306 old_decl = DECL_TEMPLATE_RESULT (old_decl); in grokfndecl() [all …]
|
| H A D | pt.c | 5374 tree old_decl; in tsubst_friend_function() local 5408 old_decl = pushdecl_namespace_level (new_friend, /*is_friend=*/true); in tsubst_friend_function() 5411 if (old_decl == error_mark_node) in tsubst_friend_function() 5414 if (old_decl != new_friend) in tsubst_friend_function() 5461 DECL_TEMPLATE_INFO (old_decl) = new_friend_template_info; in tsubst_friend_function() 5463 if (TREE_CODE (old_decl) != TEMPLATE_DECL) in tsubst_friend_function() 5465 most_general_template (old_decl), in tsubst_friend_function() 5466 old_decl); in tsubst_friend_function() 5472 DECL_TEMPLATE_INFO (DECL_TEMPLATE_RESULT (old_decl)) in tsubst_friend_function() 5476 for (t = DECL_TEMPLATE_SPECIALIZATIONS (old_decl); in tsubst_friend_function() [all …]
|
| H A D | name-lookup.c | 2684 tree old_decl = NULL_TREE; in push_class_level_binding() local 2695 old_decl = binding->type; in push_class_level_binding() 2702 old_decl = bval; in push_class_level_binding() 2710 old_decl = bval; in push_class_level_binding() 2714 old_decl = bval; in push_class_level_binding() 2718 if (old_decl && binding->scope == class_binding_level) in push_class_level_binding()
|
| H A D | ChangeLog-2003 | 1813 * decl.c (push_class_level_binding): Correct old_decl value from
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/cp/ |
| H A D | pt.c | 4953 tree old_decl; local 4984 old_decl = pushdecl_namespace_level (new_friend); 4987 if (old_decl != new_friend) 5034 DECL_TEMPLATE_INFO (old_decl) = new_friend_template_info; 5036 if (TREE_CODE (old_decl) != TEMPLATE_DECL) 5038 most_general_template (old_decl), 5039 old_decl); 5045 DECL_TEMPLATE_INFO (DECL_TEMPLATE_RESULT (old_decl)) 5049 for (t = DECL_TEMPLATE_SPECIALIZATIONS (old_decl); 5063 t = most_general_template (old_decl); [all …]
|
| H A D | decl.c | 4756 tree old_decl; in push_class_level_binding() local 4768 old_decl = BINDING_TYPE (binding); in push_class_level_binding() 4774 old_decl = BINDING_VALUE (binding); in push_class_level_binding() 4782 && TREE_TYPE (shadow) == old_decl) in push_class_level_binding() 9886 tree old_decl; local 9888 old_decl = check_classfn (ctype, decl); 9890 if (old_decl && TREE_CODE (old_decl) == TEMPLATE_DECL) 9895 old_decl = DECL_TEMPLATE_RESULT (old_decl); 9897 if (old_decl && DECL_STATIC_FUNCTION_P (old_decl) 9905 if (old_decl && DECL_ARTIFICIAL (old_decl)) [all …]
|