Home
last modified time | relevance | path

Searched refs:newdecl (Results 1 – 23 of 23) sorted by relevance

/openbsd-src/gnu/gcc/gcc/cp/
H A Ddecl.c916 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()
928 if (TREE_CODE (newdecl) == FUNCTION_DECL) in decls_match()
930 tree f1 = TREE_TYPE (newdecl); in decls_match()
935 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) in decls_match()
936 && ! (DECL_EXTERN_C_P (newdecl) in decls_match()
948 || (DECL_IN_SYSTEM_HEADER (newdecl) && !DECL_CLASS_SCOPE_P (newdecl)) in decls_match()
955 TREE_TYPE (newdecl) = TREE_TYPE (olddecl); in decls_match()
962 && (DECL_EXTERN_C_P (newdecl) in decls_match()
[all …]
H A DChangeLog1080 newdecl or olddecl is error_mark_node.
3677 clobbering newdecl.
3915 olddecl and newdecl disagreement on __thread property.
H A DChangeLog-19942216 * decl.c (decls_match): Say the types don't match if newdecl ends up
3474 declarations were in C context. Bash TREE_TYPE (newdecl) here.
4743 * decl.c (pushtag): Initialize newdecl.
H A DChangeLog-20022267 olddecl to newdecl when newdecl is a specialization of the
H A DChangeLog-199728 * decl.c (duplicate_decls): Make the newdecl virtual if the
H A DChangeLog-20041623 * decl.c (duplicate_decls): Copy TREE_NOTHROW from newdecl to olddecl.
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dc-decl.c862 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));
867 int new_is_definition = (TREE_CODE (newdecl) == FUNCTION_DECL
868 && DECL_INITIAL (newdecl) != 0);
870 tree newtype = TREE_TYPE (newdecl);
875 if (TREE_CODE (newdecl) == FUNCTION_DECL
877 && (DECL_UNINLINABLE (newdecl) || DECL_UNINLINABLE (olddecl)))
879 if (DECL_DECLARED_INLINE_P (newdecl)
880 && DECL_UNINLINABLE (newdecl)
[all …]
H A Dvarasm.c4488 merge_weak (newdecl, olddecl) in merge_weak() argument
4489 tree newdecl; in merge_weak()
4492 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl))
4495 if (DECL_WEAK (newdecl))
4506 error_with_decl (newdecl,
4514 …warning_with_decl (newdecl, "weak declaration of `%s' after first use results in unspecified behav…
4521 if (TREE_VALUE (wd) == newdecl)
4538 mark_weak (newdecl);
H A Dtree.c2719 merge_decl_attributes (olddecl, newdecl) in merge_decl_attributes() argument
2720 tree olddecl, newdecl; in merge_decl_attributes()
2723 DECL_ATTRIBUTES (newdecl));
H A DFSFChangeLog2486 * c-decl.c (duplicate_decls): Set DECL_IGNORED_P in newdecl if
H A DChangeLog.511646 olddecl has argument types and newdecl has none, use the argument
H A DChangeLog.63116 * c-decl.c (duplicate_decls): Revert rth's patch. If newdecl
/openbsd-src/gnu/gcc/gcc/
H A Dc-decl.c1032 diagnose_arglist_conflict (tree newdecl, tree olddecl, in diagnose_arglist_conflict() argument
1041 (TYPE_ARG_TYPES (newtype) == 0 && DECL_INITIAL (newdecl) == 0))) in diagnose_arglist_conflict()
1073 validate_proto_after_old_defn (tree newdecl, tree newtype, tree oldtype) in validate_proto_after_old_defn() argument
1103 "than previous old-style definition", newdecl); in validate_proto_after_old_defn()
1109 "than previous old-style definition", newdecl); in validate_proto_after_old_defn()
1119 newdecl, i); in validate_proto_after_old_defn()
1131 newdecl); in validate_proto_after_old_defn()
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()
1177 *newtypep = newtype = TREE_TYPE (newdecl); in diagnose_mismatched_decls()
[all …]
H A Dvarasm.c4527 merge_weak (tree newdecl, tree olddecl) in merge_weak() argument
4529 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) in merge_weak()
4531 if (DECL_WEAK (newdecl) && SUPPORTS_WEAK) in merge_weak()
4537 if (TREE_VALUE (*pwd) == newdecl) in merge_weak()
4546 if (DECL_WEAK (newdecl)) in merge_weak()
4558 newdecl); in merge_weak()
4566 "in unspecified behavior", newdecl); in merge_weak()
4573 if (TREE_VALUE (wd) == newdecl) in merge_weak()
4590 mark_weak (newdecl); in merge_weak()
H A Dtree.c3611 merge_decl_attributes (tree olddecl, tree newdecl) in merge_decl_attributes() argument
3614 DECL_ATTRIBUTES (newdecl)); in merge_decl_attributes()
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Ddecl.c3152 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))
3165 if (TREE_CODE (newdecl) == FUNCTION_DECL)
3167 tree f1 = TREE_TYPE (newdecl);
3172 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl)
3173 && ! (DECL_EXTERN_C_P (newdecl)
3185 || (DECL_IN_SYSTEM_HEADER (newdecl) && !DECL_CLASS_SCOPE_P (newdecl))
3192 TREE_TYPE (newdecl) = TREE_TYPE (olddecl);
[all …]
H A DChangeLog.15656 * decl.c (decls_match): Say the types don't match if newdecl ends up
6914 declarations were in C context. Bash TREE_TYPE (newdecl) here.
8183 * decl.c (pushtag): Initialize newdecl.
H A DChangeLog3670 olddecl to newdecl when newdecl is a specialization of the
H A DChangeLog.213703 * decl.c (duplicate_decls): Make the newdecl virtual if the
/openbsd-src/gnu/usr.bin/gcc/gcc/f/
H A Dcom.c374 static int duplicate_decls (tree newdecl, tree olddecl);
13182 duplicate_decls (tree newdecl, tree olddecl) in duplicate_decls() argument
13185 int new_is_definition = (TREE_CODE (newdecl) == FUNCTION_DECL in duplicate_decls()
13186 && DECL_INITIAL (newdecl) != 0); in duplicate_decls()
13188 tree newtype = TREE_TYPE (newdecl); in duplicate_decls()
13190 if (olddecl == newdecl) in duplicate_decls()
13200 if (TREE_CODE (olddecl) != TREE_CODE (newdecl)) in duplicate_decls()
13205 if (types_match && TREE_CODE (newdecl) == PARM_DECL in duplicate_decls()
13206 && TREE_ASM_WRITTEN (olddecl) && ! TREE_ASM_WRITTEN (newdecl)) in duplicate_decls()
13218 if (!TREE_PUBLIC (newdecl)) in duplicate_decls()
[all …]
H A DChangeLog.03484 (duplicate_decls): If olddecl and newdecl are the same,
/openbsd-src/gnu/usr.bin/gcc/gcc/doc/
H A Dtm.texi8407 @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 Dtm.texi8807 @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