/openbsd-current/gnu/gcc/gcc/cp/ |
H A D | decl.c | 921 decls_match (tree newdecl, tree olddecl) 925 if (newdecl == olddecl) 928 if (TREE_CODE (newdecl) != TREE_CODE (olddecl)) 936 tree f2 = TREE_TYPE (olddecl); 940 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) 942 && DECL_EXTERN_C_P (olddecl))) 950 if (p2 == NULL_TREE && DECL_EXTERN_C_P (olddecl) 951 && (DECL_BUILT_IN (olddecl) 954 || (DECL_IN_SYSTEM_HEADER (olddecl) && !DECL_CLASS_SCOPE_P (olddecl)) 916 decls_match(tree newdecl, tree olddecl) argument 1032 warn_extern_redeclared_static(tree newdecl, tree olddecl) argument 1108 duplicate_decls(tree newdecl, tree olddecl, bool newdecl_is_friend) argument 2078 redeclaration_error_message(tree newdecl, tree olddecl) argument 10658 tree olddecl = pushdecl (decl1); local [all...] |
H A D | name-lookup.c | 721 tree olddecl = duplicate_decls (x, t, is_friend); 725 if (olddecl == error_mark_node) 728 if (olddecl) 720 tree olddecl = duplicate_decls (x, t, is_friend); local
|
H A D | pt.c | 2283 tree olddecl; local 2293 olddecl = innermost_non_namespace_value (DECL_NAME (decl)); 2297 if (!olddecl) 2304 if (!DECL_P (olddecl) || !DECL_TEMPLATE_PARM_P (olddecl)) 2307 /* We check for decl != olddecl to avoid bogus errors for using a 2310 if (decl == olddecl 2315 error (" shadows template parm %q+#D", olddecl);
|
/openbsd-current/gnu/usr.bin/gcc/gcc/ |
H A D | c-decl.c | 870 duplicate_decls (newdecl, olddecl, different_binding_level) 871 tree newdecl, olddecl; 874 int types_match = comptypes (TREE_TYPE (newdecl), TREE_TYPE (olddecl)); 877 tree oldtype = TREE_TYPE (olddecl); 881 if (DECL_P (olddecl)) 884 && TREE_CODE (olddecl) == FUNCTION_DECL 885 && (DECL_UNINLINABLE (newdecl) || DECL_UNINLINABLE (olddecl))) 891 else if (DECL_DECLARED_INLINE_P (olddecl) 892 && DECL_UNINLINABLE (olddecl) 893 && lookup_attribute ("noinline", DECL_ATTRIBUTES (olddecl))) [all...] |
H A D | varasm.c | 4512 merge_weak (newdecl, olddecl) 4514 tree olddecl; 4516 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) 4529 if (TREE_ASM_WRITTEN (olddecl)) 4536 else if (TREE_USED (olddecl) 4537 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (olddecl))) 4547 TREE_VALUE (wd) = olddecl; 4557 mark_weak (olddecl);
|
H A D | tree.c | 2740 merge_decl_attributes (olddecl, newdecl) 2741 tree olddecl, newdecl; 2743 return merge_attributes (DECL_ATTRIBUTES (olddecl),
|
/openbsd-current/gnu/gcc/gcc/ |
H A D | c-decl.c | 1040 diagnose_arglist_conflict (tree newdecl, tree olddecl, 1045 if (TREE_CODE (olddecl) != FUNCTION_DECL 1047 || !((TYPE_ARG_TYPES (oldtype) == 0 && DECL_INITIAL (olddecl) == 0) 1169 diagnose_mismatched_decls (tree newdecl, tree olddecl, 1182 if (olddecl == error_mark_node || newdecl == error_mark_node) 1184 *oldtypep = oldtype = TREE_TYPE (olddecl); 1191 if (TREE_CODE (olddecl) != TREE_CODE (newdecl)) 1193 if (!(TREE_CODE (olddecl) == FUNCTION_DECL 1194 && DECL_BUILT_IN (olddecl) 1195 && !C_DECL_DECLARED_BUILTIN (olddecl))) 1032 diagnose_arglist_conflict(tree newdecl, tree olddecl, tree newtype, tree oldtype) argument 1161 diagnose_mismatched_decls(tree newdecl, tree olddecl, tree *newtypep, tree *oldtypep) argument 1609 merge_decls(tree newdecl, tree olddecl, tree newtype, tree oldtype) argument 1903 duplicate_decls(tree newdecl, tree olddecl) argument 2332 implicit_decl_warning(tree id, tree olddecl) argument [all...] |
H A D | varasm.c | 4553 merge_weak (tree newdecl, tree olddecl) 4555 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) 4582 if (TREE_ASM_WRITTEN (olddecl)) 4589 else if (TREE_USED (olddecl) 4590 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (olddecl))) 4601 TREE_VALUE (wd) = olddecl; 4611 mark_weak (olddecl); 4527 merge_weak(tree newdecl, tree olddecl) argument
|
H A D | tree.c | 3632 merge_decl_attributes (tree olddecl, tree newdecl) 3634 return merge_attributes (DECL_ATTRIBUTES (olddecl), 3611 merge_decl_attributes(tree olddecl, tree newdecl) argument
|
/openbsd-current/gnu/usr.bin/gcc/gcc/cp/ |
H A D | decl.c | 3159 decls_match (newdecl, olddecl) 3160 tree newdecl, olddecl; 3164 if (newdecl == olddecl) 3167 if (TREE_CODE (newdecl) != TREE_CODE (olddecl)) 3175 tree f2 = TREE_TYPE (olddecl); 3179 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) 3181 && DECL_EXTERN_C_P (olddecl))) 3189 if (p2 == NULL_TREE && DECL_EXTERN_C_P (olddecl) 3190 && (DECL_BUILT_IN (olddecl) 3193 || (DECL_IN_SYSTEM_HEADER (olddecl) [all...] |
H A D | pt.c | 1982 tree olddecl; local 1992 olddecl = IDENTIFIER_VALUE (DECL_NAME (decl)); 1996 if (!olddecl) 2003 if (!DECL_P (olddecl) || !DECL_TEMPLATE_PARM_P (olddecl)) 2006 /* We check for decl != olddecl to avoid bogus errors for using a 2009 if (decl == olddecl 2014 cp_error_at (" shadows template parm `%#D'", olddecl);
|
/openbsd-current/gnu/usr.bin/gcc/gcc/f/ |
H A D | com.c | 374 static int duplicate_decls (tree newdecl, tree olddecl); 13184 duplicate_decls (tree newdecl, tree olddecl) 13189 tree oldtype = TREE_TYPE (olddecl); 13192 if (olddecl == newdecl) 13202 if (TREE_CODE (olddecl) != TREE_CODE (newdecl)) 13208 && TREE_ASM_WRITTEN (olddecl) && ! TREE_ASM_WRITTEN (newdecl)) 13216 if (TREE_CODE (olddecl) == FUNCTION_DECL 13217 && DECL_BUILT_IN (olddecl)) 13225 tree oldreturntype = TREE_TYPE (TREE_TYPE (olddecl)); 13231 the return type of olddecl' 13182 duplicate_decls(tree newdecl, tree olddecl) argument [all...] |