/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | pointer-query.h | 264 extern tree compute_objsize (tree, gimple *, int, access_ref *, 266 extern tree compute_objsize (tree, gimple *, int, access_ref *, 268 inline tree compute_objsize (tree ptr, int ostype, access_ref *pref) in compute_objsize() function 270 return compute_objsize (ptr, nullptr, ostype, pref, (range_query *)nullptr); in compute_objsize() 274 extern tree compute_objsize (tree, gimple *, int, tree * = nullptr, 276 inline tree compute_objsize (tree ptr, int ostype, tree *pdecl = nullptr, 279 return compute_objsize (ptr, nullptr, ostype, pdecl, poff, rvals);
|
H A D | pointer-query.cc | 1170 compute_objsize (arg, /* ostype = */ 1 , &arg_ref[0]); in inform_access() 1172 compute_objsize (arg, /* ostype = */ 1 , &arg_ref[1]); in inform_access() 1505 if (!compute_objsize (ptr, stmt, ostype, pref, this)) in get_ref() 2341 compute_objsize (tree ptr, gimple *stmt, int ostype, access_ref *pref, in compute_objsize() function 2368 compute_objsize (tree ptr, gimple *stmt, int ostype, access_ref *pref, in compute_objsize() function 2373 return compute_objsize (ptr, stmt, ostype, pref, &qry); in compute_objsize() 2380 compute_objsize (tree ptr, gimple *stmt, int ostype, tree *pdecl /* = NULL */, in compute_objsize() function 2386 tree size = compute_objsize (ptr, stmt, ostype, &ref, rvals); in compute_objsize()
|
H A D | gimple-ssa-warn-access.cc | 2479 compute_objsize (src, stmt, ost, &data.src, &m_ptr_qry); in check_strcat() 2480 tree destsize = compute_objsize (dest, stmt, ost, &data.dst, &m_ptr_qry); in check_strcat() 2525 tree destsize = compute_objsize (dest, stmt, ost, &data.dst, &m_ptr_qry); in check_strncat() 2584 compute_objsize (src, stmt, ost, &data.src, &m_ptr_qry); in check_stxcpy() 2585 tree dstsize = compute_objsize (dst, stmt, ost, &data.dst, &m_ptr_qry); in check_stxcpy() 2615 compute_objsize (src, stmt, ost, &data.src, &m_ptr_qry); in check_stxncpy() 2616 tree dstsize = compute_objsize (dst, stmt, ost, &data.dst, &m_ptr_qry); in check_stxncpy() 2688 if (!compute_objsize (arg1, stmt, 1, &adata1.src, &m_ptr_qry) in check_strncmp() 2689 || !compute_objsize (arg2, stmt, 1, &adata2.src, &m_ptr_qry)) in check_strncmp() 2742 = src ? compute_objsize (src, stmt, 0, &data.src, &m_ptr_qry) : NULL_TREE; in check_memop_access() [all …]
|
H A D | gimple-array-bounds.cc | 671 tree refsize = compute_objsize (refop, stmt, 1, &aref); in inbounds_memaccess_p()
|
H A D | tree-ssa-strlen.cc | 1884 tree size = compute_objsize (dst, stmt, 1, &aref, &ptr_qry); in adjust_last_stmt() 2086 tree destsize = compute_objsize (dest, stmt, ostype, &aref, &ptr_qry); in maybe_warn_overflow() 3166 if (tree dstsize = compute_objsize (dst, stmt, 1, &aref, ptr_qry)) in maybe_diag_stxncpy_trunc() 3181 if (tree srcsize = compute_objsize (src, stmt, 1, &aref, ptr_qry)) in maybe_diag_stxncpy_trunc()
|
H A D | ChangeLog-2020 | 2186 (compute_objsize): Use access_ref::deref. Handle simple pointer 2609 * builtins.c (compute_objsize): Rename... 2619 (compute_objsize): Declare an overload. 9601 (compute_objsize): Same. Set maximum size or offset instead of 9603 (compute_objsize): Call access_ref::size_remaining. 9604 (compute_objsize): Have transitional wrapper fail for pointers 9628 (compute_objsize): Handle more special array members. Handle 9635 (compute_objsize): Declare a new overload. 11477 * builtins.c (compute_objsize): Replace vr_values with range_query. 12761 (compute_objsize): Call it. [all …]
|
H A D | ChangeLog-2019 | 672 * builtins.c (compute_objsize): Adjust offset by the array low bound. 739 (compute_objsize): Add an argument. Set *PDECL even for allocated 936 * builtins.c (compute_objsize): Add an argument and set it to offset 938 * builtins.h (compute_objsize): Add an argument. 1755 (compute_objsize): Add argument. Call gimple_call_alloc_size. 1758 (compute_objsize): Add argument. 3310 * builtins.c (compute_objsize): Deal with VLAs. 7055 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off 11323 * builtins.c (compute_objsize): Add an argument. 13984 (compute_objsize): Adjust. [all …]
|
H A D | ChangeLog-2021 | 1450 (compute_objsize): Pass a new argument to compute_objsize_r. 1463 GIMPLE statement to compute_objsize. 1464 * pointer-query.cc (compute_objsize): Add a statement argument. 1465 * pointer-query.h (compute_objsize): Define a new overload. 8504 compute_objsize additional arguments. 8536 (compute_objsize): Same. 8541 (compute_objsize): Same. 8543 argument to compute_objsize. 15838 (compute_objsize): Clear argument. 18584 (compute_objsize): Same. [all …]
|
H A D | builtins.cc | 3713 objsize = compute_objsize (dest, warn_stringop_overflow - 1, &data.dst); in check_strncat_sizes()
|
H A D | ChangeLog-2017 | 2060 * builtins.c (compute_objsize): Handle non-constant offsets. 7401 * builtins.c (compute_objsize): Handle arrays that 7403 * builtins.h (compute_objsize): Declare. 32100 (compute_objsize): ...to this.
|
H A D | ChangeLog-2018 | 19936 * builtins.c (compute_objsize): Handle constant offsets. 26466 * builtins.c (compute_objsize): Pass correct operand
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | builtins.h | 140 extern tree compute_objsize (tree, int, tree * = NULL, tree * = NULL,
|
H A D | builtins.c | 3852 compute_objsize (tree dest, int ostype, tree *pdecl /* = NULL */, in compute_objsize() function 3910 if (tree size = compute_objsize (dest, ostype, pdecl, poff)) in compute_objsize() 3944 if (tree size = compute_objsize (dest, ostype, pdecl, poff)) in compute_objsize() 3995 if (tree size = compute_objsize (ref, ostype, pdecl, poff)) in compute_objsize() 4160 tree srcsize = src ? compute_objsize (src, 0) : NULL_TREE; in check_memop_access() 4161 tree dstsize = compute_objsize (dest, 0); in check_memop_access() 4184 tree size = compute_objsize (arg1, 0); in expand_builtin_memchr() 4466 tree destsize = compute_objsize (dest, warn_stringop_overflow - 1); in expand_builtin_strcat() 4490 tree destsize = compute_objsize (dest, warn_stringop_overflow - 1); in expand_builtin_strcpy() 4548 tree destsize = compute_objsize (dst, warn_stringop_overflow - 1); in expand_builtin_stpcpy_1() [all …]
|
H A D | gimple-ssa-warn-restrict.c | 767 if (tree dstsize = compute_objsize (addr, ostype)) in builtin_access() 781 if (tree srcsize = compute_objsize (addr, ostype)) in builtin_access()
|
H A D | tree-ssa-strlen.c | 1752 tree size = compute_objsize (dst, 0); in adjust_last_stmt() 2036 destsize = compute_objsize (dest, rawmem ? 0 : 1, &destdecl, &off, rvals); 3289 if (tree dstsize = compute_objsize (dst, 1)) in maybe_diag_stxncpy_trunc() 3304 if (tree srcsize = compute_objsize (src, 1)) in maybe_diag_stxncpy_trunc()
|
H A D | calls.c | 2105 tree objsize = compute_objsize (ptr, 0); in maybe_warn_rdwr_sizes()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/ |
H A D | init.cc | 2826 tree objsize = compute_objsize (oper, 1, &ref); in warn_placement_new_too_small()
|