Home
last modified time | relevance | path

Searched refs:old_decl (Results 1 – 25 of 28) sorted by relevance

12

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dcgraphclones.cc584 tree old_decl = decl; in create_virtual_clone() local
599 new_decl = copy_node (old_decl); in create_virtual_clone()
601 new_decl = param_adjustments->adjust_decl (old_decl); in create_virtual_clone()
605 gcc_assert (new_decl != old_decl); in create_virtual_clone()
614 len = IDENTIFIER_LENGTH (DECL_NAME (old_decl)); in create_virtual_clone()
616 memcpy (name, IDENTIFIER_POINTER (DECL_NAME (old_decl)), len); in create_virtual_clone()
621 clone_function_name (old_decl, suffix, num_suffix)); in create_virtual_clone()
641 if ((TREE_PUBLIC (old_decl) in create_virtual_clone()
642 && !DECL_EXTERNAL (old_decl) in create_virtual_clone()
643 && !DECL_WEAK (old_decl) in create_virtual_clone()
[all …]
H A Dtree-inline.cc5363 tree old_decl = (is_gimple_call (old_stmt) in fold_marked_statements() local
5365 if (old_decl && fndecl_built_in_p (old_decl)) in fold_marked_statements()
5379 old_decl, NULL); in fold_marked_statements()
5390 cgraph_update_edges_for_call_stmt (old_stmt, old_decl, in fold_marked_statements()
5423 cgraph_update_edges_for_call_stmt (old_stmt, old_decl, in fold_marked_statements()
6175 tree_function_versioning (tree old_decl, tree new_decl, in tree_function_versioning() argument
6197 gcc_assert (TREE_CODE (old_decl) == FUNCTION_DECL in tree_function_versioning()
6199 DECL_POSSIBLY_INLINED (old_decl) = 1; in tree_function_versioning()
6201 old_version_node = cgraph_node::get (old_decl); in tree_function_versioning()
6207 if (DECL_HAS_DEBUG_ARGS_P (old_decl)) in tree_function_versioning()
[all …]
H A Dtrans-mem.cc4917 tree old_decl, new_decl, tm_name; in ipa_tm_create_version_alias() local
4923 old_decl = node->decl; in ipa_tm_create_version_alias()
4924 tm_name = tm_mangle (DECL_ASSEMBLER_NAME (old_decl)); in ipa_tm_create_version_alias()
4925 new_decl = build_decl (DECL_SOURCE_LOCATION (old_decl), in ipa_tm_create_version_alias()
4926 TREE_CODE (old_decl), tm_name, in ipa_tm_create_version_alias()
4927 TREE_TYPE (old_decl)); in ipa_tm_create_version_alias()
4933 TREE_PUBLIC (new_decl) = TREE_PUBLIC (old_decl); in ipa_tm_create_version_alias()
4934 DECL_CONTEXT (new_decl) = DECL_CONTEXT (old_decl); in ipa_tm_create_version_alias()
4935 DECL_LANG_SPECIFIC (new_decl) = DECL_LANG_SPECIFIC (old_decl); in ipa_tm_create_version_alias()
4936 TREE_READONLY (new_decl) = TREE_READONLY (old_decl); in ipa_tm_create_version_alias()
[all …]
H A Dipa-param-manipulation.cc924 tree old_decl = gimple_call_fndecl (stmt); in modify_call() local
925 if (MAY_HAVE_DEBUG_BIND_STMTS && old_decl && callee_decl) in modify_call()
936 for (tree old_parm = DECL_ARGUMENTS (old_decl); in modify_call()
1713 ipa_param_body_adjustments::get_replacement_ssa_base (tree old_decl) in get_replacement_ssa_base() argument
1715 unsigned *idx = m_removed_map.get (old_decl); in get_replacement_ssa_base()
1722 gcc_assert (m_removed_decls[*idx] == old_decl); in get_replacement_ssa_base()
1723 repl = copy_var_decl (old_decl, DECL_NAME (old_decl), in get_replacement_ssa_base()
1724 TREE_TYPE (old_decl)); in get_replacement_ssa_base()
H A Dipa-param-manipulation.h334 tree get_replacement_ssa_base (tree old_decl);
H A Domp-simd-clone.cc450 tree old_decl = old_node->decl; in simd_clone_create() local
452 DECL_NAME (new_decl) = clone_function_name_numbered (old_decl, in simd_clone_create()
1008 tree old_decl = SSA_NAME_VAR (name); in ipa_simd_modify_function_body() local
1011 tree repl = adjustments->lookup_replacement (old_decl, 0); in ipa_simd_modify_function_body()
1014 set_ssa_default_def (cfun, old_decl, NULL_TREE); in ipa_simd_modify_function_body()
H A Dcgraph.cc1703 cgraph_update_edges_for_call_stmt (gimple *old_stmt, tree old_decl, in cgraph_update_edges_for_call_stmt() argument
1710 cgraph_update_edges_for_call_stmt_node (orig, old_stmt, old_decl, new_stmt); in cgraph_update_edges_for_call_stmt()
1714 cgraph_update_edges_for_call_stmt_node (node, old_stmt, old_decl, in cgraph_update_edges_for_call_stmt()
H A DChangeLog-200526964 * c-decl.c (start_function): Check for old_decl being
33281 * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
H A DChangeLog-200924116 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dcgraphclones.c583 tree old_decl = decl; in create_virtual_clone() local
598 new_decl = copy_node (old_decl); in create_virtual_clone()
600 new_decl = param_adjustments->adjust_decl (old_decl); in create_virtual_clone()
604 gcc_assert (new_decl != old_decl); in create_virtual_clone()
613 len = IDENTIFIER_LENGTH (DECL_NAME (old_decl)); in create_virtual_clone()
615 memcpy (name, IDENTIFIER_POINTER (DECL_NAME (old_decl)), len); in create_virtual_clone()
620 clone_function_name (old_decl, suffix, num_suffix)); in create_virtual_clone()
639 if ((TREE_PUBLIC (old_decl) in create_virtual_clone()
640 && !DECL_EXTERNAL (old_decl) in create_virtual_clone()
641 && !DECL_WEAK (old_decl) in create_virtual_clone()
[all …]
H A Dtree-inline.c5326 tree old_decl = (is_gimple_call (old_stmt) in fold_marked_statements() local
5328 if (old_decl && fndecl_built_in_p (old_decl)) in fold_marked_statements()
5342 old_decl, NULL); in fold_marked_statements()
5353 cgraph_update_edges_for_call_stmt (old_stmt, old_decl, in fold_marked_statements()
5386 cgraph_update_edges_for_call_stmt (old_stmt, old_decl, in fold_marked_statements()
6191 tree_function_versioning (tree old_decl, tree new_decl, in tree_function_versioning() argument
6207 gcc_assert (TREE_CODE (old_decl) == FUNCTION_DECL in tree_function_versioning()
6209 DECL_POSSIBLY_INLINED (old_decl) = 1; in tree_function_versioning()
6211 old_version_node = cgraph_node::get (old_decl); in tree_function_versioning()
6217 if (DECL_HAS_DEBUG_ARGS_P (old_decl)) in tree_function_versioning()
[all …]
H A Dipa-param-manipulation.c577 tree old_decl = gimple_call_fndecl (stmt); in modify_call() local
779 if (MAY_HAVE_DEBUG_BIND_STMTS && old_decl && callee_decl) in modify_call()
783 for (tree old_parm = DECL_ARGUMENTS (old_decl); in modify_call()
1337 ipa_param_body_adjustments::get_replacement_ssa_base (tree old_decl) in get_replacement_ssa_base() argument
1339 unsigned *idx = m_removed_map.get (old_decl); in get_replacement_ssa_base()
1346 gcc_assert (m_removed_decls[*idx] == old_decl); in get_replacement_ssa_base()
1347 repl = copy_var_decl (old_decl, DECL_NAME (old_decl), in get_replacement_ssa_base()
1348 TREE_TYPE (old_decl)); in get_replacement_ssa_base()
H A Dtrans-mem.c4916 tree old_decl, new_decl, tm_name; in ipa_tm_create_version_alias() local
4922 old_decl = node->decl; in ipa_tm_create_version_alias()
4923 tm_name = tm_mangle (DECL_ASSEMBLER_NAME (old_decl)); in ipa_tm_create_version_alias()
4924 new_decl = build_decl (DECL_SOURCE_LOCATION (old_decl), in ipa_tm_create_version_alias()
4925 TREE_CODE (old_decl), tm_name, in ipa_tm_create_version_alias()
4926 TREE_TYPE (old_decl)); in ipa_tm_create_version_alias()
4932 TREE_PUBLIC (new_decl) = TREE_PUBLIC (old_decl); in ipa_tm_create_version_alias()
4933 DECL_CONTEXT (new_decl) = DECL_CONTEXT (old_decl); in ipa_tm_create_version_alias()
4934 DECL_LANG_SPECIFIC (new_decl) = DECL_LANG_SPECIFIC (old_decl); in ipa_tm_create_version_alias()
4935 TREE_READONLY (new_decl) = TREE_READONLY (old_decl); in ipa_tm_create_version_alias()
[all …]
H A Dipa-param-manipulation.h354 tree get_replacement_ssa_base (tree old_decl);
H A Domp-simd-clone.c448 tree old_decl = old_node->decl; in simd_clone_create() local
450 DECL_NAME (new_decl) = clone_function_name_numbered (old_decl, in simd_clone_create()
998 tree old_decl = SSA_NAME_VAR (name); in ipa_simd_modify_function_body() local
1001 tree repl = adjustments->lookup_replacement (old_decl, 0); in ipa_simd_modify_function_body()
1004 set_ssa_default_def (cfun, old_decl, NULL_TREE); in ipa_simd_modify_function_body()
H A Dcgraph.c1694 cgraph_update_edges_for_call_stmt (gimple *old_stmt, tree old_decl, in cgraph_update_edges_for_call_stmt() argument
1701 cgraph_update_edges_for_call_stmt_node (orig, old_stmt, old_decl, new_stmt); in cgraph_update_edges_for_call_stmt()
1705 cgraph_update_edges_for_call_stmt_node (node, old_stmt, old_decl, new_stmt); in cgraph_update_edges_for_call_stmt()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c/
H A Dc-decl.c2985 tree old_decl = b->decl; in warn_if_shadowing() local
2987 if (old_decl == error_mark_node) in warn_if_shadowing()
2996 if (TREE_CODE (old_decl) == PARM_DECL) in warn_if_shadowing()
3006 else if (comptypes (TREE_TYPE (old_decl), TREE_TYPE (new_decl))) in warn_if_shadowing()
3014 else if (DECL_FILE_SCOPE_P (old_decl)) in warn_if_shadowing()
3018 if (TREE_CODE (old_decl) == FUNCTION_DECL in warn_if_shadowing()
3028 else if (TREE_CODE (old_decl) == FUNCTION_DECL in warn_if_shadowing()
3029 && fndecl_built_in_p (old_decl)) in warn_if_shadowing()
3045 else if (comptypes (TREE_TYPE (old_decl), TREE_TYPE (new_decl))) in warn_if_shadowing()
3055 inform (DECL_SOURCE_LOCATION (old_decl), in warn_if_shadowing()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/c/
H A Dc-decl.cc3026 tree old_decl = b->decl; in warn_if_shadowing() local
3028 if (old_decl == error_mark_node) in warn_if_shadowing()
3037 if (TREE_CODE (old_decl) == PARM_DECL) in warn_if_shadowing()
3047 else if (comptypes (TREE_TYPE (old_decl), TREE_TYPE (new_decl))) in warn_if_shadowing()
3055 else if (DECL_FILE_SCOPE_P (old_decl)) in warn_if_shadowing()
3059 if (TREE_CODE (old_decl) == FUNCTION_DECL in warn_if_shadowing()
3069 else if (TREE_CODE (old_decl) == FUNCTION_DECL in warn_if_shadowing()
3070 && fndecl_built_in_p (old_decl)) in warn_if_shadowing()
3086 else if (comptypes (TREE_TYPE (old_decl), TREE_TYPE (new_decl))) in warn_if_shadowing()
3096 inform (DECL_SOURCE_LOCATION (old_decl), in warn_if_shadowing()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Ddecl.c1171 tree old_decl) in check_redeclaration_exception_specification() argument
1174 tree old_exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (old_decl)); in check_redeclaration_exception_specification()
1181 if (!type_dependent_expression_p (old_decl)) in check_redeclaration_exception_specification()
1184 maybe_instantiate_noexcept (old_decl); in check_redeclaration_exception_specification()
1187 old_exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (old_decl)); in check_redeclaration_exception_specification()
1195 if (! DECL_IS_BUILTIN (old_decl) in check_redeclaration_exception_specification()
1203 if (DECL_IN_SYSTEM_HEADER (old_decl)) in check_redeclaration_exception_specification()
1212 inform (DECL_SOURCE_LOCATION (old_decl), in check_redeclaration_exception_specification()
1213 "from previous declaration %qF", old_decl); in check_redeclaration_exception_specification()
1221 validate_constexpr_redeclaration (tree old_decl, tree new_decl) in validate_constexpr_redeclaration() argument
[all …]
H A Dname-lookup.c4512 tree old_decl = NULL_TREE; in push_class_level_binding_1() local
4527 old_decl = binding->type; in push_class_level_binding_1()
4534 old_decl = bval; in push_class_level_binding_1()
4556 old_decl = bval; in push_class_level_binding_1()
4562 old_decl = bval; in push_class_level_binding_1()
4564 if (old_decl && binding->scope == class_binding_level) in push_class_level_binding_1()
H A Dpt.c10979 tree old_decl; in tsubst_friend_function() local
11009 old_decl = pushdecl_namespace_level (new_friend, /*is_friend=*/true); in tsubst_friend_function()
11012 if (old_decl == error_mark_node) in tsubst_friend_function()
11015 if (old_decl != new_friend) in tsubst_friend_function()
11065 DECL_TEMPLATE_INFO (old_decl) = new_friend_template_info; in tsubst_friend_function()
11067 if (TREE_CODE (old_decl) != TEMPLATE_DECL) in tsubst_friend_function()
11073 == old_decl); in tsubst_friend_function()
11076 if (DECL_ODR_USED (old_decl)) in tsubst_friend_function()
11077 instantiate_decl (old_decl, /*defer_ok=*/true, in tsubst_friend_function()
11086 DECL_TEMPLATE_INFO (DECL_TEMPLATE_RESULT (old_decl)) in tsubst_friend_function()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Ddecl.cc1223 tree old_decl) in check_redeclaration_exception_specification() argument
1226 tree old_exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (old_decl)); in check_redeclaration_exception_specification()
1233 if (!type_dependent_expression_p (old_decl)) in check_redeclaration_exception_specification()
1236 maybe_instantiate_noexcept (old_decl); in check_redeclaration_exception_specification()
1239 old_exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (old_decl)); in check_redeclaration_exception_specification()
1247 if (!DECL_IS_UNDECLARED_BUILTIN (old_decl) in check_redeclaration_exception_specification()
1256 if (DECL_IN_SYSTEM_HEADER (old_decl)) in check_redeclaration_exception_specification()
1265 inform (DECL_SOURCE_LOCATION (old_decl), in check_redeclaration_exception_specification()
1266 "from previous declaration %qF", old_decl); in check_redeclaration_exception_specification()
1274 validate_constexpr_redeclaration (tree old_decl, tree new_decl) in validate_constexpr_redeclaration() argument
[all …]
H A Dname-lookup.cc5432 tree old_decl = NULL_TREE; in push_class_level_binding() local
5447 old_decl = binding->type; in push_class_level_binding()
5454 old_decl = bval; in push_class_level_binding()
5478 old_decl = bval; in push_class_level_binding()
5487 old_decl = bval; in push_class_level_binding()
5489 if (old_decl && binding->scope == class_binding_level) in push_class_level_binding()
H A Dpt.cc11338 tree old_decl; in tsubst_friend_function() local
11367 old_decl = pushdecl_namespace_level (new_friend, /*hiding=*/true); in tsubst_friend_function()
11370 if (old_decl == error_mark_node) in tsubst_friend_function()
11373 if (old_decl != new_friend) in tsubst_friend_function()
11423 DECL_TEMPLATE_INFO (old_decl) = new_friend_template_info; in tsubst_friend_function()
11425 if (TREE_CODE (old_decl) != TEMPLATE_DECL) in tsubst_friend_function()
11431 == old_decl); in tsubst_friend_function()
11434 if (DECL_ODR_USED (old_decl)) in tsubst_friend_function()
11435 instantiate_decl (old_decl, /*defer_ok=*/true, in tsubst_friend_function()
11444 DECL_TEMPLATE_INFO (DECL_TEMPLATE_RESULT (old_decl)) in tsubst_friend_function()
[all …]
H A DChangeLog-20031813 * decl.c (push_class_level_binding): Correct old_decl value from

12