Home
last modified time | relevance | path

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

123

/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Ddecl.c958 decls_match (tree newdecl, tree olddecl, bool record_versions /* = true */) in decls_match() argument
962 if (newdecl == olddecl) in decls_match()
965 if (TREE_CODE (newdecl) != TREE_CODE (olddecl)) in decls_match()
970 gcc_assert (DECL_P (newdecl)); in decls_match()
972 if (TREE_CODE (newdecl) == FUNCTION_DECL) in decls_match()
974 tree f1 = TREE_TYPE (newdecl); in decls_match()
982 tree t1 = (DECL_USE_TEMPLATE (newdecl) in decls_match()
983 ? DECL_TI_TEMPLATE (newdecl) in decls_match()
991 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) in decls_match()
992 && ! (DECL_EXTERN_C_P (newdecl) in decls_match()
[all …]
H A Dpt.c28355 tree newdecl in rewrite_template_parm() local
28358 SET_DECL_TEMPLATE_PARM_P (newdecl); in rewrite_template_parm()
28366 newdecl, newtype); in rewrite_template_parm()
28369 TYPE_STUB_DECL (newtype) = TYPE_NAME (newtype) = newdecl; in rewrite_template_parm()
28377 DECL_TEMPLATE_RESULT (newdecl) in rewrite_template_parm()
28380 DECL_ARTIFICIAL (DECL_TEMPLATE_RESULT (newdecl)) = true; in rewrite_template_parm()
28404 DECL_TEMPLATE_PARMS (newdecl) = ttparms; in rewrite_template_parm()
28414 TREE_CONSTANT (newconst) = TREE_CONSTANT (newdecl) in rewrite_template_parm()
28415 = TREE_READONLY (newconst) = TREE_READONLY (newdecl) = true; in rewrite_template_parm()
28421 DECL_INITIAL (newdecl) = DECL_INITIAL (newconst) = newidx; in rewrite_template_parm()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Ddecl.cc988 decls_match (tree newdecl, tree olddecl, bool record_versions /* = true */) in decls_match() argument
992 if (newdecl == olddecl) in decls_match()
995 if (TREE_CODE (newdecl) != TREE_CODE (olddecl)) in decls_match()
1000 gcc_assert (DECL_P (newdecl)); in decls_match()
1002 if (TREE_CODE (newdecl) == FUNCTION_DECL) in decls_match()
1006 tree t1 = (DECL_USE_TEMPLATE (newdecl) in decls_match()
1007 ? DECL_TI_TEMPLATE (newdecl) in decls_match()
1015 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) in decls_match()
1016 && ! (DECL_EXTERN_C_P (newdecl) in decls_match()
1023 && DECL_EXTERN_C_P (olddecl) && !DECL_EXTERN_C_P (newdecl)) in decls_match()
[all …]
H A Dpt.cc27197 tree newdecl = build_enumerator (DECL_NAME (decl), value, newtag, in tsubst_enum() local
27203 TREE_DEPRECATED (newdecl) = TREE_DEPRECATED (decl); in tsubst_enum()
27204 TREE_UNAVAILABLE (newdecl) = TREE_UNAVAILABLE (decl); in tsubst_enum()
29326 tree newdecl in rewrite_template_parm() local
29329 SET_DECL_TEMPLATE_PARM_P (newdecl); in rewrite_template_parm()
29337 newdecl, newtype); in rewrite_template_parm()
29340 TYPE_STUB_DECL (newtype) = TYPE_NAME (newtype) = newdecl; in rewrite_template_parm()
29348 DECL_TEMPLATE_RESULT (newdecl) in rewrite_template_parm()
29351 DECL_ARTIFICIAL (DECL_TEMPLATE_RESULT (newdecl)) = true; in rewrite_template_parm()
29384 DECL_TEMPLATE_PARMS (newdecl) = ttparms; in rewrite_template_parm()
[all …]
H A DChangeLog-2012821 keep the merged decl builtin also if newdecl is a gnu_inline
2747 newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits.
H A DChangeLog-2014765 tls model to newdecl symtab node, instead merge to olddecl.
1253 newdecl, not olddecl.
2371 do not copy symtab pointer; before freeing newdecl remove it
H A DChangeLog-20152689 * decl.c (duplicate_decls): Adjust DECL_COMDAT of newdecl.
3159 newdecl in diagnostics, not input_location.
3759 only if the location of newdecl doesn't match the location of olddecl.
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c/
H A Dc-decl.c1791 diagnose_arglist_conflict (tree newdecl, tree olddecl, in diagnose_arglist_conflict() argument
1799 || (!prototype_p (newtype) && DECL_INITIAL (newdecl) == NULL_TREE))) in diagnose_arglist_conflict()
1832 validate_proto_after_old_defn (tree newdecl, tree newtype, tree oldtype) in validate_proto_after_old_defn() argument
1868 "than previous old-style definition", newdecl); in validate_proto_after_old_defn()
1874 "than previous old-style definition", newdecl); in validate_proto_after_old_defn()
1884 newdecl, i); in validate_proto_after_old_defn()
1896 newdecl); in validate_proto_after_old_defn()
1927 diagnose_mismatched_decls (tree newdecl, tree olddecl, in diagnose_mismatched_decls() argument
1938 if (olddecl == error_mark_node || newdecl == error_mark_node) in diagnose_mismatched_decls()
1941 *newtypep = newtype = TREE_TYPE (newdecl); in diagnose_mismatched_decls()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/c/
H A Dc-decl.cc1806 diagnose_arglist_conflict (tree newdecl, tree olddecl, in diagnose_arglist_conflict() argument
1814 || (!prototype_p (newtype) && DECL_INITIAL (newdecl) == NULL_TREE))) in diagnose_arglist_conflict()
1847 validate_proto_after_old_defn (tree newdecl, tree newtype, tree oldtype) in validate_proto_after_old_defn() argument
1883 "than previous old-style definition", newdecl); in validate_proto_after_old_defn()
1889 "than previous old-style definition", newdecl); in validate_proto_after_old_defn()
1899 newdecl, i); in validate_proto_after_old_defn()
1911 newdecl); in validate_proto_after_old_defn()
1949 diagnose_mismatched_decls (tree newdecl, tree olddecl, in diagnose_mismatched_decls() argument
1960 if (olddecl == error_mark_node || newdecl == error_mark_node) in diagnose_mismatched_decls()
1963 *newtypep = newtype = TREE_TYPE (newdecl); in diagnose_mismatched_decls()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-warn.c2589 diagnose_mismatched_attributes (tree olddecl, tree newdecl) in diagnose_mismatched_attributes() argument
2594 tree a2 = lookup_attribute ("optimize", DECL_ATTRIBUTES (newdecl)); in diagnose_mismatched_attributes()
2603 newdecl); in diagnose_mismatched_attributes()
2606 if (DECL_DECLARED_INLINE_P (newdecl) in diagnose_mismatched_attributes()
2610 "declaration with attribute %<noinline%>", newdecl); in diagnose_mismatched_attributes()
2612 && DECL_UNINLINABLE (newdecl) in diagnose_mismatched_attributes()
2613 && lookup_attribute ("noinline", DECL_ATTRIBUTES (newdecl))) in diagnose_mismatched_attributes()
2615 "%<noinline%> follows inline declaration", newdecl); in diagnose_mismatched_attributes()
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-warn.cc2579 diagnose_mismatched_attributes (tree olddecl, tree newdecl) in diagnose_mismatched_attributes() argument
2584 tree a2 = lookup_attribute ("optimize", DECL_ATTRIBUTES (newdecl)); in diagnose_mismatched_attributes()
2593 newdecl); in diagnose_mismatched_attributes()
2596 if (DECL_DECLARED_INLINE_P (newdecl) in diagnose_mismatched_attributes()
2600 "declaration with attribute %<noinline%>", newdecl); in diagnose_mismatched_attributes()
2602 && DECL_UNINLINABLE (newdecl) in diagnose_mismatched_attributes()
2603 && lookup_attribute ("noinline", DECL_ATTRIBUTES (newdecl))) in diagnose_mismatched_attributes()
2605 "%<noinline%> follows inline declaration", newdecl); in diagnose_mismatched_attributes()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/bpf/
H A Dbpf.cc1305 tree newdecl = bpf_core_newdecl (TREE_TYPE (*tp)); in bpf_core_walk() local
1306 tree newcall = build_call_expr_loc (loc, newdecl, 1, *tp); in bpf_core_walk()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Domp-offload.cc2263 tree newdecl in execute_oacc_device_lower() local
2266 adjusted = (TREE_TYPE (newdecl) != oldtype in execute_oacc_device_lower()
2267 || newdecl != decl); in execute_oacc_device_lower()
2269 adjusted_vars.put (decl, newdecl); in execute_oacc_device_lower()
H A Dvarasm.cc5895 merge_weak (tree newdecl, tree olddecl) in merge_weak() argument
5897 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) in merge_weak()
5899 if (DECL_WEAK (newdecl) && TARGET_SUPPORTS_WEAK) in merge_weak()
5905 if (TREE_VALUE (*pwd) == newdecl) in merge_weak()
5914 if (DECL_WEAK (newdecl)) in merge_weak()
5933 if (! TREE_PUBLIC (olddecl) && TREE_PUBLIC (newdecl)) in merge_weak()
5935 "existing, static definition", newdecl); in merge_weak()
5942 if (TREE_VALUE (wd) == newdecl) in merge_weak()
5959 mark_weak (newdecl); in merge_weak()
H A Dattribs.cc1685 merge_decl_attributes (tree olddecl, tree newdecl) in merge_decl_attributes() argument
1688 DECL_ATTRIBUTES (newdecl)); in merge_decl_attributes()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dvarasm.c5633 merge_weak (tree newdecl, tree olddecl) in merge_weak() argument
5635 if (DECL_WEAK (newdecl) == DECL_WEAK (olddecl)) in merge_weak()
5637 if (DECL_WEAK (newdecl) && TARGET_SUPPORTS_WEAK) in merge_weak()
5643 if (TREE_VALUE (*pwd) == newdecl) in merge_weak()
5652 if (DECL_WEAK (newdecl)) in merge_weak()
5671 if (! TREE_PUBLIC (olddecl) && TREE_PUBLIC (newdecl)) in merge_weak()
5673 "existing, static definition", newdecl); in merge_weak()
5680 if (TREE_VALUE (wd) == newdecl) in merge_weak()
5697 mark_weak (newdecl); in merge_weak()
H A Dattribs.c1486 merge_decl_attributes (tree olddecl, tree newdecl) in merge_decl_attributes() argument
1489 DECL_ATTRIBUTES (newdecl)); in merge_decl_attributes()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/nios2/
H A Dnios2.c4434 nios2_merge_decl_attributes (tree olddecl, tree newdecl) in nios2_merge_decl_attributes() argument
4437 tree newopts = lookup_attribute ("target", DECL_ATTRIBUTES (newdecl)); in nios2_merge_decl_attributes()
4441 tree newtree = DECL_FUNCTION_SPECIFIC_TARGET (newdecl); in nios2_merge_decl_attributes()
4449 DECL_NAME (newdecl), "target"); in nios2_merge_decl_attributes()
4453 DECL_ATTRIBUTES (newdecl)); in nios2_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/nios2/
H A Dnios2.cc4469 nios2_merge_decl_attributes (tree olddecl, tree newdecl) in nios2_merge_decl_attributes() argument
4472 tree newopts = lookup_attribute ("target", DECL_ATTRIBUTES (newdecl)); in nios2_merge_decl_attributes()
4476 tree newtree = DECL_FUNCTION_SPECIFIC_TARGET (newdecl); in nios2_merge_decl_attributes()
4484 DECL_NAME (newdecl), "target"); in nios2_merge_decl_attributes()
4488 DECL_ATTRIBUTES (newdecl)); in nios2_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/riscv/
H A Driscv.c4979 riscv_merge_decl_attributes (tree olddecl, tree newdecl) in riscv_merge_decl_attributes() argument
4986 = riscv_get_interrupt_type (newdecl); in riscv_merge_decl_attributes()
4996 DECL_ATTRIBUTES (newdecl)); in riscv_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/riscv/
H A Driscv.cc5401 riscv_merge_decl_attributes (tree olddecl, tree newdecl) in riscv_merge_decl_attributes() argument
5408 = riscv_get_interrupt_type (newdecl); in riscv_merge_decl_attributes()
5418 DECL_ATTRIBUTES (newdecl)); in riscv_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/nds32/
H A Dnds32.cc3913 nds32_merge_decl_attributes (tree olddecl, tree newdecl) in nds32_merge_decl_attributes() argument
3919 DECL_ATTRIBUTES (newdecl)); in nds32_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/nds32/
H A Dnds32.c3913 nds32_merge_decl_attributes (tree olddecl, tree newdecl) in nds32_merge_decl_attributes() argument
3919 DECL_ATTRIBUTES (newdecl)); in nds32_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/mips/
H A Dmips.cc1468 mips_merge_decl_attributes (tree olddecl, tree newdecl) in mips_merge_decl_attributes() argument
1473 ^ mips_get_compress_on_flags (DECL_ATTRIBUTES (newdecl))); in mips_merge_decl_attributes()
1476 DECL_NAME (newdecl), mips_get_compress_on_name (diff)); in mips_merge_decl_attributes()
1479 ^ mips_get_compress_off_flags (DECL_ATTRIBUTES (newdecl))); in mips_merge_decl_attributes()
1482 DECL_NAME (newdecl), mips_get_compress_off_name (diff)); in mips_merge_decl_attributes()
1485 DECL_ATTRIBUTES (newdecl)); in mips_merge_decl_attributes()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mips/
H A Dmips.c1466 mips_merge_decl_attributes (tree olddecl, tree newdecl) in mips_merge_decl_attributes() argument
1471 ^ mips_get_compress_on_flags (DECL_ATTRIBUTES (newdecl))); in mips_merge_decl_attributes()
1474 DECL_NAME (newdecl), mips_get_compress_on_name (diff)); in mips_merge_decl_attributes()
1477 ^ mips_get_compress_off_flags (DECL_ATTRIBUTES (newdecl))); in mips_merge_decl_attributes()
1480 DECL_NAME (newdecl), mips_get_compress_off_name (diff)); in mips_merge_decl_attributes()
1483 DECL_ATTRIBUTES (newdecl)); in mips_merge_decl_attributes()

123