| /openbsd-src/gnu/gcc/gcc/cp/ |
| H A D | decl.c | 916 decls_match (tree newdecl, tree olddecl) in decls_match() argument 920 if (newdecl == olddecl) in decls_match() 923 if (TREE_CODE (newdecl) != TREE_CODE (olddecl)) in decls_match() 931 tree f2 = TREE_TYPE (olddecl); in decls_match() 935 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) in decls_match() 937 && DECL_EXTERN_C_P (olddecl))) in decls_match() 945 if (p2 == NULL_TREE && DECL_EXTERN_C_P (olddecl) in decls_match() 946 && (DECL_BUILT_IN (olddecl) in decls_match() 949 || (DECL_IN_SYSTEM_HEADER (olddecl) && !DECL_CLASS_SCOPE_P (olddecl)) in decls_match() 955 TREE_TYPE (newdecl) = TREE_TYPE (olddecl); in decls_match() [all …]
|
| H A D | ChangeLog-1997 | 29 olddecl was, just as is done with other attributes of olddecl. 2370 exceptions if -pedantic *or* olddecl !DECL_IN_SYSTEM_HEADER. 2422 if -pedantic, instead of olddecl !DECL_IN_SYSTEM_HEADER. 2447 still but only if !DECL_IN_SYSTEM_HEADER (olddecl).
|
| H A D | name-lookup.c | 720 tree olddecl = duplicate_decls (x, t, is_friend); in pushdecl_maybe_friend() local 724 if (olddecl == error_mark_node) in pushdecl_maybe_friend() 727 if (olddecl) in pushdecl_maybe_friend()
|
| H A D | pt.c | 2283 tree olddecl; in check_template_shadow() local 2293 olddecl = innermost_non_namespace_value (DECL_NAME (decl)); in check_template_shadow() 2297 if (!olddecl) in check_template_shadow() 2304 if (!DECL_P (olddecl) || !DECL_TEMPLATE_PARM_P (olddecl)) in check_template_shadow() 2310 if (decl == olddecl in check_template_shadow() 2315 error (" shadows template parm %q+#D", olddecl); in check_template_shadow()
|
| H A D | ChangeLog | 1080 newdecl or olddecl is error_mark_node. 2418 (olddecl). 3915 olddecl and newdecl disagreement on __thread property.
|
| H A D | ChangeLog-2002 | 2267 olddecl to newdecl when newdecl is a specialization of the 2268 instantiation olddecl.
|
| H A D | ChangeLog-1998 | 182 (decl_template_parm_p): Change name of olddecl parameter to decl. 6124 Update olddecl's attributes too.
|
| H A D | ChangeLog-1995 | 414 Update olddecl's attributes too.
|
| H A D | ChangeLog-2004 | 1623 * decl.c (duplicate_decls): Copy TREE_NOTHROW from newdecl to olddecl.
|
| H A D | ChangeLog-1994 | 2217 with a null type, after we've checked if olddecl does.
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | c-decl.c | 862 duplicate_decls (newdecl, olddecl, different_binding_level) in duplicate_decls() argument 863 tree newdecl, olddecl; in duplicate_decls() 866 int types_match = comptypes (TREE_TYPE (newdecl), TREE_TYPE (olddecl)); 869 tree oldtype = TREE_TYPE (olddecl); 873 if (DECL_P (olddecl)) 876 && TREE_CODE (olddecl) == FUNCTION_DECL 877 && (DECL_UNINLINABLE (newdecl) || DECL_UNINLINABLE (olddecl))) 883 else if (DECL_DECLARED_INLINE_P (olddecl) 884 && DECL_UNINLINABLE (olddecl) 885 && lookup_attribute ("noinline", DECL_ATTRIBUTES (olddecl))) [all …]
|
| H A D | varasm.c | 4488 merge_weak (newdecl, olddecl) in merge_weak() argument 4490 tree olddecl; 4492 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) 4505 if (TREE_ASM_WRITTEN (olddecl)) 4512 else if (TREE_USED (olddecl) 4513 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (olddecl))) 4523 TREE_VALUE (wd) = olddecl; 4533 mark_weak (olddecl);
|
| H A D | tree.c | 2719 merge_decl_attributes (olddecl, newdecl) in merge_decl_attributes() argument 2720 tree olddecl, newdecl; in merge_decl_attributes() 2722 return merge_attributes (DECL_ATTRIBUTES (olddecl),
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | c-decl.c | 1032 diagnose_arglist_conflict (tree newdecl, tree olddecl, in diagnose_arglist_conflict() argument 1037 if (TREE_CODE (olddecl) != FUNCTION_DECL in diagnose_arglist_conflict() 1039 || !((TYPE_ARG_TYPES (oldtype) == 0 && DECL_INITIAL (olddecl) == 0) in diagnose_arglist_conflict() 1161 diagnose_mismatched_decls (tree newdecl, tree olddecl, in diagnose_mismatched_decls() argument 1174 if (olddecl == error_mark_node || newdecl == error_mark_node) in diagnose_mismatched_decls() 1176 *oldtypep = oldtype = TREE_TYPE (olddecl); in diagnose_mismatched_decls() 1183 if (TREE_CODE (olddecl) != TREE_CODE (newdecl)) in diagnose_mismatched_decls() 1185 if (!(TREE_CODE (olddecl) == FUNCTION_DECL in diagnose_mismatched_decls() 1186 && DECL_BUILT_IN (olddecl) in diagnose_mismatched_decls() 1187 && !C_DECL_DECLARED_BUILTIN (olddecl))) in diagnose_mismatched_decls() [all …]
|
| H A D | varasm.c | 4527 merge_weak (tree newdecl, tree olddecl) in merge_weak() argument 4529 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) in merge_weak() 4556 if (TREE_ASM_WRITTEN (olddecl)) in merge_weak() 4563 else if (TREE_USED (olddecl) in merge_weak() 4564 && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (olddecl))) in merge_weak() 4575 TREE_VALUE (wd) = olddecl; in merge_weak() 4585 mark_weak (olddecl); in merge_weak()
|
| H A D | tree.c | 3611 merge_decl_attributes (tree olddecl, tree newdecl) in merge_decl_attributes() argument 3613 return merge_attributes (DECL_ATTRIBUTES (olddecl), in merge_decl_attributes()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/cp/ |
| H A D | decl.c | 3152 decls_match (newdecl, olddecl) in decls_match() argument 3153 tree newdecl, olddecl; in decls_match() 3157 if (newdecl == olddecl) 3160 if (TREE_CODE (newdecl) != TREE_CODE (olddecl)) 3168 tree f2 = TREE_TYPE (olddecl); 3172 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) 3174 && DECL_EXTERN_C_P (olddecl))) 3182 if (p2 == NULL_TREE && DECL_EXTERN_C_P (olddecl) 3183 && (DECL_BUILT_IN (olddecl) 3186 || (DECL_IN_SYSTEM_HEADER (olddecl) && !DECL_CLASS_SCOPE_P (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)) 2009 if (decl == olddecl 2014 cp_error_at (" shadows template parm `%#D'", olddecl);
|
| H A D | ChangeLog.2 | 6970 (decl_template_parm_p): Change name of olddecl parameter to decl. 12912 Update olddecl's attributes too. 13704 olddecl was, just as is done with other attributes of olddecl. 16041 exceptions if -pedantic *or* olddecl !DECL_IN_SYSTEM_HEADER. 16093 if -pedantic, instead of olddecl !DECL_IN_SYSTEM_HEADER. 16118 still but only if !DECL_IN_SYSTEM_HEADER (olddecl).
|
| H A D | ChangeLog.1 | 63 Update olddecl's attributes too. 5657 with a null type, after we've checked if olddecl does.
|
| H A D | ChangeLog | 3670 olddecl to newdecl when newdecl is a specialization of the 3671 instantiation olddecl.
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/f/ |
| H A D | com.c | 374 static int duplicate_decls (tree newdecl, tree olddecl); 13182 duplicate_decls (tree newdecl, tree olddecl) in duplicate_decls() argument 13187 tree oldtype = TREE_TYPE (olddecl); in duplicate_decls() 13190 if (olddecl == newdecl) in duplicate_decls() 13200 if (TREE_CODE (olddecl) != TREE_CODE (newdecl)) in duplicate_decls() 13206 && TREE_ASM_WRITTEN (olddecl) && ! TREE_ASM_WRITTEN (newdecl)) in duplicate_decls() 13214 if (TREE_CODE (olddecl) == FUNCTION_DECL in duplicate_decls() 13215 && DECL_BUILT_IN (olddecl)) in duplicate_decls() 13223 tree oldreturntype = TREE_TYPE (TREE_TYPE (olddecl)); in duplicate_decls() 13232 TYPE_ARG_TYPES (TREE_TYPE (olddecl))); in duplicate_decls() [all …]
|
| H A D | ChangeLog.0 | 3484 (duplicate_decls): If olddecl and newdecl are the same,
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/doc/ |
| H A D | tm.texi | 8407 @deftypefn {Target Hook} tree TARGET_MERGE_DECL_ATTRIBUTES (tree @var{olddecl}, tree @var{newdecl}) 8410 @code{DECL_ATTRIBUTES} of @var{olddecl} and @var{newdecl}. 8411 @var{newdecl} is a duplicate declaration of @var{olddecl}. Examples of
|
| /openbsd-src/gnu/gcc/gcc/doc/ |
| H A D | tm.texi | 8807 @deftypefn {Target Hook} tree TARGET_MERGE_DECL_ATTRIBUTES (tree @var{olddecl}, tree @var{newdecl}) 8810 @code{DECL_ATTRIBUTES} of @var{olddecl} and @var{newdecl}. 8811 @var{newdecl} is a duplicate declaration of @var{olddecl}. Examples of
|